Reputation: 4497
I'm new to Laravel, so I'd like some help please. I'm following the training from Laracasts on how to manage css and js.
When I try to run npm install
I get some warnings like
npm WARN install Couldn't install optional dependency: Unsupported
I also try to install gulp with npm install --global gulp
, but I get this
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated [email protected]: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
so basically if I try to run the gulp
command I get the No command 'gulp' found
from the command line.
Any ideas how to fix this?
Just some additional info: I'm on vm Ubuntu 14.04 and my node.js and npm versions are:
node -v
v5.4.1
npm -v
3.3.12
This is the error I get when I try to run npm install --global gulp
Upvotes: 4
Views: 5060
Reputation: 5174
Gulp is now installed on your system. You can find it under /usr/local/bin/gulp
. The permission error is gone and the other stuff is only warning that did not stop gulp from working. You should be able to run gulp
command now.
Upvotes: 0
Reputation: 5174
This npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
clearly indicates that the user you are running npm install --global gulp
with has no write access to /usr/local/lib/node_modules
. Please make sure you have the proper write permissions - as mentioned in the comments check https://docs.npmjs.com/getting-started/fixing-npm-permissions
Upvotes: 2