Comments (9)
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.
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.
Is it possible to take a page from python virtual env and enter a proprietary env environment
from ni.
hahaha , i alse make this problem
from ni.
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.
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.
for me,
mv /usr/local/bin/nrm /usr/local/bin/nrt
npm i -g @antfu/ni
from ni.
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.
nx
conflicts with https://nx.dev/
from ni.
Related Issues (20)
- Support interactive updates to npm projects HOT 1
- Command "ni" does not work in Windows 11 HOT 1
- Release a docker image especially for the CI situation HOT 2
- Enhancement for non-interactive use cases HOT 4
- Introduce `-w` global flag for running commands in workspaces HOT 1
- New installation method that does not rely on NPM, can be installed and upgraded independently. HOT 2
- Crash on first install
- Is globalAgent always use npm when run 'ni -g xxx' in project workspace? HOT 1
- Error when I use ni HOT 3
- Error on node16 when using the latest version 0.21.9 HOT 5
- If configured a global agent in `~/.nirc` and run `ni -g` inside a workspace, the global agent became `npm`. HOT 1
- Global installation of detected `yarn@>1` and `pnpm@<7` is broken HOT 1
- the node version is 14.17.6 HOT 2
- EPERM: operation not permitted HOT 1
- Should probably run `corepack` to avoid installing package manager globally HOT 1
- Support load config in ~/.config/.nirc HOT 2
- don't working in node 14 HOT 2
- asdf plugin HOT 3
- using nr in vscode integrated terminal on Windows, only 1 out of 2 keystrokes works after exiting.
- Support JSR HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ni.