TypeError: Invalid Version: node.0.0
See original GitHub issueHi
This project looks super cool & i’m really keen to try it but i’m getting errors. Here’s what I did (as per readme):
npm i -g travis-watch
cd /path/to/proj
travis watch .
And i get an error:
travis-watch
⠸ Loading jobs/usr/local/lib/node_modules/travis-watch/node_modules/semver/semver.js:293
throw new TypeError('Invalid Version: ' + version);
^
TypeError: Invalid Version: node.0.0
at new SemVer (/usr/local/lib/node_modules/travis-watch/node_modules/semver/semver.js:293:11)
at SemVer.compare (/usr/local/lib/node_modules/travis-watch/node_modules/semver/semver.js:342:13)
at Function.compare (/usr/local/lib/node_modules/travis-watch/node_modules/semver/semver.js:566:31)
at Object.keys.sort (/usr/local/lib/node_modules/travis-watch/index.js:68:21)
at Array.sort (native)
at Object.keys.forEach.os (/usr/local/lib/node_modules/travis-watch/index.js:67:47)
at Array.forEach (native)
at render (/usr/local/lib/node_modules/travis-watch/index.js:66:24)
at check (/usr/local/lib/node_modules/travis-watch/index.js:135:11)
at travis.jobs.get (/usr/local/lib/node_modules/travis-watch/index.js:55:5)
The project in question is Stayck which i’m working on at the moment.
I assume TW is trying to read version
from package.json
- this is present in my package.json
:
{
"name": "statyck",
"version": "1.2.0",
"description": "A super simple, markdown-based, static blog generator",
"main": "dist/bin.js",
"bin": {
"statyck": "dist/bin.js"
},
"config": {
"force": true
},
"ava": {
"require": [
"babel-register"
],
"babel": "inherit"
},
"scripts": {
...
My apologies if i am doing something stupid - I just can’t see what 😃.
More than happy to test/investigate/send a PR - is this something you can shortcut at all for me please?
Cheers
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
npm install fails "invalid version" - Stack Overflow
When trying to install from the package.json, following error occurs. >npm install npm ERR!
Read more >[BUG] npm ERR! Invalid Version: 0.4.0rc7 · Issue #4992 - GitHub
I am using the latest npm. Current Behavior. "devDependencies": { "grunt-contrib-requirejs": "0.4.4",. npm install. npm timing ...
Read more >NPM error (Invalid version) – Classima - RadiusTheme
Invalid version : “x.x” ) Please follow the below steps: 1. Delete “node_modules” folder (root directory) if it is there. 2. Delete “package-lock ......
Read more >Fix NPM Invalid version error for the npmRunBuild task
This causes the npmRunBuild task to fail on Jenkins with the error: npm ERR! Invalid version. This fix makes it valid temporarily" (e.g....
Read more >Gradle/JS: npmResolve fails with "Invalid version" when user ...
TypeError : Invalid Version: 0.1 at new SemVer ... In other words, if one uses our JS targets, he has to specify the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Confirm! This is fixed (and
travis-watch
is awesome - thank you @juliangruber 😃)Ah ha! I see, now you point that out it’s obvious 😃.
That’d be awesome. thanks. I seem to have a talent for doing things in a slightly awkward way 😃.