1

I created a workspace for React using @nrwl/nx. Now, if anyone clones my repo, do they also need to have nx installed globally?

And if not, how can they run stuff, say the e2e tests? When nx would be installed globally, they would do nx e2e myapp-e2e. I tried to run stuff in powershell instead (where I do not have nx installed globally) of the subsystem linux cli (where I do have nx installed globally). I got the error that the command nx could not be found. I tried to run with npx (npx nx e2e myapp-e2e) but with no luck.

Any thought on how to make this work for people who want to use my repo simply to run the app and the tests (and who are otherwise not interested in running nx globally)?

4

0 回答 0