详细报错信息
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.13.1 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.13.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
很有可能是你sass安装获取源的问题
修改sass安装的源,再运行npm install
D:\项目\tcxxeladmin>npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass
D:\项目\tcxxeladmin>npm install
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
> node-sass@4.13.1 install D:\项目\tcxxeladmin\node_modules\node-sass
> node scripts/install.js
Downloading binary from https://npm.taobao.org/mirrors/node-sass/v4.13.1/win32-x64-64_binding.node
Download complete .] - :
Binary saved to D:\项目\tcxxeladmin\node_modules\node-sass\vendor\win32-x64-64\binding.node
Caching binary to C:\Users\Administrator\AppData\Roaming\npm-cache\node-sass\4.13.1\win32-x64-64_binding.node
> node-sass@4.13.1 postinstall D:\项目\tcxxeladmin\node_modules\node-sass
> node scripts/build.js
Binary found at D:\项目\tcxxeladmin\node_modules\node-sass\vendor\win32-x64-64\binding.node
Testing binary
Binary is fine
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN script-ext-html-webpack-plugin@2.0.1 requires a peer of html-webpack-plugin@^3.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.12 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.12: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
added 110 packages from 105 contributors and audited 15683 packages in 29.88s
23 packages are looking for funding
run `npm fund` for details
found 6 vulnerabilities (4 moderate, 2 high)
run `npm audit fix` to fix them, or `npm audit` for details
网友评论