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

Unable to install dependencies #197

Open
ko-dever opened this issue Dec 23, 2018 · 3 comments
Open

Unable to install dependencies #197

ko-dever opened this issue Dec 23, 2018 · 3 comments

Comments

@ko-dever
Copy link
Contributor

ko-dever commented Dec 23, 2018

Hi Cozy team.

I can't install dependencies (using yarn or npm) :

 ~/Dev/cozy-konnector | master > yarn install
yarn install v1.12.3
[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". Got "11.5.0"
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

I found this issue which seems related. Deleting the same lines in my local yarn.lock fixes the issue :

upath@^1.0.0:
  version "1.0.4"
  resolved "https://registry.yarnpkg.com/upath/-/upath-1.0.4.tgz#ee2321ba0a786c50973db043a50b7bcba822361d"
  integrity sha512-d4SJySNBXDaQp+DPrziv3xGS6w3d2Xt69FijJr86zMPBy23JEloMCEOUBBzuN7xCtjLCnmB9tI/z7SBCahHBOw==
@ko-dever
Copy link
Contributor Author

ko-dever commented Dec 24, 2018

The version of Node seems to be the real issue.

When I had this problem I was using Node v11.5.0.

I tried to downgrade to v10.14.2 (last version available for Node v10) with a new and fresh clone of your repo but same problem.

I tried to downgrade to v8.14.1 (last version available for Node v8) and no error this time. No need to edit the file yarn.lock.

Later I saw this on your doc :

The target node version used to run your connector is the current LTS version (8 at the time this doc was written)

But even the v10.x.x (which is an active Active LTS) does not seem to work correctly.

@doubleface
Copy link
Collaborator

@ko-dever The cozy platform still uses node 8 to run the connectors. You should use this version of node to develop connectors too.

It is of course a problem, that a connector cannot be run in node 10. I see that upath dependency comes from webpack. Maybe an upgrade of webpack will fix it.

@doubleface
Copy link
Collaborator

@ko-dever Or I suppose that running yarn add webpack in your environment will fix it too.

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