Giter Club home page Giter Club logo

Comments (9)

antfu avatar antfu commented on May 12, 2024

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.

from ni.

lishoulong avatar lishoulong commented on May 12, 2024

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.

from ni.

ChasLui avatar ChasLui commented on May 12, 2024

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

from ni.

91Cola avatar 91Cola commented on May 12, 2024

hahaha , i alse make this problem
image

from ni.

Bittttter avatar Bittttter commented on May 12, 2024

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

from ni.

bowencool avatar bowencool commented on May 12, 2024

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?

from ni.

bowencool avatar bowencool commented on May 12, 2024

for me,

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

from ni.

yuri-scarbaci-lenio avatar yuri-scarbaci-lenio commented on May 12, 2024

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 🤔

from ni.

sschneider-ihre-pvs avatar sschneider-ihre-pvs commented on May 12, 2024

nx conflicts with https://nx.dev/

from ni.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.