2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

npm ERR! code E404からやっと抜け出せた;;

Last updated at Posted at 2022-02-02

ハマりにハマったnpm install

npm install でずっと「npm ERR! code E404」から抜け出せずにいたが半日後にやっと解決・・・

プログラミングを学び始めた自分にとってかなり辛かった・・・

npm ERR! code E404

$ npm install --save-dev typescript ts-loader webpack webpack-cli webpack-dev-server

npm ERR! code E404
npm ERR! 404 Not Found - GET http://registry.npmjs.org/typescript
npm ERR! 404 
npm ERR! 404  'typescript@latest' 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 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/username/.npm/_logs/2022-02-02T15_55_11_968Z-debug.log

解決策

$ rm /home/colleagueName/.npmrc

参考URL

自分はこの方法でやったらインストールできるようになりました!

どうやら.npmrcファイルを削除すればよかったらしいです。

なんかいじっちゃったんですかね?真相は分かりません・・・

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?