urish/angular-spinner

Run angular-spinner locally (npm i error)

Closed this issue · 10 comments

Hi guys,

We tried to run angular-spinner locally and followed the instructions in the readme file. When we run npm iwe get the following error:

npm ERR! code E404
npm ERR! 404 Not Found: api
npm ERR! 404 
npm ERR! 404  'api' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'angular-spinner'
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm -v
4.4.1

Thanks for your support,
Thomas

Hi @dtslvr ,
Thanks for reporting..

It's working in my side, see the attached GIF.
angular-spinner-npm

How do you install it?

  1. git clone https://github.com/urish/angular-spinner.git
  2. cd angular-spinner
  3. npm i
npm ERR! code E404
npm ERR! 404 Not Found: api
npm ERR! 404 
npm ERR! 404  'api' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'angular-spinner'

@dtslvr , At me the same commands is working. Give me the chance to check more

Can you please run npm cache clean and then your commands above?

Can you please run npm cache clean and then your commands above?

Thanks, I've just checked and it is not helping. Any other ideas?

Any thoughts @urish ?

private repo?
see npm/npm-registry-client#80 (comment)

Wow, you're amazing. The private repo seems to have problems with "@types/angular": "1.6.1", etc.
I've just added a file .npmrcto the project folder with the following content to reset the private repo and everything works:
registry = https://registry.npmjs.com/

Feel free to close the issue @dtslvr . Thanks @urish

urish commented

👍