We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In NPM 7.x, npm install fails when both the --global and --prefix flags are set.
npm install
--global
--prefix
Same as NPM 6.x: The prefix directory should be created if it doesn't exist and the global install should succeed.
npm install typescript -g --prefix <nonExistentDir>
ENOENT: no such file or directory, lstat '<nonExistentDir>'
ENOENT: no such file or directory, lstat '<nonExistentDir>/lib'
The text was updated successfully, but these errors were encountered:
nlf
Successfully merging a pull request may close this issue.
Current Behavior:
In NPM 7.x,
npm install
fails when both the--global
and--prefix
flags are set.Expected Behavior:
Same as NPM 6.x: The prefix directory should be created if it doesn't exist and the global install should succeed.
Steps To Reproduce:
npm install typescript -g --prefix <nonExistentDir>
ENOENT: no such file or directory, lstat '<nonExistentDir>'
ENOENT: no such file or directory, lstat '<nonExistentDir>/lib'
Environment:
The text was updated successfully, but these errors were encountered: