Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"create-nx-workspace" command not found (linxus and windows10 problem)

Can someone please explain me how to setup nrwl/schematics? I'm trying to follow along a course from frontendmasters and they are using nrwl to generate workspace. When I run the same command on my machine (both windows and linux OS) that command is not found

create-nx-workspace someName

Please help me setup this workspace and understand why am I getting this error message. On windows I know that this usually means (not recognized cmdlet) that the PATH to executable is not defined but I have no idea where the path is supposed to be and I couldn't find the answer.

Any help is truly appreciated. Regards

So far I have tried installing @nrwl/schematics as roo/administrator, reinstaling, rebooting PC, tried the stpes on both Linux and Windows

like image 769
zante23 Avatar asked Oct 19 '25 14:10

zante23


2 Answers

use npx create-nx-workspace someName

like image 72
Arunsai B K Avatar answered Oct 22 '25 06:10

Arunsai B K


@nrwl/nx - mentioned in the first answer is deprecated. You need to install @nrwl/cli.

npm install -g @nrwl/cli

That will make nx available on windows path.

like image 36
Atif Majeed Avatar answered Oct 22 '25 07:10

Atif Majeed



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!