Code Monkey home page Code Monkey logo

Comments (9)

danielbayley avatar danielbayley commented on May 22, 2024 1

As mentioned in #695, pnpm should also respect $NPM_CONFIG_USERCONFIG as npm does.

from pnpm.

rstacruz avatar rstacruz commented on May 22, 2024

neat, why not!

from pnpm.

rstacruz avatar rstacruz commented on May 22, 2024

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.

brianreavis avatar brianreavis commented on May 22, 2024

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.

rstacruz avatar rstacruz commented on May 22, 2024

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.

rstacruz avatar rstacruz commented on May 22, 2024

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.

zkochan avatar zkochan commented on May 22, 2024

I suggest to support the npm parameter to avoid confusion.

from pnpm.

rulatir avatar rulatir commented on May 22, 2024

I very much need support for $NPM_CONFIG_USERCONFIG, and all mentions of that variable in other issues point here. Please reopen.

from pnpm.

rulatir avatar rulatir commented on May 22, 2024

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)

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.