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

Node v10.5.0下yarn install会出现upath依赖错误 #79

Closed
KurumiSerori opened this issue Jun 28, 2018 · 2 comments
Closed

Node v10.5.0下yarn install会出现upath依赖错误 #79

KurumiSerori opened this issue Jun 28, 2018 · 2 comments

Comments

@KurumiSerori
Copy link

KurumiSerori commented Jun 28, 2018

Mbp:BLHXFY me$ yarn install
yarn install v1.7.0
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
error upath@1.0.4: The engine "node" is incompatible with this module. Expected version ">=4 <=9".
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

如果换用yarn install --ignore-engines或者去掉yarn.lock中与upath有关的几行则会在编译/打包的时候产生很多问题,
还试着删除目录下的node_modules/, package-lock.json & yarn.lock再install,

[4/4] 📃 Building fresh packages...
[1/2] ⡀ fsevents
[2/2] ⡀ electron

[4/4] 📃 Building fresh packages...
success Saved lockfile.
$ electron-builder install-app-deps
• electron-builder version=20.17.1
• loaded configuration file=/Users/kurumi/Projects/github/BLHXFY/electron-builder.json
Error: Unresolved node modules: react

之后出现找不到Error: Unresolved node modules: react的错误,是不是需要添加react依赖?

anodynos/upath#14
enzymejs/enzyme#1637

@KurumiSerori KurumiSerori changed the title Node v10.5.0下用yarn安装会出现upath依赖版本错误 Node v10.5.0下yarn install会出现upath依赖错误 Jun 28, 2018
@KurumiSerori
Copy link
Author

删除node_modules/yarn.lock后,通过yarn add react解决了。

@biuuu
Copy link
Owner

biuuu commented Jun 28, 2018

#80
升级了依赖 upath 的模块,这样应该可以用 yarn install 了

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

2 participants