nrwl / nx

Smart Monorepos · Fast CI
https://nx.dev
MIT License
23.23k stars 2.31k forks source link

Spawn EACCES running from terminal #22473

Closed luchillo17 closed 5 months ago

luchillo17 commented 5 months ago

Current Behavior

Trying to run the command locally gives this EACCES error: image

However, if I run it from the VSCode NX CONSOLE, or I prepend with pnpm exec it works fine: image image

Expected Behavior

The task should run from the terminal just as well as it does through NX CONSOLE.

GitHub Repo

https://github.com/luchillo17/graph-meister-public/tree/hotfix/EACCES-dev-error

Steps to Reproduce

  1. Clone repo.
  2. Install deps with pnpm i.
  3. Run NX CONSOLE portfolio:dev task and verify it runs ok.
  4. Run nx run portfolio:dev and see EACCES error log.

Nx Report

Node   : 20.11.0
OS     : linux-x64
pnpm   : 8.15.5

nx (global)        : 18.0.4
nx                 : 18.1.2
@nx/js             : 18.1.2
@nx/linter         : 18.1.2
@nx/eslint         : 18.1.2
@nx/workspace      : 18.1.2
@nx/devkit         : 18.1.2
@nx/eslint-plugin  : 18.1.2
@nx/playwright     : 18.1.2
@nrwl/tao          : 18.1.2
typescript         : 5.4.3
---------------------------------------
Community plugins:
@nxtensions/astro : 18.2.0

Failure Logs

No response

Package Manager Version

No response

Operating System

Additional Information

Running in WSL2 but shouldn't matter.

luchillo17 commented 5 months ago

Uhh my apologies, it seems it is an Astro-specific issue, I created a React app and ran it with nx run todo-react-client:serve and it works fine, I would still appreciate any feedback on how to fix this in @nxtensions/astro.

luchillo17 commented 5 months ago

Moved to https://github.com/nxtensions/nxtensions/issues/597

github-actions[bot] commented 4 months ago

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.