macOS 系统下 操作 NPM 命令报错?

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

@leo我找到了解决的方法 谢谢?你一直默默的指导 为你点赞?
方法如下

vagrant@homestead:~/Code/laravel-shop$ rm -rf node_modules/

vagrant@homestead:~/Code/laravel-shop$ yarn config set registry https://registry.npm.taobao.org

file

设置项目中的app.scss文件:/.../Code/laravel-shop/resources/assets/sass/app.scss

file

命令如下:

$ SASS_BINARY_SITE=http://npm.taobao.org/mirrors/node-sass yarn

$ yarn install --no-bin-links

$ npm run watch-poll

file

file

Yes success(happy coding!)。

7年前 评论
讨论数量: 7
leo

yarn global add cross-env

7年前 评论
leo

加上sudo

7年前 评论

@leo

file

file

![Uploading file...]()

![Uploading file...]()

7年前 评论
leo

应该是你的 Homestead Vagrant Box 版本太老,我这边 yarn 的版本是 1.5.1,你的菜 0.27

7年前 评论

@leo我找到了解决的方法 谢谢?你一直默默的指导 为你点赞?
方法如下

vagrant@homestead:~/Code/laravel-shop$ rm -rf node_modules/

vagrant@homestead:~/Code/laravel-shop$ yarn config set registry https://registry.npm.taobao.org

file

设置项目中的app.scss文件:/.../Code/laravel-shop/resources/assets/sass/app.scss

file

命令如下:

$ SASS_BINARY_SITE=http://npm.taobao.org/mirrors/node-sass yarn

$ yarn install --no-bin-links

$ npm run watch-poll

file

file

Yes success(happy coding!)。

7年前 评论

npm run watch-poll
提示:error This is probably not a problem with npm. There is likely additional logging output above
直接 npm install 更新后,再次执行 OK

6年前 评论

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