Comments (9)
As mentioned in #695, pnpm
should also respect $NPM_CONFIG_USERCONFIG
as npm
does.
from pnpm.
neat, why not!
from pnpm.
wait, what's --userconfig
?
from how I understand what you said, it means we can use pnpm install --config custom_npmrc
, and is probably worth noting somehow. Did I understand you correctly?
from pnpm.
Yeah, --userconfig
is just NPM's flag for explicitly setting a specific path to a npmrc file. I've been using it because I don't store it in a home directory. And right: pnpm install --config custom_npmrc
should work the same way :) Haven't tested it... but yea! Should work. Was just wondering if this manager aims to be sort of 1:1, or if it's just best to note that --config
is the way to do it with pnpm and move on.
The alternative is we open a PR on rc
to support some some way of reading process.argv['user-config']
vs process.argv.config
from pnpm.
Was just wondering if this manager aims to be sort of 1:1
Not really, but maybe 95% there. With the store model pnpm is doing, there are likely some things that we can't do.
I'm happy with not supporting --userconfig
when --config
does just fine β there are more important npm flags to implement, really.
One way we can do that is simply to pass process.argv
with --userconfig
swapped out for --config
(rc('npm', {}, argv)
)
from pnpm.
closing this for now... it seems it's not really that important.
if anyone disagrees and needs this option, just voice it out and let's consider it again by then.
from pnpm.
I suggest to support the npm parameter to avoid confusion.
from pnpm.
I very much need support for $NPM_CONFIG_USERCONFIG, and all mentions of that variable in other issues point here. Please reopen.
from pnpm.
I just realized that neither --userconfig
nor --config
exists in v7, and any possibility to override the default config-finding logic was completely removed. Why?
from pnpm.
Related Issues (20)
- `pnpm --parallel exec` does not prefix the output
- Required packages are missing when optional=false HOT 1
- Problems running install command on ubuntu 24.04
- Error installing on FIPS compliant nodejs after pnpm 9.x upgrade HOT 1
- Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory HOT 13
- While I run `pnpm up -g`οΌit can't work as expected. HOT 1
- `winget upgrade pnpm` will remove the PATH FROM user env path, and won't added the new PATH to user env path again. HOT 1
- Add a self upgrade options
- `pnpm up` doesn't update `peerDependencies`
- `pnpm install` without input fails when already node_modules exists HOT 2
- print how to upgrade pnpm when `packageManager` version doesn't match HOT 1
- `package-manager-strict` enforcement in pnpm 9 is a massive headache HOT 12
- Error while running `pnpm run ...` HOT 1
- [Feat/Bug] `pnpm init` does not respect `init.*` options as flags like `npm init --init-*` HOT 3
- PNPM consider Turborepo packages as npm packages HOT 2
- v9 install command upgrades Lockfile in CI environment HOT 1
- "pnpm why" doesn't work properly
- pnpm can create forbidden file name on windows HOT 1
- package peerDependencies are written into the lock file as if they were dependencies. HOT 1
- I cannot update version 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 pnpm.