入门教程中, 执行 yarn install --no-bin-links 出问题了?

file

卡死在这, 怎么办

《L01 基础入门》
我们将带你从零开发一个项目并部署到线上,本课程教授 Web 开发中专业、实用的技能,如 Git 工作流、Laravel Mix 前端工作流等。
《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 Laravel 框架的设计哲学。
讨论数量: 9

@yuxingpei 给你贴一段之前评论还在的解决方法

file坑了大半天,终于过了这一章,新上手感觉各种懵逼的不知所谓。。。
1.$ yarn install --no-bin-links
如下输出
vagrant@homestead:~/Code/sample$ yarn install --no-bin-links
yarn install v0.27.5
[1/4] Resolving packages...
[2/4] Fetching packages...
warning fsevents@1.1.2: The platform "linux" is incompatible with this module.
info "fsevents@1.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
在这一步无限等待了。。
感觉是网络不通畅,Ctrl+C停止,删除node_modules目录,重来,试了两次后好了
2.$ yarn add cross-env
在homestead虚拟机里是Linux环境,不需要装这个(在windows 下要装后面也要带--no-bin-links 不然会报错)
参考:http://pilishen.com/posts/reason-and-solut...
3.$ npm run dev
会遇到错误:sh: 1: cross-env: not found, 这个就是前面说的,cross-env是在windows环境下运行的时候用的,homestead虚拟机是Linux环境,不需要。
到package.json文件中删除所有的cross-env。然后重新运行该命令。又遇到下面的错误:
@ ./resources/assets/sass/app.scss 4:14-266
@ multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss
error in ./resources/assets/sass/app.scss
执行了下面
npm rebuild node-sass --no-bin-links
然后再执行
npm run dev
参考:https://github.com/JeffreyWay/laravel-mix/...
4.$ npm run watch-poll

6年前 评论

贴出错误,这样才知道错在哪儿

6年前 评论

@leijiang 错误就是这个指令一输入就全程这个样子了, 等了好久也没装完

6年前 评论

@yuxingpei 给你贴一段之前评论还在的解决方法

file坑了大半天,终于过了这一章,新上手感觉各种懵逼的不知所谓。。。
1.$ yarn install --no-bin-links
如下输出
vagrant@homestead:~/Code/sample$ yarn install --no-bin-links
yarn install v0.27.5
[1/4] Resolving packages...
[2/4] Fetching packages...
warning fsevents@1.1.2: The platform "linux" is incompatible with this module.
info "fsevents@1.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
在这一步无限等待了。。
感觉是网络不通畅,Ctrl+C停止,删除node_modules目录,重来,试了两次后好了
2.$ yarn add cross-env
在homestead虚拟机里是Linux环境,不需要装这个(在windows 下要装后面也要带--no-bin-links 不然会报错)
参考:http://pilishen.com/posts/reason-and-solut...
3.$ npm run dev
会遇到错误:sh: 1: cross-env: not found, 这个就是前面说的,cross-env是在windows环境下运行的时候用的,homestead虚拟机是Linux环境,不需要。
到package.json文件中删除所有的cross-env。然后重新运行该命令。又遇到下面的错误:
@ ./resources/assets/sass/app.scss 4:14-266
@ multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss
error in ./resources/assets/sass/app.scss
执行了下面
npm rebuild node-sass --no-bin-links
然后再执行
npm run dev
参考:https://github.com/JeffreyWay/laravel-mix/...
4.$ npm run watch-poll

6年前 评论

评论功能终于上线了!!!天知道我是怎么熬过来的……
感谢你!!

6年前 评论

感谢,终于过了,目前为止遇到了几个坑...感觉门槛真的高

6年前 评论

file 几个意思啊 这是 重试好几次了

5年前 评论
ShiKi

@Mr_Guo 你解决啦吗?

5年前 评论

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