Why package.json doesn't use the predefined values from .npmrc file? Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!How to get the value from the GET parameters?Is there a way to get version from package.json in nodejs code?Remove duplicate values from JS arrayIs there a way to automatically build the package.json file for Node.js projectsWhat's the difference between dependencies, devDependencies and peerDependencies in npm package.json file?Using npm as a task runner/build tool - having problems with some cli modulesHeroku node js app not getting deployedError while trying to run 'npm start'How to set env var for .npmrc useDebug Mocha tests being executed via NPM in terminal of VSCode

Is accepting an invalid credit card number a security issue?

Is a 5 watt UHF/VHF handheld considered QRP?

How to get even lighting when using flash for group photos near wall?

Can you stand up from being prone using Skirmisher outside of your turn?

How would I use different systems of magic when they are capable of the same effects?

Are these square matrices always diagonalisable?

Justification for leaving new position after a short time

As an international instructor, should I openly talk about my accent?

Reattaching fallen shelf to wall?

Why did C use the -> operator instead of reusing the . operator?

std::is_constructible on incomplete types

Expansion//Explosion and Siren Stormtamer

Additive group of local rings

PIC mathematical operations weird problem

Will I lose my paid in full property

Where did Arya get these scars?

Is Electric Central Heating worth it if using Solar Panels?

How to translate "red flag" into Spanish?

Arriving in Atlanta after US Preclearance in Dublin. Will I go through TSA security in Atlanta to transfer to a connecting flight?

How to keep bees out of canned beverages?

Israeli soda type drink

Prove the alternating sum of a decreasing sequence converging to 0 is Cauchy.

Trumpet valves, lengths, and pitch

Rolling Stones Sway guitar solo chord function



Why package.json doesn't use the predefined values from .npmrc file?



Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar Manara
Data science time! April 2019 and salary with experience
The Ask Question Wizard is Live!How to get the value from the GET parameters?Is there a way to get version from package.json in nodejs code?Remove duplicate values from JS arrayIs there a way to automatically build the package.json file for Node.js projectsWhat's the difference between dependencies, devDependencies and peerDependencies in npm package.json file?Using npm as a task runner/build tool - having problems with some cli modulesHeroku node js app not getting deployedError while trying to run 'npm start'How to set env var for .npmrc useDebug Mocha tests being executed via NPM in terminal of VSCode



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








1















Windows 10 x64



According this info I created the C:Usersbushm.npmrc file with content:



author = "Andrey Bushman"


but when I launch the npm init -y command inside of new directory I see in package.json the property author is empty:




"name": "foo",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts":
"test": "echo "Error: no test specified" && exit 1"
,
"keywords": [],
"author": "",
"license": "ISC"



Also, I did it through the command: npm config set author "Andrey Bushman" but I get the same result...



Why does it happen?










share|improve this question






























    1















    Windows 10 x64



    According this info I created the C:Usersbushm.npmrc file with content:



    author = "Andrey Bushman"


    but when I launch the npm init -y command inside of new directory I see in package.json the property author is empty:




    "name": "foo",
    "version": "1.0.0",
    "description": "",
    "main": "index.js",
    "scripts":
    "test": "echo "Error: no test specified" && exit 1"
    ,
    "keywords": [],
    "author": "",
    "license": "ISC"



    Also, I did it through the command: npm config set author "Andrey Bushman" but I get the same result...



    Why does it happen?










    share|improve this question


























      1












      1








      1








      Windows 10 x64



      According this info I created the C:Usersbushm.npmrc file with content:



      author = "Andrey Bushman"


      but when I launch the npm init -y command inside of new directory I see in package.json the property author is empty:




      "name": "foo",
      "version": "1.0.0",
      "description": "",
      "main": "index.js",
      "scripts":
      "test": "echo "Error: no test specified" && exit 1"
      ,
      "keywords": [],
      "author": "",
      "license": "ISC"



      Also, I did it through the command: npm config set author "Andrey Bushman" but I get the same result...



      Why does it happen?










      share|improve this question
















      Windows 10 x64



      According this info I created the C:Usersbushm.npmrc file with content:



      author = "Andrey Bushman"


      but when I launch the npm init -y command inside of new directory I see in package.json the property author is empty:




      "name": "foo",
      "version": "1.0.0",
      "description": "",
      "main": "index.js",
      "scripts":
      "test": "echo "Error: no test specified" && exit 1"
      ,
      "keywords": [],
      "author": "",
      "license": "ISC"



      Also, I did it through the command: npm config set author "Andrey Bushman" but I get the same result...



      Why does it happen?







      javascript typescript npm package.json






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 9 at 6:43







      Andrey Bushman

















      asked Mar 9 at 6:27









      Andrey BushmanAndrey Bushman

      4,395642106




      4,395642106






















          1 Answer
          1






          active

          oldest

          votes


















          0














          I don't think author is a supported option for the npmrc file.

          Please take a look at this documentation for available options.




          DESCRIPTION



          npm gets its config settings from the command line,
          environment variables, and npmrc files.



          The npm config command can be used to update and edit the contents of
          the user and global npmrc files.



          For a list of available configuration options, see npm-config.







          share|improve this answer

























          • My local .npmrc is for me only. I try to use it by process of creating of new package.json files with initialized some properties, because I would likw not to write the same values each time when I create package.json file.

            – Andrey Bushman
            Mar 9 at 6:52











          • The npmrc is used instead of values in the package.json and limited to a certain set of option. I've only used the npmrc for configuring a scoped package this npmrc sits in the project next to the package and the other usage for me is storing credentials (hash) which goes in the user dir npmrc. If you have to repeatedly create new projects with the same settings I would either copy/paste one or create a simple (node) cli tool wrapping npm init and than setting the values that can't be set using the npmrc file.

            – Michael
            Mar 9 at 7:06












          • @AndreyBushman I've updated my answer quoting the docs pointing to the page I linked before, those options are available via npmrc.

            – Michael
            Mar 9 at 7:14






          • 1





            Thank you. I am to use init-author-name instead of author.

            – Andrey Bushman
            Mar 9 at 7:40












          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55074664%2fwhy-package-json-doesnt-use-the-predefined-values-from-npmrc-file%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          I don't think author is a supported option for the npmrc file.

          Please take a look at this documentation for available options.




          DESCRIPTION



          npm gets its config settings from the command line,
          environment variables, and npmrc files.



          The npm config command can be used to update and edit the contents of
          the user and global npmrc files.



          For a list of available configuration options, see npm-config.







          share|improve this answer

























          • My local .npmrc is for me only. I try to use it by process of creating of new package.json files with initialized some properties, because I would likw not to write the same values each time when I create package.json file.

            – Andrey Bushman
            Mar 9 at 6:52











          • The npmrc is used instead of values in the package.json and limited to a certain set of option. I've only used the npmrc for configuring a scoped package this npmrc sits in the project next to the package and the other usage for me is storing credentials (hash) which goes in the user dir npmrc. If you have to repeatedly create new projects with the same settings I would either copy/paste one or create a simple (node) cli tool wrapping npm init and than setting the values that can't be set using the npmrc file.

            – Michael
            Mar 9 at 7:06












          • @AndreyBushman I've updated my answer quoting the docs pointing to the page I linked before, those options are available via npmrc.

            – Michael
            Mar 9 at 7:14






          • 1





            Thank you. I am to use init-author-name instead of author.

            – Andrey Bushman
            Mar 9 at 7:40
















          0














          I don't think author is a supported option for the npmrc file.

          Please take a look at this documentation for available options.




          DESCRIPTION



          npm gets its config settings from the command line,
          environment variables, and npmrc files.



          The npm config command can be used to update and edit the contents of
          the user and global npmrc files.



          For a list of available configuration options, see npm-config.







          share|improve this answer

























          • My local .npmrc is for me only. I try to use it by process of creating of new package.json files with initialized some properties, because I would likw not to write the same values each time when I create package.json file.

            – Andrey Bushman
            Mar 9 at 6:52











          • The npmrc is used instead of values in the package.json and limited to a certain set of option. I've only used the npmrc for configuring a scoped package this npmrc sits in the project next to the package and the other usage for me is storing credentials (hash) which goes in the user dir npmrc. If you have to repeatedly create new projects with the same settings I would either copy/paste one or create a simple (node) cli tool wrapping npm init and than setting the values that can't be set using the npmrc file.

            – Michael
            Mar 9 at 7:06












          • @AndreyBushman I've updated my answer quoting the docs pointing to the page I linked before, those options are available via npmrc.

            – Michael
            Mar 9 at 7:14






          • 1





            Thank you. I am to use init-author-name instead of author.

            – Andrey Bushman
            Mar 9 at 7:40














          0












          0








          0







          I don't think author is a supported option for the npmrc file.

          Please take a look at this documentation for available options.




          DESCRIPTION



          npm gets its config settings from the command line,
          environment variables, and npmrc files.



          The npm config command can be used to update and edit the contents of
          the user and global npmrc files.



          For a list of available configuration options, see npm-config.







          share|improve this answer















          I don't think author is a supported option for the npmrc file.

          Please take a look at this documentation for available options.




          DESCRIPTION



          npm gets its config settings from the command line,
          environment variables, and npmrc files.



          The npm config command can be used to update and edit the contents of
          the user and global npmrc files.



          For a list of available configuration options, see npm-config.








          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Mar 9 at 7:15

























          answered Mar 9 at 6:45









          MichaelMichael

          844412




          844412












          • My local .npmrc is for me only. I try to use it by process of creating of new package.json files with initialized some properties, because I would likw not to write the same values each time when I create package.json file.

            – Andrey Bushman
            Mar 9 at 6:52











          • The npmrc is used instead of values in the package.json and limited to a certain set of option. I've only used the npmrc for configuring a scoped package this npmrc sits in the project next to the package and the other usage for me is storing credentials (hash) which goes in the user dir npmrc. If you have to repeatedly create new projects with the same settings I would either copy/paste one or create a simple (node) cli tool wrapping npm init and than setting the values that can't be set using the npmrc file.

            – Michael
            Mar 9 at 7:06












          • @AndreyBushman I've updated my answer quoting the docs pointing to the page I linked before, those options are available via npmrc.

            – Michael
            Mar 9 at 7:14






          • 1





            Thank you. I am to use init-author-name instead of author.

            – Andrey Bushman
            Mar 9 at 7:40


















          • My local .npmrc is for me only. I try to use it by process of creating of new package.json files with initialized some properties, because I would likw not to write the same values each time when I create package.json file.

            – Andrey Bushman
            Mar 9 at 6:52











          • The npmrc is used instead of values in the package.json and limited to a certain set of option. I've only used the npmrc for configuring a scoped package this npmrc sits in the project next to the package and the other usage for me is storing credentials (hash) which goes in the user dir npmrc. If you have to repeatedly create new projects with the same settings I would either copy/paste one or create a simple (node) cli tool wrapping npm init and than setting the values that can't be set using the npmrc file.

            – Michael
            Mar 9 at 7:06












          • @AndreyBushman I've updated my answer quoting the docs pointing to the page I linked before, those options are available via npmrc.

            – Michael
            Mar 9 at 7:14






          • 1





            Thank you. I am to use init-author-name instead of author.

            – Andrey Bushman
            Mar 9 at 7:40

















          My local .npmrc is for me only. I try to use it by process of creating of new package.json files with initialized some properties, because I would likw not to write the same values each time when I create package.json file.

          – Andrey Bushman
          Mar 9 at 6:52





          My local .npmrc is for me only. I try to use it by process of creating of new package.json files with initialized some properties, because I would likw not to write the same values each time when I create package.json file.

          – Andrey Bushman
          Mar 9 at 6:52













          The npmrc is used instead of values in the package.json and limited to a certain set of option. I've only used the npmrc for configuring a scoped package this npmrc sits in the project next to the package and the other usage for me is storing credentials (hash) which goes in the user dir npmrc. If you have to repeatedly create new projects with the same settings I would either copy/paste one or create a simple (node) cli tool wrapping npm init and than setting the values that can't be set using the npmrc file.

          – Michael
          Mar 9 at 7:06






          The npmrc is used instead of values in the package.json and limited to a certain set of option. I've only used the npmrc for configuring a scoped package this npmrc sits in the project next to the package and the other usage for me is storing credentials (hash) which goes in the user dir npmrc. If you have to repeatedly create new projects with the same settings I would either copy/paste one or create a simple (node) cli tool wrapping npm init and than setting the values that can't be set using the npmrc file.

          – Michael
          Mar 9 at 7:06














          @AndreyBushman I've updated my answer quoting the docs pointing to the page I linked before, those options are available via npmrc.

          – Michael
          Mar 9 at 7:14





          @AndreyBushman I've updated my answer quoting the docs pointing to the page I linked before, those options are available via npmrc.

          – Michael
          Mar 9 at 7:14




          1




          1





          Thank you. I am to use init-author-name instead of author.

          – Andrey Bushman
          Mar 9 at 7:40






          Thank you. I am to use init-author-name instead of author.

          – Andrey Bushman
          Mar 9 at 7:40




















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55074664%2fwhy-package-json-doesnt-use-the-predefined-values-from-npmrc-file%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Save data to MySQL database using ExtJS and PHP [closed]2019 Community Moderator ElectionHow can I prevent SQL injection in PHP?Which MySQL data type to use for storing boolean valuesPHP: Delete an element from an arrayHow do I connect to a MySQL Database in Python?Should I use the datetime or timestamp data type in MySQL?How to get a list of MySQL user accountsHow Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?

          Compiling GNU Global with universal-ctags support Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctagsVim and Ctags tips and trickscscope or ctags why choose one over the other?scons and ctagsctags cannot open option file “.ctags”Adding tag scopes in universal-ctagsShould I use Universal-ctags?Universal ctags on WindowsHow do I install GNU Global with universal ctags support using Homebrew?Universal ctags with emacsHow to highlight ctags generated by Universal Ctags in Vim?

          Add ONERROR event to image from jsp tldHow to add an image to a JPanel?Saving image from PHP URLHTML img scalingCheck if an image is loaded (no errors) with jQueryHow to force an <img> to take up width, even if the image is not loadedHow do I populate hidden form field with a value set in Spring ControllerStyling Raw elements Generated from JSP tagds with Jquery MobileLimit resizing of images with explicitly set width and height attributeserror TLD use in a jsp fileJsp tld files cannot be resolved