I tried to install grunt-cli, but when I run sudo npm install in the bootstrap directory, I get this error:
sudo npm install
npm ERR! Error: ENOENT, lstat '/var/www/solar/bootstrap/node_modules/grunt-html-validation/node_modules/w3cjs/node_modules/superagent/History.md'
How can I fix this?
@macsj200 is this still a problem you are seeing?
If so, you can try resetting and reinstalling like this:
$ cd <project-dir>
$ sudo chown `whoami` -R .
$ rm -rf node_modules
$ npm install
You shouldn't need to use sudo for an npm install in a package directory.
An additional note: this looks like it may have been a race condition where files were expected to be on the disk before the package was fully extracted from the .tgz. Can you try upgrading to a newer version of npm (try npm install -g npm)
npm install -g npm
We are trying to clean up older npm issues, so if we don't hear back from you within a week, we will close this issue. (Don't worry -- you can always come back again and re-open it!)
Closing as abandoned, and also because @smikes's advice will probably lead to a resolution (especially if you install the latest stable version of npm).