Npm permission problem


#1

npm ERR! fetch failed https://registry.npmjs.org/minimatch/-/ionic@2.2.2.tgz
npm ERR! Darwin 16.7.0
npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” “i” “-g” "ionic@2.2.2"
npm ERR! node v6.11.3
npm ERR! npm v3.10.10

npm ERR! Hostname/IP doesn’t match certificate’s altnames: "Host: registry.npmjs.org. is not in the cert’s altnames: DNS:*.smartdnsproxy.com, DNS:smartdnsproxy.com"
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues

im using macbook pro.


#2

I think you should talk to whoever administers your network.


#3

thank you , the main problem is internet provider ? or network admin any block


#4

Hi open the NodeJS CLI with administrator permission.

  1. First right click on NodeJS CLI and click on “Run as administrator”
  2. It will work, If the problem still exist. Please reinstall the npm through the NodeCLI just we opened earlier.

#5

Please do not listen to the advice in the previous post. Never run node as a superuser. There is never a need to do so and it can cause problems that are very difficult to untangle. Please use nvm instead.


#6

Agreed on using nvm. I made the change yesterday after permission issued starting driving me nuts. It’s fantastic


#7

http://flnkr.com/2014/11/install-nvm-and-node-js-on-os-x/

this link is correct?? to solved my issue :slight_smile:


#8

i followed this link