Skip to content

Failure to support nx monorepos. #1581

@dominicmule

Description

@dominicmule

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

  1. Create a nx monorepo project.
  2. Run it, it will throw the first error.
  3. 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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions