无法在Laravel 5.5新项目上安装cross-env

时间:2017-11-29 16:12:09

标签: node.js laravel npm homestead

我正在尝试在新的Laravel 5.5项目上安装corss-env。

我正在使用

node v6.12.0
nmp 3.10.10
Vagrant 2.0.1
laravel/homestead (virtualbox, 4.0.0) on Windows 10
Ubuntu 16.04.3 LTS

我一直在网上搜索,我会尝试以下建议,但都没有解决问题

这是控制台输出

$ npm install --save-dev cross-env 
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents): 
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) 
npm ERR! Linux 4.4.0-92-generic 
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "cross-env" 
npm ERR! node v6.12.0 
npm ERR! npm  v3.10.10 
npm ERR! path ../cross-env/dist/bin/cross-env.js     
npm ERR! code EPROTO 
npm ERR! errno -71 
npm ERR! syscall symlink

npm ERR! EPROTO: protocol error, symlink '../cross-env/dist/bin/cross-env.js' -> '/home/vagrant/code/laravel-5.5/node_modules/.bin/cross-env' 
npm ERR! 
npm ERR! If you need help, you may report this error at: 
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request: 
npm ERR!     /home/vagrant/code/laravel-5.5/npm-debug.log

0 个答案:

没有答案