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

npm install -g meteor has overly strict install requirements #13008

Open
Julusian opened this issue Feb 16, 2024 · 2 comments
Open

npm install -g meteor has overly strict install requirements #13008

Julusian opened this issue Feb 16, 2024 · 2 comments

Comments

@Julusian
Copy link
Contributor

When running npm install -g meteor to install the meteor command line tools, I have to be using node 14 or older.
Once this has been run, you can switch to newer versions of nodejs (and can even uninstall the 14 version), and meteor doesn't care.
This just affects the installer, real meteor will use the version of nodejs that it has bundled.

This limitation is causing onboarding guides to be unnecessarily complex. It essentially requires developers to do the following:

  • nvm install 14
  • npm install -g meteor
  • nvm install 18
  • The rest of the setup stuff.
    Where they have to install node 14 just to run one command, and then switch to the version of node we use for the rest of our non-meteor applications.

Surely the installer shouldn't care what the system version will be? as long as it is capable of running on the current version without issue

As an additional thought, it seems weird to me to install a npm package to let it run a script and then never use it again. It would be nicer for this be reworked to be a npx based command, but that isn't as important to change.

@StorytellerCZ
Copy link
Collaborator

Strange, this is the current setup:

"engines": {
    "node": "<=14.x",
    "npm": "<=6.x"
  }

Maybe changing it to:

"engines": {
    "node": "<=14",
    "npm": "<=6"
  }

might fix the issue?

@Julusian
Copy link
Contributor Author

No, I want to be able to run npm install -g meteor while using node 18 or 20. Ideally there wouldn't be an engines field at all, as this field only affects this installer, and that shouldn't need to run with the same version of node as meteor itself

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants