ni
ni copied to clipboard
`.nirc` `globalAgent` flag doesn't seem to work.
I have a .nirc
file in the same directory as my package.json, but the globalAgent
is ignored when installing global packages, and is using npm
instead of pnpm
.
Here is the contents of my .nirc
file:
defaultAgent=pnpm
globalAgent=pnpm
.nirc has to be under your home directory ~/.nirc
Is it possible to read from the NPM package so we could commit to GIT? Was trying to make it as easy as possible for the whole team to switch to PNPM.
On another note, I assumed/hoped that nt
would run npm test
. Is there any reason you couldn't add that shortcut?
Is it possible to read from the NPM package so we could commit to GIT?
We could have a ni
field in package.json. PR Welcome
I assumed/hoped that nt would run npm test. Is there any reason you couldn't add that shortcut?
You can set your local alias. See https://github.com/antfu/dotfiles/blob/main/.zshrc#L23-L37