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 doctor wants latest node #145

Closed
DerekNonGeneric opened this issue Nov 19, 2022 · 4 comments
Closed

npm doctor wants latest node #145

DerekNonGeneric opened this issue Nov 19, 2022 · 4 comments
Labels
deps-dev tools Issues and PRs related to the tools directory

Comments

@DerekNonGeneric
Copy link
Member

Running the command npm doctor helps to diagnose several problems often faced by package repos organized like this one.

Two things it looks at currently cause their checks to fail:

  • running latest LTS version of node
  • running latest GA version of npm

We fail these since we have been sticking to Gallium 16.x LTS.

@DerekNonGeneric
Copy link
Member Author

This may be irrelevant now since switching to pnpm since that is our package manager.

https://pnpm.io/cli/doctor

@DerekNonGeneric
Copy link
Member Author

Workaround provided if interested: npm/cli#5888

@DerekNonGeneric
Copy link
Member Author

I had been noticing some other permissions issues flagged by this tool in past and am unsure if it has to do w/ not following the guidance mentioned in npm/rfcs#653:

These all sound great to me; the only time someone should be using sudo with npm is sudo npm install -g when they've installed node in a global place.
npm/rfcs#653 (review)

We do not currently install globally-installed package managers using sudo, see:

@DerekNonGeneric
Copy link
Member Author

as it turns out, pnpm doctor is working fine (without any complaints about versions) — closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deps-dev tools Issues and PRs related to the tools directory
Projects
None yet
Development

No branches or pull requests

1 participant