I\'m trying to install some node packages through npm, but it won\'t go. I\'ve already tried to install/unistall/update node, but nothing seems to work.
I\'m using u
1.>Go to your this location
C:\Users\{your user name or ID}
2.> open .npmrc & Remove all content from .npmrc file.
3.>reopen your new command prompt
4.>again run the code , will work.
The problem is with ssl
you should use sudo. Follow below method to resolve the issue.
if you are getting this issue enter sudo npm config set strict-ssl false password: Enter current username password
then now run all ur command wit sudo sudo npm npm install -g underscore password: Enter current username password
Even after if your getting error. Your proxy will be problem. few corporate proxy will be blocked, so you should use wifi or open network to fix this issue.
There is a possibility that your package.json
is causing this.
Parse your package.json
to find the unexpected token
or
Delete your package.json
file and create one through
npm install
This worked for me (not using proxy):
set registry mirror for npm..
npm config set registry http://skimdb.npmjs.com/registry
found mirror from docs:https://docs.npmjs.com/misc/registry
3.npm install -g handlebar //i did because it was showing error in npm log but you can skip
4.after that try to set again official registry
npm config set registry http://registry.npmjs.org
5.now try to install whatever package you want :-)