question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npx create-nx-workspace installs Nx 13 packages

See original GitHub issue

Current Behavior

The following command npx create-nx-workspace --preset=ts installs Nx 13.10.3 packages

Expected Behavior

With Nx 14.0.5 being the current version, I would expect Nx 14.0.5 packages to be installed.

As a workaround, this command installs Nx 14 packages: npx create-nx-workspace@latest --preset=ts

Steps to Reproduce

The following installs Nx 13 packages: npx create-nx-workspace --preset=ts

Environment

   Node : 16.11.1
   OS   : win32 x64
   npm  : 8.0.0
   
   nx : 13.10.3
   @nrwl/angular : Not Found
   @nrwl/cypress : Not Found
   @nrwl/detox : Not Found
   @nrwl/devkit : 13.10.3
   @nrwl/eslint-plugin-nx : Not Found
   @nrwl/express : Not Found
   @nrwl/jest : 13.10.3
   @nrwl/js : 13.10.3
   @nrwl/linter : 13.10.3
   @nrwl/nest : Not Found
   @nrwl/next : Not Found
   @nrwl/node : Not Found
   @nrwl/nx-cloud : Not Found
   @nrwl/nx-plugin : Not Found
   @nrwl/react : Not Found
   @nrwl/react-native : Not Found
   @nrwl/schematics : Not Found
   @nrwl/storybook : Not Found
   @nrwl/web : Not Found
   @nrwl/workspace : 13.10.3
   typescript : 4.6.4
   rxjs : 6.6.7
   ---------------------------------------
   Community plugins:

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
AgentEndercommented, May 3, 2022

There isn’t a hard-coded version that you’ll find. npx create-nx-workspace downloads and runs the create-nx-workspace package. The version that it downloads, is the version that will get created. Because of npx’s caching mechanisms, it’s possible that this would not automatically be the latest version.

I’m going to close this issue out, since it is working as intended. If you run npx create-nx-workspace@{v}, its going to create a workspace containing nx@{v} as intended.

0reactions
marckassaycommented, May 3, 2022

@AgentEnder Having latest as a suffix worked! But I mentioned that in the description.

I searched thru Nx repo expecting to find an outdated hard-coded version variable for Nx packages. Unfortunately unable to find anything. More curious at this point in time as to what change is needed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

create-nx-workspace - npm
Start using create-nx-workspace in your project by running `npm i create-nx-workspace`. There are 2 other projects in the npm registry using ...
Read more >
create-nx-workspace - CLI command
Install create -nx-workspace globally to invoke the command directly, or use npx create-nx-workspace , yarn create nx-workspace , or pnpx create-nx-workspace ...
Read more >
2 - Creating an Nx Workspace - Angular and NgRx - GitBook
Run the below command in a terminal to make a new nx workspace. · Since the new NX workspace has no apps or...
Read more >
Nx v14 is out — Here is all you need to know!
A lot happened since we released Nx version 13 back in October 2021. Nx has roughly a ... npx nx generate @nrwl/nx-plugin:plugin --name=workspace-extensions....
Read more >
How to setup a nx workspace for plain javascript (Cannot find ...
npx create -nx-workspace@latest # installs 15.2.1 # style: package-based # distributed caching: NO. Install react-package npm install -D ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found