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

NX Missing Platform Dependency - WSL Ubuntu 22.04 #23063

Open
2 of 4 tasks
g1hanna opened this issue Apr 29, 2024 · 0 comments
Open
2 of 4 tasks

NX Missing Platform Dependency - WSL Ubuntu 22.04 #23063

g1hanna opened this issue Apr 29, 2024 · 0 comments
Assignees
Labels
scope: core core nx functionality type: bug

Comments

@g1hanna
Copy link

g1hanna commented Apr 29, 2024

Current Behavior

Console is throwing the following error when I run an NX command to install packages or run targets:

➜ nx add @nx/plugin

[NX]  Missing Platform Dependency

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.
For more information please see https://nx.dev/troubleshooting/troubleshoot-nx-install-issues

Additionally, I can confirm that the @nx/nx-<platform-architecture> is properly installed and that Node.js is configured and running properly.
image

Expected Behavior

Unless there is a limitation to running Nx on a WSL container, Nx commands should run as expected.

GitHub Repo

No response

Steps to Reproduce

  1. Create a WSL machine with the Ubuntu-22.04 tag
  2. Install Node version 18.X.X using nvm
    nvm install v18
  3. Install latest version of Nx or run npx create-nx-workspace
  4. cd into the workspace and run the nx add @nx/plugin command

Nx Report

➜  nx report

 NX   Report complete - copy this into the issue template

Node   : 18.20.2
OS     : linux-x64
npm    : 10.5.0

nx (global)    : 18.3.3
nx             : 18.3.4
@nx/js         : 18.3.4
@nx/workspace  : 18.3.4
@nx/devkit     : 18.3.4
@nrwl/tao      : 18.3.4

Failure Logs

➜  nx add @nx/plugin

 NX   Missing Platform Dependency

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.
For more information please see https://nx.dev/troubleshooting/troubleshoot-nx-install-issues

Package Manager Version

10.5.0

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

Running on an Ubuntu container with the latest version of WSL (Windows 11)

@AgentEnder AgentEnder added the scope: core core nx functionality label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: core core nx functionality type: bug
Projects
None yet
Development

No branches or pull requests

2 participants