我刚开始使用 homestead 设置开发箱,并希望启用 laravel Webpack 。根据文档,我将需要运行"npm install"
,在运行命令后,我收到多个错误,然后向导关闭。
控制台产生以下错误消息:
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules/fse vents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@ 1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! path ../@babel/parser/bin/babel-parser.js
npm ERR! code EPROTO
npm ERR! errno -71
npm ERR! syscall symlink
npm ERR! EPROTO: protocol error, symlink '../@babel/parser/bin/babel-parser.js' -> '/home/vagrant/code/jvg/node_modules/.bin/parser'
npm ERR! A complete log of this run can be found in:
npm ERR! /home/vagrant/.npm/_logs/2019-02-08T14_45_44_822Z-debug.log
答案 0 :(得分:0)
以管理员身份运行CLI可解决此问题。 不要忘记“无助地摧毁”,“无助地向上”。