-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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] Prefix in .npmrc ignored #6081
Comments
npm should probably log an error if it sees you trying to do that. |
Any other way to change the location of the |
No, and lots of tooling depends on it being in that exact location, so it shouldn’t be moved. |
Hello, I'm an intern at CodeDay Labs and I've been working on resolving this issue alongside my teammate, Aaron. |
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
I'm trying to change the prefix for the current project using a .npmrc file.
The prefix in the .npmrc file is ignored. Tested with
npm install
andnpm prefix
.The output of
node prefix
is the current directory instead of the configured directory.Expected Behavior
I expected
npm
to use the prefix in the .npmrc file.Steps To Reproduce
.npmrc
with contentsprefix=./vendor
.npm prefix
ornpm install
../node_modules
in the current directory.Environment
The text was updated successfully, but these errors were encountered: