正在播放:Laravel 6.0 新特性 - 使用全新的 Laravel UI 构建用户脚手架系统
更新时间:1年前
Laravel 6.0 最新特性

Ryan 2020-02-17 18:49:20
我run sudo npm install 这个的时候总是出错, 能帮帮我吗? (win10 x64, VirtualBox 6.1.2, Vagrant 2.2.7) vagrant@homestead:~/code/coco$ sudo npm install npm WARN deprecated popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1 npm WARN rollback Rolling back fsevents@1.2.11 failed (this is probably harmless): ETXTBSY: text file is busy, rmdir '/home/vagrant/code/coco/node_modules/fsevents/node_modules' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.11: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: minimist@1.2.0 (node_modules/fsevents/node_modules/rc/node_modules/minimist): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/vagrant/code/coco/node_modules/fsevents/node_modules/rc/node_modules/minimist/package.json.374163688' npm ERR! code EPROTO npm ERR! syscall symlink npm ERR! path ../@babel/parser/bin/babel-parser.js npm ERR! dest /home/vagrant/code/coco/node_modules/.bin/parser npm ERR! errno -71 npm ERR! EPROTO: protocol error, symlink '../@babel/parser/bin/babel-parser.js' -> '/home/vagrant/code/coco/node_modules/.bin/parser' npm ERR! A complete log of this run can be found in: npm ERR! /home/vagrant/.npm/_logs/2020-02-17T10_45_21_835Z-debug.log 然后run sudo npm run dev 这个的时候 报一下错: > @ dev /home/vagrant/code/coco > npm run development > @ development /home/vagrant/code/coco > cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js sh: 1: cross-env: not found npm ERR! code ELIFECYCLE npm ERR! syscall spawn npm ERR! file sh npm ERR! errno ENOENT 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! spawn ENOENT 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-02-17T10_48_36_516Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @ dev: `npm run development` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @ dev 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-02-17T10_48_36_542Z-debug.log 谢谢啦 大神
暂无相关资源