未找到 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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章