sudo npm install
コマンドで以下のエラーが出ます
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /home/vagrant/code/project1/node_modules/@babel/core/node_modules/ms/package.json.2382501153
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/home/vagrant/code/project1/node_modules/@babel/core/node_modules/ms/package.json.2382501153'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /home/vagrant/.npm/_logs/2020-02-17T03_06_12_117Z-debug.log
/home/vagrant/code/project1/node_modules/@babel/core/
サーバーの中のcoreフォルダ自体が見当たりません
1226 verbose Linux 4.15.0-72-generic
1227 verbose argv "/usr/bin/node" "/usr/bin/npm" "install"
1228 verbose node v12.14.0
1229 verbose npm v6.13.7
1230 error code ENOENT
1231 error syscall open
1232 error path /home/vagrant/code/project1/node_modules/@babel/core/node_modules/ms/package.json.2382501153
1233 error errno -2
1234 error enoent ENOENT: no such file or directory, open '/home/vagrant/code/project1/node_modules/@babel/core/node_modules/ms/package.json.2382501153'
1235 error enoent This is related to npm not being able to find a file.
1236 verbose exit [ -2, true ]
このエラーを解決してインストールはどうすればいいのでしょうか?
よろしくおねがいします
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/09/07 17:57
2020/09/07 18:05
2020/09/08 23:38
2020/09/11 05:04