VUE常见问题汇总

目录

1、80端口占用问题

2、sass版本安装问题

3、Missing binding node_modules/node-sass/vendor/darwin-x64-72/binding.node

4、Downloading binary from https://github.com/sass/node-sass/releases/download/v4.14.1/win32-x64-83_binding.node  Cannot download "https://github.com/sass/node-sass/releases/download/v4.14.1/win32-x64-83_binding.node":

5、webstorm Roaming\npm\vue.ps1,因为在此系统上禁止运行脚本

6、 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\fsevents):

7、This is probably not a problem with npm. There is likely additional logging output above.

8、启动vue项目,警告提示browserslist@latest --update-db

9、This is probably not a problem with npm. There is likely additional logging output above.

10、在VUE3+WebPack  >5开发时遇到Module not found: Error: Can’t resolve ‘crypto’错误

11、No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access.

12、npm ERR! Maximum call stack size exceeded


1、80端口占用问题

sudo lsof -n -P | grep :80

2、sass版本安装问题

https://github.com/sass/node-sass/releases

node@14.3.0

node-sass@4.14.1

sass-loader@7.3.1

NodeJS

Supported node-sass version

Node Module

Node 17

7.0+

102

Node 16

6.0+

93

Node 15

5.0+,

88

Node 14

4.14+

83

Node 13

4.13+,

79

Node 12

4.12+,

72

Node 11

4.10+,

67

Node 10

4.9+,

64

Node 8

4.5.3+,

57

Node

npm uninstall node-sass

npm uninstall sass-loader

npm install sass-loader@^6.0.1 node-sass@^10.2.0 --save-dev //安装对应的版本

3、Missing binding node_modules/node-sass/vendor/darwin-x64-72/binding.node

找到node-sass链接,进入url:https://github.com/sass/node-sass/releases

.../node_modules/node-sass/vendor目录下新建目录 darwin-x64-72,将下载的文件放在此目录下,并更名为binding.node

或者使用以下淘宝镜像

npm install node-sass@4.14.1 --sass_binary_site=https://npm.taobao.org/mirrors/node-sass/
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

袭烽

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值