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

Not working on Windows anymore #39

Closed
delmicio opened this issue Oct 29, 2020 · 3 comments
Closed

Not working on Windows anymore #39

delmicio opened this issue Oct 29, 2020 · 3 comments

Comments

@delmicio
Copy link
Contributor

        "mouf": {
            "nodejs": {
                "version": "8.10.0",
                "forceLocal": false
            }
        }
npm WARN engine npm@7.0.6: wanted: {"node":">=10"} (current: {"node":"v8.10.0","npm":"1.4.12"})
...
npm ERR! node -v v8.10.0
npm ERR! npm -v 1.4.12
npm ERR! code E405
npm ERR!
npm ERR! not ok code 0

                                                           
  [Mouf\NodeJsInstaller\NodeJsInstallerException]          
  An error occurred while updating NPM to latest version. 

It seems that when calling the update on npm it tries to update to a version that requires a higer version than the one installed.
node version needed: v8.10.0
npm tries to update to 7.0.6 wich requires node >=10

passthru("npm update npm", $returnCode);

@delmicio
Copy link
Contributor Author

NPM removed support for versions lower than 10 on this PR
npm/cli@8f6b620

@delmicio
Copy link
Contributor Author

You could fix this by checkin fi the node version is <10 then install npm@6.14.8

@delmicio
Copy link
Contributor Author

I've sen't a PR to fix it
#40

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

1 participant