在 win10 环境下的 Homestead,执行 yarn install 报错,卡了好久了???

在win10下的homestead环境,运行yarn install 报错
报错如下:

《L01 基础入门》
我们将带你从零开发一个项目并部署到线上,本课程教授 Web 开发中专业、实用的技能,如 Git 工作流、Laravel Mix 前端工作流等。
《L05 电商实战》
从零开发一个电商项目,功能包括电商后台、商品 & SKU 管理、购物车、订单管理、支付宝支付、微信支付、订单退款流程、优惠券等
KayuHo
最佳答案

yarn install --no-bin-links 试试

6年前 评论
讨论数量: 2

vagrant@homestead:~/Code/sample$ yarn install
yarn install v0.27.5
info No lockfile found.
[1/4] Resolving packages...
warning gulp > gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https:// medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
warning laravel-elixir > gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines a t https://medium.com/gulpjs/gulp-util-ca3b1f...
warning gulp > vinyl-fs > graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility with curre nt and future versions of Node.js
warning laravel-elixir > gulp-coffee > gulp-util@3.0.8: gulp-util is deprecated - replace it, following th e guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f...
warning laravel-elixir > babel-preset-es2015@6.24.1: ???? Thanks for using Babel: we recommend using babe l-preset-env now: please read babeljs.io/env to update!
warning laravel-elixir > gulp-phpunit > gulp-util@2.2.20: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f...
warning laravel-elixir > gulp-sass > gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f...
warning laravel-elixir > gulp-shell > gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f...
warning laravel-elixir > gulp-phpspec > gulp-util@3.0.8: gulp-util is deprecated - replace it, following t he guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f...
warning laravel-elixir > run-sequence > gulp-util@3.0.8: gulp-util is deprecated - replace it, following t he guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f...
warning gulp > vinyl-fs > glob-stream > minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to av oid a RegExp DoS issue
warning laravel-elixir > gulp-if > gulp-match > minimatch@1.0.0: Please update to minimatch 3.0.2 or highe r to avoid a RegExp DoS issue
warning gulp > vinyl-fs > glob-watcher > gaze > globule > minimatch@0.2.14: Please update to minimatch 3.0 .2 or higher to avoid a RegExp DoS issue
warning gulp > vinyl-fs > glob-watcher > gaze > globule > glob > graceful-fs@1.2.3: please upgrade to grac eful-fs 4 for compatibility with current and future versions of Node.js
warning laravel-elixir > gulp-phpunit > gulp-messenger > chalkline@0.0.4: No longer sponsored by CT - plea se visit http://niftylettuce.com for more info
[2/4] Fetching packages...
warning fsevents@1.1.3: The platform "linux" is incompatible with this module.
info "fsevents@1.1.3" is an optional dependency and failed compatibility check. Excluding it from installa tion.
[3/4] Linking dependencies...
error An unexpected error occurred: "EPROTO: protocol error, symlink '../../../semver/bin/semver' -> '/hom e/vagrant/Code/sample/node_modules/accord/node_modules/.bin/semver'".
info If you think this is a bug, please open a bug report with the information provided in "/home/vagrant/ Code/sample/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

6年前 评论
KayuHo

yarn install --no-bin-links 试试

6年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!