我在运行npm install命令时遇到麻烦

时间:2020-09-12 09:46:04

标签: node.js npm vagrant

运行npm install和npm run dev命令时出现错误。我运行npm install并收到如下错误:

npm ERR! code EPROTO
npm ERR! syscall symlink
npm ERR! path ../@babel/parser/bin/babel-parser.js
npm ERR! dest /home/vagrant/www/laravel/node_modules/.bin/parser
npm ERR! errno -71
npm ERR! EPROTO: protocol error, symlink '../@babel/parser/bin/babel-parser.js' -> '/home/vagrant/www/laravel/node_modules/.bin/parser'

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/vagrant/.npm/_logs/2020-09-12T09_30_14_511Z-debug.log

然后我运行npm run dev并得到此错误:

code: 'MODULE_NOT_FOUND',
 requireStack: [
   '/home/vagrant/www/laravel/node_modules/webpack-cli/bin/utils/convert-argv.js',
   '/home/vagrant/www/laravel/node_modules/webpack-cli/bin/cli.js',
   '/home/vagrant/www/laravel/node_modules/webpack/bin/webpack.js'
 ]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ development: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ development script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/vagrant/.npm/_logs/2020-09-12T09_30_54_849Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1

有什么主意吗?

1 个答案:

答案 0 :(得分:-1)

您的系统中是否安装了node