nodist: Error: Couldn't resolve version spec %s: %s
First of all, thank you very much for very useful application!
Now I got an error in nodeist@0.8.2 in Windows 8.1. I have installed node with version 4.4.7 with nodist.
When I command node
in the directory, then I got an error Sorry, there's a problem with nodist. Couldn't resolve version spec %s: %s >=4.0.0 <7.0.0 improper constraint: >=4.0.0 <7.0.0
.
The directory have package.json file which includes key "engines": {"node": ">=4.0.0 <7.0.0"}
, it might make problem.
When I removed the line "engines": {"node": ">=4.0.0 <7.0.0"}
, then the command node
works well.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 17 (7 by maintainers)
Mh. That’s a bug in the semver lib for the shims.
As an intermediate fix you can override local switching with env switching: you can set the desired version using
nodist env x.x.x
On July 14, 2016 11:25:39 AM CEST, Jack Cuthbert notifications@github.com wrote:
Sent from my Android device with K-9 Mail. Please excuse my brevity.
Deleted
.node-version
file, problem gone.Current progress on this issue: I’ve fixed the underlying library https://github.com/marcelklehr/semver and will release a new version soon.
Not sure if it’s directly connected to this, but here goes: Tried to install typescript and then execute
tsc -v
(or anything else starting withtsc
and I get only this:Sorry, there's a problem with nodist. Couldn't resolve version spec %s: %s --help Unexpected character in constraint --help: --help
I’ve just released v0.8.3, which has the fix for this.