[英]Gulp command isnt working for laravel
Initially I have installed node.js and npm. 最初,我已经安装了node.js和npm。
And using npm I have installed gulp: sudo npm install -g gulp
并使用npm安装了gulp:
sudo npm install -g gulp
Here's the output: 这是输出:
/var/www/html/laravel$ gulp
Error: Cannot find module 'process-nextick-args'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/var/www/html/laravel/node_modules/laravel-elixir/node_modules/gulp-util/node_modules/through2/node_modules/readable-stream/lib/_stream_duplex.js:20:23)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
You should install all npm deps before running gulp. 您应该在运行gulp之前安装所有npm deps。 From the project folder run:
从项目文件夹运行:
npm install
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.