Unable to install npm /react /node js on mac terminal

Viewed 4053

I been unable to run npm install on my mac terminal or VSTS code. see below the commands that are trying to run

  1. npm install -g vsts-npm-auth --registry https://registry.npmjs.com--always-auth false
  2. vsts-npm-auth -config .npmrc

error in here

I have an format error on the second command

vsts-npm-auth -config .npmrc zsh: exec format error: vsts-npm-auth 
  1. Run: npm install
  2. run npm start`

As you can see, I can not even past the first command.

I had try clear the proxy assign a proxy And my network is completely fine, I ping https://registry.npmjs.com and it works ok I also did

-npm config set registry https://registry.npmjs.org/

npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! network request to https://registry.npmjs.com--always-auth/vsts-npm-auth failed, reason: getaddrinfo ENOTFOUND registry.npmjs.com--always-auth
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network 
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'
2 Answers

You are missing a space before the --always-auth:

npm install -g vsts-npm-auth --registry https://registry.npmjs.com --always-auth false
# Space was missing here -----------------------------------------^
Related