npm install 报错,请问如何解决
npm WARN [email protected] requires a peer of eslint@^4.19.1 || ^5.3.0 but none is installed. You must in stall peer dependencies yourself. npm WARN [email protected] requires a peer of eslint@^5.0.0 but none is installed. You must install peer dependenc ies yourself. npm WARN [email protected] requires a peer of eslint@^5.0.0 but none is installed. You must install peer dependenc ies yourself. npm WARN [email protected] requires a peer of eslint@^5.0.0 but none is installed. You must install peer dependenc ies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any "} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\watchpack\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any "} (current: {"os":"win32","arch":"x64"})
up to date in 16.277s
9 packages are looking for funding run npm fund for details
info using [email protected] info using [email protected]
window 10
[email protected] preinstall D:\work\lincms\lin-cms-vue\node_modules\yarn :; (node ./preinstall.js > /dev/null 2>&1 || true)
[email protected] install D:\work\lincms\lin-cms-vue\node_modules\deasync node ./build.js
win32-x64-node-12 exists; testing
Binary is fine; exiting
[email protected] install D:\work\lincms\lin-cms-vue\node_modules\yorkie node bin/install.js
setting up Git hooks done
[email protected] install D:\work\lincms\lin-cms-vue\node_modules\node-sass node scripts/install.js
Cached binary found at C:\Users\zhang\AppData\Roaming\npm-cache\node-sass\4.14.1\win32-x64-72_binding.node
[email protected] postinstall D:\work\lincms\lin-cms-vue\node_modules\swiper node -e "console.log('\u001b[35m\u001b[1mLove Swiper? Support Vladimir's work by donating or pledging on patreon:\u00 1b[22m\u001b[39m\n > \u001b[32mhttps://patreon.com/vladimirkharlampidi\u001b[0m\n')"
Love Swiper? Support Vladimir's work by donating or pledging on patreon:
https://patreon.com/vladimirkharlampidi
[email protected] postinstall D:\work\lincms\lin-cms-vue\node_modules\node-sass node scripts/build.js
Binary found at D:\work\lincms\lin-cms-vue\node_modules\node-sass\vendor\win32-x64-72\binding.node Testing binary Binary is fine npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\watchpack\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any "} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any "} (current: {"os":"win32","arch":"x64"})
- [email protected]
- [email protected] added 1959 packages from 1157 contributors in 181.417s
9 packages are looking for funding
run npm fund for details
应该是 node-sass 安装失败 https://github.com/lmk123/blog/issues/28 可以参考下
npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass
npm config set sass_binary_site https://npm.taobao.org/mirrors/node
原来的设置 后改成
npm config set registry https://registry.npm.taobao.org
npm config set electron_mirror https://npm.taobao.org/mirrors/electron/
npm config set phantomjs_cdnurl https://npm.taobao.org/mirrors/phantomjs/
npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/
报错依旧!


目前有大神说是本地环境问题 基本版本是满足要求的 ,不知道怎么继续了……
试下 vue-next 分支,Vue3版本,把node-sass替换掉了
可以尝试一下 vue-element-admin 这个框架 很完善, lin cms在实践中发现 有太多问题了