question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Will not run (fresh install) Windows 10 pro - node v - 6.0.0 npm -v 3.8.6

See original GitHub issue

Hi There,

I’ve tried running this project using node v8+ and then dropped down the node -v 6.0.0 to try and see if I could get it to work. I did this because it looked like the project was failing due to node version. But this makes no difference

npm ERR! Failed at the formio@1.25.8 version script ‘check-node-version --node ‘>=6.0.0’’.

I have mongo running fine.

Here is the error I am getting

C:\Users\nigel\formio>npm start

> formio@1.25.8 start C:\Users\nigel\formio
> npm run version && node main.js


> formio@1.25.8 version C:\Users\nigel\formio
> check-node-version --node '>=6.0.0'

C:\Users\nigel\formio\node_modules\semver\semver.js:690
    throw new TypeError('Invalid comparator: ' + comp);
    ^

TypeError: Invalid comparator: '
    at Comparator.parse (C:\Users\nigel\formio\node_modules\semver\semver.js:690:11)
    at new Comparator (C:\Users\nigel\formio\node_modules\semver\semver.js:674:8)
    at C:\Users\nigel\formio\node_modules\semver\semver.js:840:12
    at Array.map (native)
    at Range.parseRange (C:\Users\nigel\formio\node_modules\semver\semver.js:839:13)
    at Range.<anonymous> (C:\Users\nigel\formio\node_modules\semver\semver.js:781:17)
    at Array.map (native)
    at new Range (C:\Users\nigel\formio\node_modules\semver\semver.js:780:40)
    at C:\Users\nigel\formio\node_modules\check-node-version\index.js:119:32
    at module.exports (C:\Users\nigel\formio\node_modules\map-values\index.js:9:18)

npm ERR! Windows_NT 10.0.16299
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "version"
npm ERR! node v6.0.0
npm ERR! npm  v3.8.6
npm ERR! code ELIFECYCLE
npm ERR! formio@1.25.8 version: `check-node-version --node '>=6.0.0'`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the formio@1.25.8 version script 'check-node-version --node '>=6.0.0''.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the formio package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     check-node-version --node '>=6.0.0'
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs formio
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls formio
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\nigel\formio\npm-debug.log

npm ERR! Windows_NT 10.0.16299
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
npm ERR! node v6.0.0
npm ERR! npm  v3.8.6
npm ERR! code ELIFECYCLE
npm ERR! formio@1.25.8 start: `npm run version && node main.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the formio@1.25.8 start script 'npm run version && node main.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the formio package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run version && node main.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs formio
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls formio
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\nigel\formio\npm-debug.log

I found however that doing a ‘node main’ command works and performs the install successfully.

So there is something wrong with the node version checker at least

Any ideas would be be very appreciated. Kind regards

Nige

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
A-Pradeepcommented, May 30, 2018

The problem seems to be with the single quote in the package.json.

Replace “check-node-version --node ‘>=6.0.0’” with “check-node-version --node ">=6.0.0"”

check once and it should be running fine , since im using in win10

0reactions
Ju2c0c0commented, Jun 17, 2018

Nice, it works! Just, do not forget to escape the double quotes or it will be invalid JSON:

"check-node-version --node \">=6.0.0\"" 
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to solve npm install error “npm ERR! code 1”
If your Node.js version is very recent, try downgrading. The stable version 14.16.1 worked.
Read more >
Tip: Click on a version number to view a previous ... - npm
a package manager for JavaScript. Latest version: 9.2.0, last published: 22 days ago. Start using npm in your project by running `npm i...
Read more >
Set up NodeJS on native Windows - Microsoft Learn
js or npm from your operating system before installing a version manager as the different types of installation can lead to strange and ......
Read more >
Electron: Build cross-platform desktop apps with JavaScript ...
The user is prompted to update to v0. Automatic software updates. Send out software updates to your macOS and Windows users whenever you...
Read more >
Node.js platform history - AWS Elastic Beanstalk
js platform branches and the dates that each version was current. Platform versions that you used to launch or update an environment in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found