2/15/2023 0 Comments Npm config set registryDefault: "user" unless -global is passed, which will also set this value to "global" Type: "global", "user", or "project" When passed to npm config this refers to which config file to use. npmrc file with npm install command to run for npm edit and npm config edit. If you run the command in any other folder (without an. npmrc file you should see its overriding configuration settings in the folder, and the system global settings after that. If you run this in a project folder with an. Run the npm config list command to see what variables are set. How to check your configuration is working. Sudo sh -c 'echo "" > $(npm config get globalconfig)' So make sure there might be global config that usually is overwritten in per-project that becomes active after you have deleted the per-project config file. NPM looks up config in this order, setting in the next overwrites the previous one. How to restore/reset npm configuration to default values?Ĭonfig is written to. Use the following command in your terminal to revert back to the default registry npm config set registry ![]() How to change or reset the global npm registry. How to restore/reset npm configuration to default values? – Dev. ![]() How to restore/reset npm configuration to default values?.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |