npm install node-sass 报错[email protected] postinstall: `node scripts/build.js`

本文指导如何在遇到node-sass数据源问题时,通过设置npm配置项`sass_binary_site`为淘宝镜像,轻松解决npm install node-sass的安装难题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在这里插入图片描述
解决方案:直接在当前目录下进行node-sass 的数据源没设置

npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass

在这里插入图片描述
再次执行 npm install node-sass 即可

PS D:\Desktop\EAP本地\EAPAdmin\ADM_Client> npm install node-sass@6 sass-loader@10 --save-dev npm WARN deprecated node-sass@6.0.1: Node Sass is no longer supported. Please use `sass` or `sass-embedded` instead. npm WARN deprecated npmlog@4.1.2: This package is no longer supported. npm WARN deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm WARN deprecated glob@7.1.7: Glob versions prior to v9 are no longer supported npm WARN deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported npm WARN deprecated are-we-there-yet@1.1.7: This package is no longer supported. npm WARN deprecated gauge@2.7.4: This package is no longer supported. > node-sass@6.0.1 install D:\Desktop\EAP本地\EAPAdmin\ADM_Client\node_modules\node-sass > node scripts/install.js Cached binary found at E:\nodejs\node_cache\node-sass\6.0.1\win32-x64-72_binding.node > node-sass@6.0.1 postinstall D:\Desktop\EAP本地\EAPAdmin\ADM_Client\node_modules\node-sass > node scripts/build.js Binary found at D:\Desktop\EAP本地\EAPAdmin\ADM_Client\node_modules\node-sass\vendor\win32-x64-72\binding.node Testing binary Binary is fine npm WARN ajv-keywords@3.5.2 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies your self. npm WARN eslint-plugin-vue@4.7.1 requires a peer of eslint@^3.18.0 || ^4.0.0 but none is installed. You must install pee r dependencies yourself. npm WARN extract-text-webpack-plugin@3.0.2 requires a peer of webpack@^3.1.0 but none is installed. You must install pee r dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"an y"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.3 (node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.3: wanted {"os":"darwin","arch":"any "} (current: {"os":"win32","arch":"x64"}) + node-sass@6.0.1 + sass-loader@10.5.2 added 7 packages from 8 contributors, removed 5 packages and updated 3 packages in 29.343s 160 packages are looking for funding run `npm fund` for details
最新发布
07-11
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值