node.js - root can't find gulp command in project dir -
my current task make jenkins job download git repo, gulp build project , sync data s3 bucket. trouble gulp build command root can't find.
i read that post installing nvm globally , after using:
wget -qo- https://raw.githubusercontent.com/xtuple/nvm/master/install.sh | sudo bash
was able install nvm /usr/local/nvm.
inside project directory (/var/lib/jenkins/project) run:
sudo /usr/local/bin/npm install
and modules go node_modules dir inside project dir.
then do:
sudo gulp build --env=production sudo: gulp: command not found
it looks root can't find gulp. inside node_modules/gulp/bin there gulp.js file have no idea how use it.
so how can make gulp build work root? installed , build project minor effort using regular user , know project ok, problem manifested after switching root.
my working env amazon linux node.js version 4.4.7. these first steps nvm, gulp , node.js whole, please, don't harsh if i'm doing stupid.
i think have install gulp-cli well:
sudo /usr/local/bin/npm install -g gulp-cli
gulp global command different local gulp found @ node_modules/gulp/bin
Comments
Post a Comment