Npm permission problem

npm ERR! fetch failed
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: is not in the cert’s altnames: DNS:*,"
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!

im using macbook pro.

I think you should talk to whoever administers your network.

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

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.

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.

1 Like

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

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

i followed this link