Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install 报错,请问如何解决 #481

Open
zhangjunvip opened this issue Jul 13, 2021 · 5 comments
Open

npm install 报错,请问如何解决 #481

zhangjunvip opened this issue Jul 13, 2021 · 5 comments

Comments

@zhangjunvip
Copy link

npm WARN eslint-config-airbnb-base@13.2.0 requires a peer of eslint@^4.19.1 || ^5.3.0 but none is installed. You must in
stall peer dependencies yourself.
npm WARN eslint-plugin-vue@5.2.3 requires a peer of eslint@^5.0.0 but none is installed. You must install peer dependenc
ies yourself.
npm WARN vue-eslint-parser@5.0.0 requires a peer of eslint@^5.0.0 but none is installed. You must install peer dependenc
ies yourself.
npm WARN vue-eslint-parser@5.0.0 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: fsevents@1.2.9 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any
"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules\watchpack\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: 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 npm@6.14.6
info using node@v12.18.3

window 10

@zhangjunvip
Copy link
Author

yarn@1.22.10 preinstall D:\work\lincms\lin-cms-vue\node_modules\yarn
:; (node ./preinstall.js > /dev/null 2>&1 || true)

deasync@0.1.21 install D:\work\lincms\lin-cms-vue\node_modules\deasync
node ./build.js

win32-x64-node-12 exists; testing
Binary is fine; exiting

yorkie@2.0.0 install D:\work\lincms\lin-cms-vue\node_modules\yorkie
node bin/install.js

setting up Git hooks
done

node-sass@4.14.1 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

swiper@4.4.6 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

node-sass@4.14.1 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: fsevents@2.3.2 (node_modules\watchpack\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any
"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any
"} (current: {"os":"win32","arch":"x64"})

  • yarn@1.22.10
  • or@0.2.0
    added 1959 packages from 1157 contributors in 181.417s

9 packages are looking for funding
run npm fund for details

@vanoneang
Copy link
Member

应该是 node-sass 安装失败 lmk123/blog#28 可以参考下

@zhangjunvip
Copy link
Author

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/
报错依旧!
image

image

目前有大神说是本地环境问题 基本版本是满足要求的 ,不知道怎么继续了……

@vanoneang
Copy link
Member

试下 vue-next 分支,Vue3版本,把node-sass替换掉了

@chengazhen
Copy link

可以尝试一下 vue-element-admin 这个框架 很完善, lin cms在实践中发现 有太多问题了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants