查看: 73|回覆: 0

node 错误运行 node-sass@4.14.0 postinstall: `node scripts/build.js`

[複製鏈接]

1

主題

0

回帖

0

積分

热心网友

金币
0
閲讀權限
220
精華
0
威望
0
贡献
0
在線時間
0 小時
註冊時間
2008-8-31
發表於 2020-7-6 21:36:00 | 顯示全部樓層 |閲讀模式

转自:https://www.cnblogs.com/Dark-fire-liehuo/p/12885864.html

 

报错信息:

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.14.0 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.14.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

解决方案:直接在当前目录下进行node-sass 的数据源没设置

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

再次执行:

npm i

错误信息及解决信息:

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.14.1 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.14.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     D:\software\nodejs\node_cache\_logs\2020-05-13T15_39_06_423Z-debug.log
PS P:\safetyEducation> npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass
PS P:\safetyEducation> npm i

> node-sass@4.14.1 install P:\safetyEducation\node_modules\node-sass
> node scripts/install.js

Downloading binary from https://npm.taobao.org/mirrors/node-sass/v4.14.1/win32-x64-72_binding.node
Download complete  ] - :
Binary saved to P:\safetyEducation\node_modules\node-sass\vendor\win32-x64-72\binding.node
Caching binary to D:\software\nodejs\node_cache\node-sass\4.14.1\win32-x64-72_binding.node

> node-sass@4.14.1 postinstall P:\safetyEducation\node_modules\node-sass
> node scripts/build.js

Binary found at P:\safetyEducation\node_modules\node-sass\vendor\win32-x64-72\binding.node
Testing binary
Binary is fine
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":"any"} (current: {"os":"win32","arch":"x64"})

added 72 packages from 62 contributors in 13.046s

25 packages are looking for funding
  run `npm fund` for details

PS P:\safetyEducation> npm run dev

> renren-fast-vue@1.2.2 dev P:\safetyEducation
> webpack-dev-server --inline --progress --config build/webpack.dev.conf.js\workforceManages。。。。this will throw an 95% emitting

 DONE  Compiled successfully in 12486ms                                                                                                                             23:40:14
 I  Your application is running here: http://localhost:8001


来源:https://www.cnblogs.com/xp0813/p/13257685.html
回覆

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 立即注册

本版積分規則

相关侵权、举报、投诉及建议等,请发 E-mail:qiongdian@foxmail.com

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部