-
Notifications
You must be signed in to change notification settings - Fork 3k
Error: can't install "npm install grunt-contrib-less --save-dev" #4950
Comments
This looks like it's due to npm's new ^ default. I believe you just need to upgrade your npm:
|
I ran "npm install -g npm"
I tried running "npm install grunt-contrib-less --save-dev" afterwards, and get the same error described above. |
Can you paste the output when you run it again? |
Here you go, thanks for the help. :)
|
"npm list"
|
Looks like updating npm didn't work:
Check your $PATH set up. |
|
node is installed in c:\program files\nodejs, i don't have access to write to this directory. If so, is there a way to point the Path to another folder and have it ignore the above folder? |
@joshvito no idea about windows sorry, can't help. |
For now, I changed the package.json file to load [ 'grunt-contrib-less', '0.10.0' ]; At first glance, it appears this is due to the fact that I don't have admin rights on my machine. I'll have to remove node and npm and re-install in a folder I have write access to. Thank you again for the help. |
I had this error, I failed tp upgrade npm (it is very likely that it exist some way, but I couldn't find it). I unistalled Node and reinstalled it, after that everyting works fine. By the way I am using Windows 7. |
Closing as resolved. |
I am trying to install a package into a local folder via cmd.exe "npm install grunt-contrib-less --save-dev".
I get a different error if I try to install it more than once. Sometimes the last part(maxmin@'^0.1.0) is different if I run the same install command. The error always ends with one of these packages (e.g. 169 error Error: No compatible version found: maxmin@'^0.1.0) :
Here are my software versions:
I've tried running "npm update -g". It runs without error, but the above install doesn't.
Here is my npm-debug.log
The text was updated successfully, but these errors were encountered: