not able to create new workspace
See original GitHub issuePlease answer the following questions for yourself before submitting an issue.
- I am running the latest version
- I checked the documentation (nx.dev) and found no answer
- I checked to make sure that this issue has not already been filed
- I’m reporting the issue to the correct repository (not related to React, Angular or any dependency)
Expected Behavior
Should create a new Workspace I am using Win10 64 Bit, Tried with powershell and git bash
Current Behavior
I allways got an error
Failure Information (for bugs)
npx create-nx-workspace@latest ProjectName npx: installed 169 in 25.87s ? What to create in the new workspace empty [an empty workspace] ? CLI to power the Nx workspace Angular CLI [Extensible CLI for Angular applications. Recommended for Angular pro jects.] Creating a sandbox with Nx… error An unexpected error occurred: “%27%27/@nrwl%2fworkspace: Invalid URI "%27%27/@nrwl%2fworkspace"”. (node:17844) UnhandledPromiseRejectionWarning: Error: Command failed: yarn install --silent at checkExecSyncError (child_process.js:621:11) at Object.execSync (child_process.js:657:15) at createSandbox (C:\Users\Name\AppData\Roaming\npm-cache_npx\17844\node_modules\create-nx-workspace\bin\create-nx-workspace.js:337:21) at C:\Users\Name\AppData\Roaming\npm-cache_npx\17844\node_modules\create-nx-workspace\bin\create-nx-workspace.js:74:36 at processTicksAndRejections (internal/process/task_queues.js:93:5) (node:17844) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:17844) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
If you can provide steps to reproduce from scratch, that would be enormously appreciated (i.e. where the first step is npx create-nx-workspace@latest repro-workspace
)
npx create-nx-workspace@latest ProjectName
- select option for creating angular project
- select scss for styling
Please provide any relevant information about your setup: node: v12.13.0, npm: 6.13.6 Win 10 64Bit
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:6 (1 by maintainers)
Little hint: My workaround was to remove my global yarn installation.
Updating my global Yarn package fixed it for me as @vsavkin suggested.
npm install -g yarn@latest