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

[Bug] "npm config set cmake_LLVM_DIR ..." no longer allowed by npm #54

Open
rishavs opened this issue Jul 4, 2023 · 0 comments
Open

Comments

@rishavs
Copy link

rishavs commented Jul 4, 2023

Your environment

  • OS version: Windows 11
  • Node.js version: 20.2.0
  • LLVM version: 16.0.0

Describe the bug
NPM no longer allows users to set custom configs. As such, installing this library is no longer possible.
More discussion here npm/cli#5852
Using this command throws error;

PS C:\Users\risharan\Documents\GitHub\tails> npm config set cmake_LLVM_DIR "C:\Users\risharan\scoop\apps\llvm\current\lib\cmake\llvm"
npm ERR! `cmake_LLVM_DIR` is not a valid npm option

npm ERR! A complete log of this run can be found in: C:\Users\risharan\scoop\persist\nodejs\cache\_logs\2023-07-04T12_23_04_114Z-debug-0.log

Expected behavior

Expected to set the npm config to install the bindings. However this is no longer possible.
Instead will recommend;

  1. Adding a config in package.json for the path
  2. using os path variable for this
  3. passing path as argument to npm install
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