Hey everybody I can t c…

less than 1 minute read

Hey everybody, I can’t create a new workspace (been using Nx for more than year now):

npx create-nx-workspace@latest sybb

questions asked, answers given, modules installing then

```Cannot find module ‘@nrwl/workspace/package.json’ Require stack:

  • /private/var/folders/dt/twhsrn9j4bv6g1s16nb1h8nm0000gn/T/tmp-4648ZukS6rIwCxwi/node_modules/@angular-devkit/schematics/tools/node-module-engine-host.js
  • /private/var/folders/dt/twhsrn9j4bv6g1s16nb1h8nm0000gn/T/tmp-4648ZukS6rIwCxwi/node_modules/@angular-devkit/schematics/tools/workflow/node-workflow.js
  • /private/var/folders/dt/twhsrn9j4bv6g1s16nb1h8nm0000gn/T/tmp-4648ZukS6rIwCxwi/node_modules/@angular-devkit/schematics/tools/index.js
  • /private/var/folders/dt/twhsrn9j4bv6g1s16nb1h8nm0000gn/T/tmp-4648ZukS6rIwCxwi/node_modules/@nrwl/tao/src/commands/generate.js
  • /private/var/folders/dt/twhsrn9j4bv6g1s16nb1h8nm0000gn/T/tmp-4648ZukS6rIwCxwi/node_modules/@nrwl/tao/index.js (node:4648) UnhandledPromiseRejectionWarning: Error: Command failed: “/var/folders/dt/twhsrn9j4bv6g1s16nb1h8nm0000gn/T/tmp-4648ZukS6rIwCxwi/node_modules/.bin/tao” new sybb –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/williamghelfi/.npm/_npx/4648/lib/node_modules/create-nx-workspace/bin/create-nx-workspace.js:343:21) at /Users/williamghelfi/.npm/_npx/4648/lib/node_modules/create-nx-workspace/bin/create-nx-workspace.js:76:21 at processTicksAndRejections (internal/process/task_queues.js:89:5) (node:4648) 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:4648) [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.```

Responses:

What’s the version of Node.js you’re running?

v12.3.1

Hm, maybe try updating to 12.16.1? That’s the latest LTS release and I haven’t had any issues with that recently.

Other than that, are you using any custom registries with NPM? That’s the only other thing I could think of at the moment.

thanks for the pointers, trying in a sec :slightly_smiling_face:

woah upgrading node was the answer! thanks again!

Updated: