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] SF CLI Installation issue with NodeJS 20.12.2 on Windows #1442

Closed
jag-j opened this issue Apr 17, 2024 · 2 comments
Closed

[BUG] SF CLI Installation issue with NodeJS 20.12.2 on Windows #1442

jag-j opened this issue Apr 17, 2024 · 2 comments

Comments

@jag-j
Copy link
Collaborator

jag-j commented Apr 17, 2024

If you are trying to install SF CLI with NodeJS 20.12.2 on Windows, it would fail because of a known issue in CLI - forcedotcom/cli#2822. A fix for this (and other spawn uses) was shipped in nightly last night and will be promoted to latest-rc later today (April 17th) by the CLI team.

It will be promoted to latest on April 24th.

@jag-j jag-j pinned this issue Apr 17, 2024
@jiacheng-xu
Copy link

I have seen another issue after I updated NodeJS on Salesforce corp mac.

✗ node --version
v20.12.2
✗ npm install @salesforce/cli --global
npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path /usr/local/lib/node_modules/@salesforce
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/@salesforce'
npm ERR! [Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/@salesforce'] {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'mkdir',
npm ERR! path: '/usr/local/lib/node_modules/@salesforce'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in: /Users/[xxxx]/.npm/_logs/2024-04-23T18_17_27_917Z-debug-0.log

@jfeingold35
Copy link
Collaborator

SF-CLI has released their new version with a fix for this issue, thereby fixing us downstream from them. As such, we're closing this issue.

@jfeingold35 jfeingold35 unpinned this issue May 9, 2024
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

3 participants