Sass_BINARY_SITE=http://npm.taobao.org/mirrors/node-Sass yarn 报错?

《L03 构架 API 服务器》
你将学到如 RESTFul 设计风格、PostMan 的使用、OAuth 流程,JWT 概念及使用 和 API 开发相关的进阶知识。
《G01 Go 实战入门》
从零开始带你一步步开发一个 Go 博客项目,让你在最短的时间内学会使用 Go 进行编码。项目结构很大程度上参考了 Laravel。
leo
最佳答案

应该是上一步配置镜像有问题

5年前 评论
讨论数量: 25
cd Code/laravel-shop
//第一步
 yarn config set registry https://registry.npm.taobao.org
//第二步
SASS_BINARY_SITE=http://npm.taobao.org/mirrors/node-sass yarn --no-bin-links
//第三步
将package.json中scripts里面的四个cross-env删除
//第四部
npm run watch-poll
5年前 评论
guojx5979 6个月前

file

SASS_BINARY_SITE=http://npm.taobao.org/mirrors/node-sass yarn 后面加上 --no-bin-links

5年前 评论
leo

应该是上一步配置镜像有问题

5年前 评论
刘天承

第一步

一定要配置 yarn config set registry https://registry.npm.taobao.org

第二步

再输入SASS_BINARY_SITE=http://npm.taobao.org/mirrors/node-sass yarn
注意输入的时候,前边不要有多余空格

老铁,望采纳!

5年前 评论

file
我也遇到这个问题了,检查发现是,虚拟机网络连接没设置好;

5年前 评论

file

SASS_BINARY_SITE=http://npm.taobao.org/mirrors/node-sass yarn 后面加上 --no-bin-links

5年前 评论

@xkcaaa 如果有 vpn 的情况下,在 yarn install --no-bin-links 这步,是用国内的快还是用 vpn 快

5年前 评论

@xkcaaa 如果有 vpn 的情况下,在 yarn install --no-bin-links 这步,是用国内的快还是用 vpn 快

5年前 评论

@FreeMason 不清楚,你可以自己试一下做对比。

5年前 评论

@xkcaaa yarn install --no-bin-links 这步花的时间不是一般的长,是超级长,我看其他人差不多一个多小时,我上次执行 yarn install --no-bin-links 到报错,花了应该超过 5 小时,今天执行 yarn install --no-bin-links 超过3小时还没好,用 vpn 的也试了下,太久,我自己暂时没办法测试对比,不知道怎么回事我的怎么要花超级长的时间

5年前 评论

@FreeMason 你用的是什么环境?是vagrant homestead 吗?你ping 一下 npm.taobao.org看网络有没有问题。

5年前 评论

@xkcaaa 用的 vagrant homestead ,ping npm.taobao.org 没看到问题

file

5年前 评论

@FreeMason
你有按照https://learnku.com/articles/13277/in-learning-lessons-there-are-always-craters-recording-solutions
上面的步骤来吗?一般来说安装就几分钟的事情,可能是哪一步出错了。不行你就@一下leo。

5年前 评论

@xkcaaa 1 2 步都执行了,在这第3步卡到,后面的步骤就走不了了

5年前 评论

@leo 在 yarn install --no-bin-links 很久都执行不完,近5小时了,还在等待中,这是怎么回事,ping npm.taobao.org 是正常的

5年前 评论

@FreeMason

file
我之前是这样就没问题了。

5年前 评论

@FreeMason :flushed:我用的手机热点 187s

file

5年前 评论

@天上白玉京 我试了用手机热点,可以。速度也还行,点赞

5年前 评论

@天上白玉京 帮大忙了

5年前 评论
KunHong

我不知道为什么,每次新装一个插件,node_modules 包 就得重新弄一次,上次装城市联动还好,这次我想去装一个 字体库,装上就报错。作者用的是bootcss3、现在安装的都是bootcss4

5年前 评论
cd Code/laravel-shop
//第一步
 yarn config set registry https://registry.npm.taobao.org
//第二步
SASS_BINARY_SITE=http://npm.taobao.org/mirrors/node-sass yarn --no-bin-links
//第三步
将package.json中scripts里面的四个cross-env删除
//第四部
npm run watch-poll
5年前 评论
guojx5979 6个月前

@FreeMason 我的也是真的不动了 , ping 也是可以的 ,不加 --no-bin-links 报错 ,加了贼慢

5年前 评论

设置yarn如下:

yarn config set ignore-engines true

重新install项目包,发现还有问题。

删除node_modules包和yarn.lock文件,重新yarn install。

成功。

3年前 评论

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