anatoo / gulper Goto Github PK
View Code? Open in Web Editor NEWGulper is gulp.js cli wrapper to restart gulp automatically on gulpfile change.
Gulper is gulp.js cli wrapper to restart gulp automatically on gulpfile change.
I installed gulper with npm i -g gulper
, but when I run it on one of my projects, I get the following error:
Error: Cannot find module '../lib/completion'
at Function.Module._resolveFilename (module.js:438:15)
at Function.Module._load (module.js:386:25)
at Module.require (module.js:466:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/Users/samvv/projects/comet/comet/node_modules/.bin/gulp:13:18)
at Module._compile (module.js:541:32)
at Module._extensions..js (module.js:550:10)
at Object.nodeDevHook [as .js] (/usr/local/lib/node_modules/gulper/node_modules/node-dev/lib/hook.js:43:7)
at Module.load (module.js:456:32)
at tryModuleLoad (module.js:415:12)
> gulper
SyntaxError: Unexpected token ILLEGAL
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:404:25)
at Module._extensions..js (module.js:432:10)
at Object.nodeDevHook [as .js] (C:\...\project\node_modules\node-dev\lib\hook.js:43:7)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:313:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object.<anonymous> (C:\...\project\node_modules\node-dev\lib\wrap.js:58:1)
at Module._compile (module.js:425:26)
[ERROR] 11:08:26 SyntaxError
I'm being affected by fgnass/node-dev#130 when using gulper
Could you change gulper to use v1.3.2 of node-dev?
I forked a fix from @willhoag and created a release v0.2.0.
npm i -g https://github.com/mujuni88/gulper/archive/v0.2.0.tar.gz
.
I cannot run it at all.
Trying a simple gulper
command and the result is below (replaced some dir names with "...").
c:\...\node_modules\.bin\gulp.CMD:1
(function (exports, require, module, __filename, __dirname) { @IF EXIST "%~dp0\node.exe" (
^
SyntaxError: Invalid or unexpected token
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Object.obj.(anonymous function) [as runInThisContext] (C:\Users\...\AppData\Roaming\npm\node_modules\gulper\node_modules\node-dev\lib\hook.js:30:19)
at Module._compile (module.js:542:28)
at Module._extensions..js (module.js:579:10)
at Object.nodeDevHook [as .js] (C:\Users\...\AppData\Roaming\npm\node_modules\gulper\node_modules\node-dev\lib\hook.js:61:7)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
[ERROR] 13:14:38 SyntaxError
Maybe it has something to do with using gulp version 4.0?
I upgraded node to v6.2 and when i run gulper watch
to track my file changes automatically, i get the following error:
Saving To...
- public/fonts
[18:59:01] 'copy' errored after 12 ms
[18:59:01] Error: channel closed
at process.target.send (internal/child_process.js:523:16)
at Object.exports.send (/usr/local/lib/node_modules/gulper/node_modules/node-dev/lib/ipc.js:14:23)
at /usr/local/lib/node_modules/gulper/node_modules/node-dev/lib/wrap.js:48:7
at Object.obj.(anonymous function) [as runInThisContext] (/usr/local/lib/node_modules/gulper/node_modules/node-dev/lib/hook.js:58:17)
at Module._compile (module.js:513:28)
at Module._extensions..js (module.js:550:10)
at Object.nodeDevHook [as .js] (/usr/local/lib/node_modules/gulper/node_modules/node-dev/lib/hook.js:43:7)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
TypeError: "listener" argument must be a function
at _addListener (events.js:216:11)
at StreamArray.addListener (events.js:270:10)
at StreamArray.Readable.on (/Users/timrpeterson/laravel/node_modules/stream-array/node_modules/readable-stream/lib/_stream_readable.js:663:33)
at Function.<anonymous> (/Users/timrpeterson/laravel/node_modules/laravel-elixir/tasks/watch.js:41:24)
at bound (domain.js:280:14)
at runBound (domain.js:293:12)
at asyncRunner (/Users/timrpeterson/laravel/node_modules/async-done/index.js:36:18)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickDomainCallback (internal/process/next_tick.js:122:9)
events.js:160
throw er; // Unhandled 'error' event
^
No idea about this. Thoughts?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.