-
Notifications
You must be signed in to change notification settings - Fork 78
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
Can't NPM install new CLI without using sudo #2480
Comments
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
Hello @pgonzaleznetwork 👋 It looks like you didn't include the full Salesforce CLI version information in your issue. A few more things to check:
Thank you! |
@mshanemc notice there's no more info required as I can't provide that info :) |
You can You want There's also another approach to this (keep global modules in a different folder you own) https://github.com/sindresorhus/guides/blob/main/npm-global-without-sudo.md if you can't/don't want to change perms on the standard location |
Summary
This is a follow up of #2478. When I try to install the new sfv2 cli with NPM, I get an access error. Using
sudo
fixes the error, but then I need to usesudo
every time I run a command.Steps To Reproduce
I made sure to uninstall the whole CLI using these instructions.
Then, I ran
npm install @salesforce/cli --global
And got the following
I ran
cat
on/Users/pgonzalez/.npm/_logs/2023-09-20T15_24_15_875Z-debug-0.log
and got the followingExpected result
I should be able to install the CLI without
sudo
Actual result
Already described
System Information
I'm using bash. There's no version of the CLI, because I'm unable to install it :)
nothing to add
Additional information
The text was updated successfully, but these errors were encountered: