从git上拉下来项目后,gulp安装依赖库失败?
ringa_lee
ringa_lee 2017-05-02 09:29:49
0
2
407

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`,这是我安装流程不对吗,哪里出了问题?

ringa_lee
ringa_lee

ringa_lee

reply all (2)
迷茫

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

    Ty80

    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.

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!