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

Verdaccio can't start after updating #2534

Closed
wchalmers opened this issue Mar 19, 2020 · 5 comments
Closed

Verdaccio can't start after updating #2534

wchalmers opened this issue Mar 19, 2020 · 5 comments

Comments

@wchalmers
Copy link

Not sure if this is the right place to put this?

I don't know much about verdaccio as i normally wokr on Windows, verdaccio was working fine, then to update it i types "npm install -g verdaccio" then let it do its thing and restarted both verdaccio and nginx, nginx started fine but verdaccio will not start and is throwing a weird missing syntax token error:

SyntaxError: Unexpected token {
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:616:28)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (/usr/local/lib/node_modules/verdaccio/node_modules/jsdom/lib/jsdom/living/helpers/form-controls.js:18:5)

Can anyone please help me out?

@cjihrig cjihrig transferred this issue from nodejs/node Mar 19, 2020
@wchalmers wchalmers changed the title Verdaccio can't start after installing Verdaccio can't start after updating Mar 19, 2020
@GlenTiki
Copy link

What is your node.js version? run node -v.

Also what is your verdaccio version? run verdaccio -v

@wchalmers
Copy link
Author

wchalmers commented Mar 19, 2020

Its node.js version 8.10.0 (which is depcricated now i think? could that be causing the issue?) and i cant see the verdaccio version because it comes up with the same error as posted above, anytime i try to do a verdaccio command it throws it, i'd imagine it would be quite a new version since its updated every month though.

@GlenTiki
Copy link

Node version 8+ shouldn't be causing the issue, as Verdaccio requires 6+. This may require an issue to be opened in verdaccio itself, over here: https://github.com/verdaccio/verdaccio/issues

@juanpicado
Copy link

juanpicado commented Mar 20, 2020

@enzy20000 your issue is explained here verdaccio/verdaccio#1753

If you cannot upgrade to node v10 , then use

npm i -g verdaccio@4.4.4

We have dropped Node 8 after >v4.5.0 since is not longer maintained (some transitive dependencies required already Node v10) also to help users to easy migrate to a future Verdaccio 5.

In a nutshell,

Verdaccio 4.5.x or higher requires Node >=v10.
Verdaccio 4.0.0-4.4.4 support Node >=8.
Verdaccio 3.x support Node >=6. ⚠️ <- There are no longer maintenance support and I encourage all users to move to v4.
Verdaccio 2.x. <-- well ... if you are still using this, you should not, is under your security risk.

Side note, In any case, please, keep using the latest versions, with the most newer Node.js version as possible.

@wchalmers
Copy link
Author

Thank you Juan!!

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

3 participants