Reputation: 2476
I am trying to install npm so I can install less. I just went to the node.js
website and installed node. however, when i type npm
in the command prompt i get the error:
Error: Failed to replace env in config: ${APPDATA}
at C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:429:13
etc.
Any suggestions?
I think node installed because node -v
yeilds v0.12.7
Upvotes: 2
Views: 7501
Reputation: 1947
You need to configure your 'AppData' environment variable.
https://github.com/npm/npm/issues/7468
I just created a environment variable called APPDATA with the value like this:
variable : APPDATA
value :C:\Users\my_user_name\AppData\Roaming\npm;npm
Upvotes: 2