npm installなど実行時に「npm ERR! code ETIMEDOUT」
今回はnpm installなどnpm関係のコマンド実行時に下記のエラーが起きる原因についてお話ししていきます。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
224.2 npm WARN deprecated consolidate@0.15.1: Please upgrade to consolidate v1.0.0+ as it has been modernized with several long-awaited fixes implemented. Maintenance is supported by Forward Email at https://forwardemail.net ; follow/watch https://github.com/ladjs/consolidate for updates and release changelog 296.5 npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs 310.6 npm ERR! code ETIMEDOUT 310.6 npm ERR! errno ETIMEDOUT 310.6 npm ERR! network request to https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz failed, reason: 310.6 npm ERR! network This is a problem related to network connectivity. 310.6 npm ERR! network In most cases you are behind a proxy or have bad network settings. 310.6 npm ERR! network 310.6 npm ERR! network If you are behind a proxy, please make sure that the 310.6 npm ERR! network 'proxy' config is set properly. See: 'npm help config' 310.6 310.6 npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-05-07T02_08_11_024Z-debug-0.log ------ failed to solve: process "/bin/sh -c npm install" did not complete successfully: exit code: 1 |
npm installなど実行時に「npm ERR! code ETIMEDOUT」
結論から言うとネットワークが遅くてnpm install時にパッケージなどをダウンロードできなかったときに表題のエラーが起こります。
お使いのPCがインターネットにつながっているか、Wi-Fiが極端に遅くなっていないかなどを確認するようにしましょう。
終わりに
今回はnpm installなどnpm関係のコマンド実行時に表題のエラーが起きる原因についてお話しいたしました。
最後までお読みいただきありがとうございます。
よろしければブログやTwitterでのシェアをお願いしております。
コメントもお待ちしております。
誤植や勘違いなどございましたらコメント欄にて教えていただけると幸いです。
ITパスポート、基本情報技術者、応用情報技術者などIPAが提供する国家資格の過去問を学べるモバイルアプリをリリースしました。
詳しくは下記のプレスリリースをご覧ください。
https://prtimes.jp/main/html/rd/p/000000008.000073303.html
Youtubeチャンネル開設いたしました。
チャンネル登録者10,000人を目指しているので、良いと思った方はチャンネル登録をお願いしたいです。
https://www.youtube.com/channel/UC219XhmSRxmXltTy6COxSMw
関連記事

「npm install」「npm ci」時に「Can’t find Python executable “python”, you can set the PYTHON env variable.」
今回は「npm install」や「npm ci」を叩いたときに下記のようなエラ ...

npm ciで「npm ERR! Cannot read property ‘@angular/animations’ of undefined」
今回はnpm ciを叩いたときに下記のエラーが起きたときの対処法についてご紹介し ...

npm ciで「npm ERR! cipm can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync」
今回はnpm ciを叩いたときに下記のエラーが出たときの原因についてお話ししてい ...

Node.js+Nuxt.js環境でnpm run dev時に「Error: error:0308010C:digital envelope routines::unsupported」
今回はNode.js+Nuxt.js環境でnpm run dev時に下記のエラー ...

npm ciで「`npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync」
今回はnpm ciを行った際に下記のようなエラーが起きる原因と対処法についてご紹 ...
ディスカッション
コメント一覧
まだ、コメントがありません