The npm config command can be used to update and edit the contents of the user and global npmrc files.
and Contributors Licensed under the npm License. See npm help config(7) for a more thorough explanation of the mechanisms involved, and a full list of config options available. Show extended information in ls, search, and help-search. You can configure npm with your CodeArtifact repository without the aws codeartifact login command by manually updating the npm configuration. Configuring npm without using the login command. When passed to npm config this refers to which config file to use. To check that these properties were added correctly, type npm config edit to bring up the configuration file. For more information about the authorization token created with the login command, see Tokens created with the login command.
Use the -global flag to edit the global config. Var doExit = ? ('_exit') : trueĪt process.errorHandler (/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:216:3)Īt process._fatalException (internal/process/execution.Opens the config file in an editor. You can show the registry of a specific package with the npm view command. usr/local/lib/node_modules/npm/lib/utils/error-handler.js:98 npm gets its config settings from the command line, environment variables, npmrc files, and in some cases, the package. TypeError: Cannot read property 'loaded' of undefinedĪt exit (/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:98:27)Īt errorHandler (/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:216:3)Īt /usr/local/lib/node_modules/npm/bin/npm-cli.js:78:20Īt cb (/usr/local/lib/node_modules/npm/lib/npm.js:225:22)Īt /usr/local/lib/node_modules/npm/lib/npm.js:263:24Īt /usr/local/lib/node_modules/npm/lib/config/core.js:83:7Īt /usr/local/lib/node_modules/npm/lib/config/core.js:82:13Īt f (/usr/local/lib/node_modules/npm/node_modules/once/once.js:25:25)Īt afterExtras (/usr/local/lib/node_modules/npm/lib/config/core.js:173:20) Does anyone know what is going on? Error: EACCES: permission denied, mkdir '/tools'
I am trying to set npm install directory in a user owned dir the dir tools already exists and is owned by the user: npm config set prefix '/Users/giorgio/tools/npm_global'Īnd that fails with this message. I am installing node on a clean macOS Mojave box using Homebrew.