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 has removed the "bin" command in version 9.0 #43

Closed
al2o3cr opened this issue Mar 24, 2023 · 0 comments · Fixed by #44
Closed

NPM has removed the "bin" command in version 9.0 #43

al2o3cr opened this issue Mar 24, 2023 · 0 comments · Fixed by #44

Comments

@al2o3cr
Copy link

al2o3cr commented Mar 24, 2023

original discussion on the forums

VegaLite.Export uses the npm bin command to find where to look for executables, but that subcommand was removed in NPM 9.0:

npm/cli#5459

but then there was some concern that the PR author's assumptions (like "the global bin location is always where node is") aren't true across platforms, so now there's an RFC to re-add npm bin but only for the global case:

npm/rfcs#657

The simplest workaround would be to ensure that users are on NPM 8 or lower, but I don't know if that's an easy thing to enforce.

Long-term, the various NPM discussions linked above suggest that this should be using npm run or similar instead of manually searching for executables.

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

Successfully merging a pull request may close this issue.

1 participant