You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using this command pnpx create-nx-workspace pnpm-nrwl --preset=react-native --appName=mobile --nxCloud=skip
I eventually get a Failed to create a workspace error.
When looking at the error log, this is the command that fails
I've opened the workspace folder and attempted to install the dependency manually, but it fails with the following error
Progress: resolved 774, reused 765, downloaded 0, added 68, done
node_modules/.pnpm/[email protected]/node_modules/detox: Running postinstall script, failed in 71ms
.../[email protected]/node_modules/detox postinstall$ node scripts/postinstall.js
│ node:internal/modules/cjs/loader:1080
│ throw err;
│ ^
│ Error: Cannot find module 'react-native/package.json'
│ Require stack:
│ - /home/vehnet/source/pnpm-nrwl/node_modules/.pnpm/[email protected]/node_modules/detox/src/utils/rn-consts/rn-consts.js
│ - /home/vehnet/source/pnpm-nrwl/node_modules/.pnpm/[email protected]/node_modules/detox/scripts/updateGradle.js
│ - /home/vehnet/source/pnpm-nrwl/node_modules/.pnpm/[email protected]/node_modules/detox/scripts/postinstall.js
│ at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
│ at Module._load (node:internal/modules/cjs/loader:922:27)
│ at Module.require (node:internal/modules/cjs/loader:1143:19)
│ at require (node:internal/modules/cjs/helpers:110:18)
│ at parseRNVersion (/home/vehnet/source/pnpm-nrwl/node_modules/.pnpm/[email protected]/node_modules/detox/src/utils/rn-consts/rn-consts.js:2:23)
│ at Object.<anonymous> (/home/vehnet/source/pnpm-nrwl/node_modules/.pnpm/[email protected]/node_modules/detox/src/utils/rn-consts/rn-consts.js:11:3)
│ at Module._compile (node:internal/modules/cjs/loader:1256:14)
│ at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
│ at Module.load (node:internal/modules/cjs/loader:1119:32)
│ at Module._load (node:internal/modules/cjs/loader:960:12) {
│ code: 'MODULE_NOT_FOUND',
│ requireStack: [
│ '/home/vehnet/source/pnpm-nrwl/node_modules/.pnpm/[email protected]/node_modules/detox/src/utils/rn-consts/rn-consts.js',
│ '/home/vehnet/source/pnpm-nrwl/node_modules/.pnpm/[email protected]/node_modules/detox/scripts/updateGradle.js',
│ '/home/vehnet/source/pnpm-nrwl/node_modules/.pnpm/[email protected]/node_modules/detox/scripts/postinstall.js'
│ ]
│ }
│ Node.js v18.17.0
└─ Failed in 71ms at /home/vehnet/source/pnpm-nrwl/node_modules/.pnpm/[email protected]/node_modules/detox
This issue happens on both Windows 11 and Ubuntu 20.04.4 LTS when using the latest version of pnpm 8.15.4
The workspace creation works as expected when using npm.
Expected Behavior
The create-nx-workspace should complete when using it with pnpx so that pnpm can be used as package manager.
This issue has been automatically marked as stale because it hasn't had any activity for 6 months.
Many things may have changed within this time. The issue may have already been fixed or it may not be relevant anymore.
If at this point, this is still an issue, please respond with updated information.
It will be closed in 21 days if no further activity occurs.
Thanks for being a part of the Nx community! 🙏
Current Behavior
OS: Windows 11 / Ubuntu 20.04.4 LTS
pnpm: 8.15.4
Using this command
pnpx create-nx-workspace pnpm-nrwl --preset=react-native --appName=mobile --nxCloud=skip
I eventually get a
Failed to create a workspace error
.When looking at the error log, this is the command that fails
NX Command failed: pnpm add -D @nx/[email protected]
I've opened the workspace folder and attempted to install the dependency manually, but it fails with the following error
This issue happens on both Windows 11 and Ubuntu 20.04.4 LTS when using the latest version of pnpm
8.15.4
The workspace creation works as expected when using npm.
Expected Behavior
The create-nx-workspace should complete when using it with
pnpx
so that pnpm can be used as package manager.GitHub Repo
No response
Steps to Reproduce
pnpx create-nx-workspace pnpm-nrwl --preset=react-native --appName=mobile --nxCloud=skip
pnpm add -D @nx/[email protected]
Nx Report
Failure Logs
Package Manager Version
pnpm 8.15.4
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: