-
Notifications
You must be signed in to change notification settings - Fork 262
Description
Describe the bug
when I create a Nx monorepo, it fails to run and throws this error: "The Nx CLI could not find or load the native binary for your supported platform (linux-x64). This likely means that optional dependencies were not installed correctly, or your system is missing some system dependencies."
When I try to install nx globally, I get this error: "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."
Link to the blitz that caused the error
https://stackblitz.com/edit/sb1-uqxtvz?file=.vscode%2Fsettings.json
Steps to reproduce
- Create a nx monorepo project.
- Run it, it will throw the first error.
- Install nx globally using yarn global add @nrwl/cli , it will throw the second error.
Expected behavior
It should run effeciently without blocking me from installing nx globally.
Parity with Local
- I have run the project in my local machine and I could not reproduce the issue.
Screenshots
No response
Platform
Browser name = Chrome
Full version = 130.0.0.0
Major version = 130
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
performance.memory = {
"totalJSHeapSize": 67288657,
"usedJSHeapSize": 63688377,
"jsHeapSizeLimit": 2160066560
}
Hash = 34c588ed
Additional context
No response