npm ERR! node-sass@6.0.1 postinstall: `node scripts/build.js`
node-sass
:rainbow: Node.js bindings to libsass
项目地址:https://gitcode.com/gh_mirrors/no/node-sass
免费下载资源
·
1.遇到的问题
vue npm install提示以下错误
2.首次尝试方法
尝试用下面的方式重新安装弄得-saas,结果不起作用 。
npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass
npm install node-sass
这时考虑降级node版本,node.js从10.0-8.17版本。
运行npm install还是报同样的错误
3.最终解决方案
最后继续查找解决方案,发现使用下面的方式生效
npm install node-sass@npm:sass --ignore-scripts
完了之后npm install成功了
然后直接npm run dev
4.总结
还得多尝试,发现问题,解决问题。
GitHub 加速计划 / no / node-sass
8.5 K
1.33 K
下载
:rainbow: Node.js bindings to libsass
最近提交(Master分支:2 个月前 )
6081731a
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3 to 4.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v3...v4)
---
updated-dependencies:
- dependency-name: actions/setup-node
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com> 9 个月前
62c0f46c
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com> 9 个月前
更多推荐
已为社区贡献4条内容
所有评论(0)