报错详情:

PS E:\Project_Files\Project\renren-fast-vue> npm install
npm ERR! notsup Unsupported platform for n@6.7.1: wanted {"os":"!win32","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! notsup Valid OS:    !win32
npm ERR! notsup Valid Arch:  any
npm ERR! notsup Actual OS:   win32

解决方法:使用npm install --save node-sass指令

PS E:\Project_Files\Project\renren-fast-vue> npm install --save node-sass
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported

> node-sass@5.0.0 install E:\Project_Files\Project\renren-fast-vue\node_modules\node-sass
> node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v5.0.0/win32-x64-83_binding.node
Download complete  ] - :
Binary saved to E:\Project_Files\Project\renren-fast-vue\node_modules\node-sass\vendor\win32-x64-83\binding.node
Caching binary to C:\Users\Administrator\AppData\Roaming\npm-cache\node-sass\5.0.0\win32-x64-83_binding.node

> node-sass@5.0.0 postinstall E:\Project_Files\Project\renren-fast-vue\node_modules\node-sass
> node scripts/build.js

Testing binary
Binary is fine
npm WARN sass-loader@6.0.6 requires a peer of node-sass@^4.0.0 but none is installed. You must install peer dependencies yourself.

+ node-sass@5.0.0
added 87 packages from 76 contributors in 135.374s

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

 

Logo

前往低代码交流专区

更多推荐