F
F
ForestEsprit2016-04-29 11:43:12
Node.js
ForestEsprit, 2016-04-29 11:43:12

Why doesn't it find gulp (not installed globally)?

Good afternoon everyone.
I moved to a new working machine, the captain is on it 10.11.3
I put node, npm, then gulp globally, I upload my project, I do npm iit, I see that everything is pulling up. Further gulp -vand see -bash: gulp: command not found
I found a solution with the addition of the following:

"scripts": {
    "gulp": "gulp",
    "minify": "gulp minify"
  },

and you can run through npm run gulp, but still.
Who faced the problem? How did they decide?
Console, installing gulp
FS-MacBook-Air:lib FS$ sudo npm install gulp -g
Password:
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v6.0. Please update to [email protected]^4.0.0 as soon as possible.
npm WARN deprecated [email protected]: [email protected]<3.0.0 is no longer maintained. Upgrade to [email protected]^4.0.0.
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v6.0. Please update to [email protected]^4.0.0 as soon as possible.
/Users/FS/.npm-global/bin/gulp -> /Users/FS/.npm-global/lib/node_modules/gulp/bin/gulp.js
[email protected] /Users/FS/.npm-global/lib/node_modules/gulp
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
ForestEsprit, 2016-04-29
@ForestEsprit

problem with npm, solution was sudo chown -R $(whoami) ~/.npm
stackoverflow.com/questions/16151018/npm-throws-er...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question