caroundsky / QA

0 stars 0 forks source link

Yarn操作 #5

Open caroundsky opened 1 year ago

caroundsky commented 1 year ago

node-sass 报错pathon

安装 https://www.npmjs.com/package/windows-build-tools 或 yarn config set registry http://192.168.1.216:8081/repository/bg_npm/ yarn config set sass-binary-site http://npm.taobao.org/mirrors/node-sass

提示 computed integrity doesn't match our records, got xxx 时尝试 yarn cache clean yarn --update-checksums yarn install

有时候时node版本与当前node-sass不匹配报错,可以尝试 npm rebuild node-sass

查看/设置源

npm/yarn config get registry npm/yarn config set registry https://registry.npm.taobao.org/

安装忽略node版本

yarn --ignore-engines xxx

.npmrc 文件

registry=https://registry.npm.taobao.org/