Can't install grunt-cli #4830

macsj200 opened this Issue Mar 3, 2014 · 3 comments


None yet

4 participants

macsj200 commented Mar 3, 2014

I tried to install grunt-cli, but when I run sudo npm install in the bootstrap directory, I get this error:

npm ERR! Error: ENOENT, lstat '/var/www/solar/bootstrap/node_modules/grunt-html-validation/node_modules/w3cjs/node_modules/superagent/'

How can I fix this?

smikes commented Nov 13, 2014

@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.

smikes commented Nov 20, 2014

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)

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!)


@othiym23 othiym23 added the support label Nov 26, 2014

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).

@othiym23 othiym23 closed this Nov 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment