问题:
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