1.把项目从git上拉下来以后,文件里有一个gulpfile.js文件、bower.json文件、package.son文件
2.我首先执行了`bower install `然后又执行了`nam install gulp --save-dev`
3.现在生成了相应的bower_compents文件和node_moudles文件,并且node_moudles里面有gulp及相应依赖
4.但是执行gulp serve和直接执行gulp都提示`command not found`,这是我安装流程不对吗,哪里出了问题?
The gulp installed like this is local to the project. Entering gulp directly requires global installation
npm i gulp -g
or
./node_modules/gulp/bin/gulp.js
npm install -g gulp try
The local installation of your project--save-dev only allows require('gulp') in gulpfile.js to reference things, and executing the gulp command on the command line depends on the configuration of path in your environment variable. Path There should be a path pointing to the C:UsersxxxAppDataRoamingnpm directory. There is a gulp.cmd script in this directory. You will understand after opening it.