无法运行"npm run watch",错误消息显示"gulp"错误



我正在使用编码阶段github的Web启动套件,通常对我有效。由于某种原因,当我尝试运行NPM运行手表时,它会给我错误消息。我不是100%肯定的,但是我相信当我更新我的卸载并重新安装了Nodejs时,这开始了。帮我!

sh: gulp: command not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! starter-kit-2019@1.1.0 watch: `gulp`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the starter-kit-2019@1.1.0 watch script.
npm ERR! This is probably not a problem with npm. There is likely 
additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/joseperez/.npm/_logs/2018-12-20T02_45_19_840Z- 
debug.log

它是因为我们将'gulp'用作全局模块。因此,当您从系统中删除节点时,它删除了安装软件包的墨西哥。

您可以使用

来重新安装它
`npm install gulp-cli -g`

它将起作用!

更新:他正在使用Mac,因此请尝试运行此命令。

$ npm uninstall --global gulp gulp-cli
$ rm /usr/local/share/man/man1/gulp.1
$ npm install --global gulp-cli`

希望此信息在对我的控制台上出现的错误进行研究后对某人有用," Gulp:命令:"找不到",我找到了一个链接,该链接解决了如何修复如何修复这。事实证明,由于我的道路存在问题,我的吞噬物无法正常安装。顺便说一句,我在下面使用Mac机器是帮助我的链接!

这是帮助我的链接!

相关内容

最新更新