I have installed NVM and NPM to an EC2 instance using this guide from AWS .
I then install gulp and gulp-cli
npm install --global gulp
npm install --global gulp-cli
Then navigate to my project and run
gulp i
And I get this error
/home/ec2-user/.nvm/versions/node/v4.4.5/lib/node_modules/gulp/bin/gulp.js:129 gulpInst.start.apply(gulpInst, toRun); ^
TypeError: Cannot read property 'apply' of undefined at /home/ec2-user/.nvm/versions/node/v4.4.5/lib/node_modules/gulp/bin/gulp.js:129:19 at nextTickCallbackWith0Args (node.js:420:9) at process._tickCallback (node.js:349:13) at Function.Module.runMain (module.js:443:11) at startup (node.js:139:18) at node.js:968:3node -v
returns v4.4.5npm -v
returns 2.15.5gulp -v
returns
[13:22:47] CLI version 3.9.1
[13:22:47] Local version 4.0.0-alpha.2
I am now stuck and unsure how to get gulp i
to run
2条答案
按热度按时间noj0wjuj1#
在整个互联网上,建议的解决方案是运行
npm install -g gulp-cli
。起初,这对我不起作用,但在关闭并打开一个新的控制台后,它起作用了。cuxqih212#
这个错误表示
gulpInst.start
是undefined
。在没有看到你的特定配置之前,你不可能说任何具体的东西,但这里有一些关于GitHub的相关问题:
希望它能帮助你开始。