未找到 gulp 命令 - 安装 gulp 后出错 - gulp command not found - error after installing gulp

问题:

I've installed gulp both globally and locally using我已经使用全局和本地安装了 gulp

npm install gulp
npm install gulp -g
npm install gulp-util
npm install gulp-util -g

When try to run gulp i get当尝试运行 gulp 我得到

'gulp' is not recognized as an internal or external command, operable program or batch file.

Running npm list gulp (or -g), I [email protected] with the location of either my global or local gulp installation.运行 npm list [email protected] (或 -g),我[email protected]带有我的全局或本地[email protected]安装的位置。

I've tried running node gulpfile.js pointed to my gulpfile, and it runs without error, and of course, it starts with require('gulp') .我试过运行node gulpfile.js指向我的 gulpfile,它运行没有错误,当然,它以require('gulp')开头。

Any suggestions on getting gulp working on Windows(8.1)?关于让 gulp 在 Windows(8.1) 上工作的任何建议?


解决方案:

参考一: https://en.stackoom.com/question/1cof9
参考二: https://stackoom.com/question/1cof9
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章