nx: Create a New Workspace failed
Please make sure you have read the submission guidelines before posting an issue
Prerequisites
Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
- 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
nx workspace
Current Behavior
nx workspace, not creating
Failure Information (for bugs)
Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
- npx create-nx-workspace@latest
Context
Please provide any relevant information about your setup:
- NX version: latest
A minimal reproduction scenario allows us to quickly confirm a bug (or point out coding problem) as well as confirm that we are fixing the right problem.
Failure Logs
Creating a sandbox with Nx...
warning " > @nrwl/workspace@9.2.2" has incorrect peer dependency "prettier@^1.19.1".
[---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 0/366
new live-test --preset="empty" --interactive=false --collection=@nrwl/workspace
Collection "@nrwl/workspace" cannot be resolved.
(node:4646) UnhandledPromiseRejectionWarning: Error: Command failed: "/var/folders/8q/687g4zrx7ddcrhx81vymjj8r0000gn/T/tmp-46466Q2AoD5j1UTy/node_modules/.bin/tao" new live-test --preset="empty" --interactive=false --collection=@nrwl/workspace
at checkExecSyncError (child_process.js:621:11)
at Object.execSync (child_process.js:658:15)
at createApp (/Users/mac/.npm/_npx/4646/lib/node_modules/create-nx-workspace/bin/create-nx-workspace.js:343:21)
at /Users/mac/.npm/_npx/4646/lib/node_modules/create-nx-workspace/bin/create-nx-workspace.js:76:21
at processTicksAndRejections (internal/process/task_queues.js:89:5)
(node:4646) 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:4646) [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.
Other
Any other relevant information that will help us help you.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 16 (3 by maintainers)
I’m going to close this issue, folks. The issue should be resolved.
Having the same issue. First time trying nx, following along with the tutorial, nx failing at step 1.
I tried all the following with same results:
Env:
@jaysoo
--ignore-existingoption getting the same error/Users/mac/.npm/_npxthat directory is emptyNB:
npx create-nx-workspace@8.7.0just working fine hereI have the same issue again
Running npm
6.14.10, Nodev14.15.4, nx/Angular CLI11.1.0I think this error should be fixed. We now use an absolute path to resolve the collection. Could you try again with the latest version of 9x or 10x?
8.7.0 didn’t work for me. Could just be a yarn thing. Ended up doing something else.
cp -a’d over an old workspace and gutted outOn Tue, Apr 21, 2020 at 7:35 PM Shakil Ahmed notifications@github.com wrote:
– All and only the best, Charlie Greenman Founder and UI / Compiler Architect
I’ve worked on previously with 8.7.0 and that’s why instead of the latest I just tried with that old version. And in my case, it’s working.
I just said whats the scenario on my environment, didn’t give a solution. Why the downvote @CharlieGreenman may I know?