nx alias conflict with nx workspaces
mcmxcdev opened this issue · comments
Describe the bug
Unfortunately there is a conflict with https://nx.dev/ which leads to this message on install:
$ npm i -g @antfu/ni
added 1 package, and audited 2 packages in 476ms
found 0 vulnerabilities
Volta error: Executable 'nx' is already installed by nx
Please remove nx before installing @antfu/ni
Reproduction
System Info
System:
OS: Linux 5.15 Manjaro Linux
CPU: (16) x64 AMD Ryzen 7 5800H with Radeon Graphics
Memory: 25.70 GB / 30.73 GB
Container: Yes
Shell: 5.9 - /usr/bin/zsh
Binaries:
Node: 18.12.1 - ~/.volta/tools/image/node/18.12.1/bin/node
Yarn: 1.22.19 - ~/Webdevelopment/Freelancing/myZorro/zorro/node_modules/.bin/yarn
npm: 8.19.2 - ~/.volta/tools/image/node/18.12.1/bin/npm
Browsers:
Brave Browser: 107.1.45.127
Firefox: 107.0
Used Package Manager
pnpm
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- The provided reproduction is a minimal reproducible of the bug.
Perhaps modifying the name of nx and then installing is the best solution, such as modifying nx to nxx
# download ni
npx getcdn @antfu/ni
# change ni, nx => nxx, win: wsl sed ...
sed -i 's/"nx":/"nxx":/' ./cdn/@antfu/ni/package.json
# install ni
npm i -g ./cdn/@antfu/ni
# use nx, eg: ni -v
nxx ni -v
Hi 👋
Also being affected by this. What about changing the command from nx
to something like nix
and those who want to use it as nx
can create an alias to it?
Same problem here. It would be great to update nx
to nix
as suggested by @joaosamouco or nxx
... or basically whatever does not conflict with Nx
Created #134 that implements the change from nx
to nix
if you guys agree. If you want to use something else instead of nix
, I can update the PR 👍