【发布时间】:2019-04-10 09:27:06
【问题描述】:
我正在尝试通过发出以下命令在 Windows8 中安装 gulp,
C:\Users\acer>npm install gulp -g
C:\Users\acer\AppData\Roaming\npm\gulp-> C:\Users\acer\AppData\Roaming\npm\node_modules\gulp\bin\gulp.js
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\gulp\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
+ gulp@4.0.0
updated 1 package in 63.384s
虽然安装成功,但在执行 gulp 时,我收到以下错误。
C:\Users\acer>gulp -v
'gulp' is not recognized as an internal or external command,
operable program or batch file.
有人可以帮助解决这个问题吗?
【问题讨论】: