Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Naming conflicts #33

Closed
lishoulong opened this issue Oct 18, 2021 · 9 comments
Closed

Naming conflicts #33

lishoulong opened this issue Oct 18, 2021 · 9 comments
Labels
help wanted Extra attention is needed pr welcome

Comments

@lishoulong
Copy link

After install ni globally, I found nrm instruction is substituted by ni feature.
Usually, I use nrm as managing npm registries tools.

So, can we rename nrm to other name? From the download size of nrm, it was commonly used.

@antfu
Copy link
Member

antfu commented Oct 18, 2021

Anyone knows a better way to solve this? Frankly, any cli names could potentially conflict with others. I would like to have something like "optional binary" for npm and let users select which cli they want or not.

@antfu antfu added help wanted Extra attention is needed pr welcome labels Oct 18, 2021
@antfu antfu changed the title nrm name conflict Naming conflicts Oct 18, 2021
@lishoulong
Copy link
Author

After search solutions for this problem, there is no good answer.
The npm official solutions is to warning the developers for the conflicts, and let the owner to rename the exported bin name.

@ChasLui
Copy link

ChasLui commented Nov 10, 2021

Is it possible to take a page from python virtual env and enter a proprietary env environment

@91Cola
Copy link

91Cola commented Nov 15, 2021

hahaha , i alse make this problem
image

@Bittttter
Copy link

I can't install ni where I had installed nrm before 😓.
The error log followed:

52 verbose argv "/Users/edz/.nvm/versions/node/v16.13.0/bin/node" "/Users/edz/.nvm/versions/node/v16.13.0/bin/npm" "i" "-g" "@antfu/ni"
53 verbose node v16.13.0
54 verbose npm  v8.1.0
55 error code EEXIST
56 error path /Users/edz/.nvm/versions/node/v16.13.0/bin/nrm
57 error EEXIST: file already exists
58 error File exists: /Users/edz/.nvm/versions/node/v16.13.0/bin/nrm
59 error Remove the existing file and try again, or run npm
60 error with --force to overwrite files recklessly.
61 verbose exit 1

@bowencool
Copy link

Anyone knows a better way to solve this? Frankly, any cli names could potentially conflict with others. I would like to have something like "optional binary" for npm and let users select which cli they want or not.

nrv or nui?

@bowencool
Copy link

for me,

mv /usr/local/bin/nrm /usr/local/bin/nrt
npm i -g @antfu/ni

@yuri-scarbaci-lenio
Copy link

yuri-scarbaci-lenio commented Feb 28, 2022

Something somewhat related is nx

the command nx to execute a bash command is conflicting with the nx command from the nx mono-repo tool

Would you consider adding an alias to the nx command?
we have nx installed as a dev dependency in our project so this is not really breaking anything nor requires any direct change, but it gets confusing pretty fast to find scripts in the package.json running nx something to have to consider that it will be scoped with the nx monorepo tool instead of @antfu/ni tool ( even more confusing since they are both used to execute a shell command, but @antfu/ni does it without interacting with mono-repo logic, while nx run it scoped to the mono-repo packages )

I do understand it's impossible to avoid collission with ALL the CLI tools out there, but NX is a pretty big one and might be worth considering 🤔

@sschneider-ihre-pvs
Copy link

nx conflicts with https://nx.dev/

@antfu antfu unpinned this issue Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed pr welcome
Projects
None yet
Development

No branches or pull requests

8 participants