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 version 6.11.1 is not available #379

Open
gtallen1187 opened this issue Aug 17, 2018 · 11 comments · May be fixed by #382
Open

node version 6.11.1 is not available #379

gtallen1187 opened this issue Aug 17, 2018 · 11 comments · May be fixed by #382

Comments

@gtallen1187
Copy link

Apologies in advance if this is an easy solve, I'm very much an amateur/rookie when it comes to programming.

I've followed all of your steps for the deployment via now, but the build is failing with the below error message:

> WARN! Requested node version 6.11.1 is not available
> Using Node.js 8.11.3 (default)
> https://slackin-upzeewswgi.now.sh [in clipboard] (bru1) [5s]
> Building…
> ▲ yarn
> yarn install v1.7.0
> info No lockfile found.
> [1/5] Validating package.json...
> error [email protected]: The engine "node" is incompatible with this module. Expected version "6.11.1".
> info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
> error Found incompatible module
> Error! Build failed

Any help/advice from anyone here would be extremely appreciated.

@avikivity
Copy link

Changing "6.11.1" to "6.x.x" in package.json worked for me.

@shawwn shawwn linked a pull request Aug 21, 2018 that will close this issue
@shawwn
Copy link

shawwn commented Aug 21, 2018

@avikivity Thanks, that was amazingly helpful in tracking down the problem. There was one other issue I was running into: When attempting to deploy with now, the hostname was being set to a bogus random name, so I had to hardcode hostname to 0.0.0.0.

I've submitted both @avikivity's solution and the hostname hack to PR #382.

In the meantime, if anyone just wants to get slackin to work, run this:

now shawwn/slackin

I've confirmed that works with the latest now client on OS X.

@brycereynolds
Copy link

The above still wasn't working for me. I ended up removing the entire node engine declaration from package.json and let now choose. So far so good...

@gtallen1187
Copy link
Author

gtallen1187 commented Aug 29, 2018 via email

@lpatmo
Copy link

lpatmo commented Sep 12, 2018

Running now shawwn/slackin unfortunately also did not work for me.

I had to input API keys twice (same when I ran now rauchg/slackin, and I got this error log:

> Using Node.js 6.14.3 (requested: `6.x.x`)
> https://slackin-nxvtrgwvmn.now.sh [in clipboard] (sfo1) [984ms]
> Building…
> ▲ yarn
> yarn install v1.9.4
> info No lockfile found.
> [1/5] Validating package.json...
> error [email protected]: The engine "node" is incompatible with this module. Expected version "6.x.x".
> error Found incompatible module
> info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
> Error! Build failed```

@distalx
Copy link

distalx commented Sep 12, 2018

I guess, there is a PR for this #382.

@shawwn
Copy link

shawwn commented Sep 12, 2018

@lpatmo try now shawwn/slackin.

rauchg seems to have largely abandoned slack, moving Zeit off their platform and onto spectrum. It's frustrating that they broke one of the prime reasons to use their software. slackin was what got me into Zeit.

@lpatmo
Copy link

lpatmo commented Sep 12, 2018

@shawwn Thanks for the info; I didn't know Zeit was moved to Spectrum! Running now shawwn/slackin unfortunately also did not work for me. The error log I pasted in the above comment is from shawwn/slackin, not from rauchg.

@r39132
Copy link

r39132 commented Sep 13, 2018

@shawwn
Running now shawwn/slackin results in
```> Using Node.js 6.14.3 (requested: 6.x.x)

https://slackin-tfuzcnplzy.now.sh [in clipboard] (sfo1) [2s]
Building…
▲ yarn
yarn install v1.9.4
info No lockfile found.
error [email protected]: The engine "node" is incompatible with this module. Expected version "6.x.x".
error Found incompatible module
[1/5] Validating package.json...
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Error! Build failed```

@r39132
Copy link

r39132 commented Sep 13, 2018

@gtallen1187 @avikivity Did you find a solution? I'm not a node guy, so don't know how to proceed? If I remove the engines line from the package.json file, what do I do next?

@chitacan
Copy link

chitacan commented Oct 8, 2018

use >= 6.0 in "engines" field, works for me

"engines" : {
  "node": ">= 6.0"
}

alternatively, the error message The engine "node" is incompatible with this module. Expected version "6.x.x". is complaint by yarn. just include package-lock.json in your deployment, now will use npm. (no complaint :shipit: )

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

Successfully merging a pull request may close this issue.

8 participants