“npm config set prefix” fails on user owned directory in macOS Mojave The Next CEO of...

Is French Guiana a (hard) EU border?

Is it convenient to ask the journal's editor for two additional days to complete a review?

Why, when going from special to general relativity, do we just replace partial derivatives with covariant derivatives?

WOW air has ceased operation, can I get my tickets refunded?

How many extra stops do monopods offer for tele photographs?

Newlines in BSD sed vs gsed

Axiom Schema vs Axiom

Are police here, aren't itthey?

Proper way to express "He disappeared them"

Is a distribution that is normal, but highly skewed considered Gaussian?

Grabbing quick drinks

Can MTA send mail via a relay without being told so?

Flying from Cape Town to England and return to another province

What does "Its cash flow is deeply negative" mean?

Chain wire methods together in Lightning Web Components

Would a completely good Muggle be able to use a wand?

Help understanding this unsettling image of Titan, Epimetheus, and Saturn's rings?

Can we say or write : "No, it'sn't"?

How to avoid supervisors with prejudiced views?

Why is information "lost" when it got into a black hole?

How to invert MapIndexed on a ragged structure? How to construct a tree from rules?

Why doesn't UK go for the same deal Japan has with EU to resolve Brexit?

Writing differences on a blackboard

Is it okay to majorly distort historical facts while writing a fiction story?



“npm config set prefix” fails on user owned directory in macOS Mojave



The Next CEO of Stack OverflowCant install NPM as user not rootIssue with RVM conflicting with Brew?Fetch from NPM registry always failsnodejs and npm will not work on existing project directorySSH config ignoring User parameter on OSXnpm install fails with custom registrynpm install google-cloud failssudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set [OSX]Getting errors while >> sudo npm install -g onoff in raspbian OSnpm install: “/usr/local/bin/g++-4.2: No such file or directory” with Xcode installed












0















I am installing node on a clean macOS Mojave box using Homebrew. 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'


And that fails with this message. Does anyone know what is going on?



Error: EACCES: permission denied, mkdir '/tools'
TypeError: Cannot read property 'loaded' of undefined
at exit (/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:98:27)
at errorHandler (/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:216:3)
at /usr/local/lib/node_modules/npm/bin/npm-cli.js:78:20
at cb (/usr/local/lib/node_modules/npm/lib/npm.js:225:22)
at /usr/local/lib/node_modules/npm/lib/npm.js:263:24
at /usr/local/lib/node_modules/npm/lib/config/core.js:83:7
at Array.forEach (<anonymous>)
at /usr/local/lib/node_modules/npm/lib/config/core.js:82:13
at f (/usr/local/lib/node_modules/npm/node_modules/once/once.js:25:25)
at afterExtras (/usr/local/lib/node_modules/npm/lib/config/core.js:173:20)
/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:98
var doExit = npm.config.loaded ? npm.config.get('_exit') : true
^

TypeError: Cannot read property 'loaded' of undefined
at exit (/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:98:27)
at process.errorHandler (/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:216:3)
at process.emit (events.js:197:13)
at process._fatalException (internal/process/execution.js:123:25)








share

























  • What is the output of npm config get prefix? Also, look at this.

    – JakeGould
    1 min ago


















0















I am installing node on a clean macOS Mojave box using Homebrew. 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'


And that fails with this message. Does anyone know what is going on?



Error: EACCES: permission denied, mkdir '/tools'
TypeError: Cannot read property 'loaded' of undefined
at exit (/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:98:27)
at errorHandler (/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:216:3)
at /usr/local/lib/node_modules/npm/bin/npm-cli.js:78:20
at cb (/usr/local/lib/node_modules/npm/lib/npm.js:225:22)
at /usr/local/lib/node_modules/npm/lib/npm.js:263:24
at /usr/local/lib/node_modules/npm/lib/config/core.js:83:7
at Array.forEach (<anonymous>)
at /usr/local/lib/node_modules/npm/lib/config/core.js:82:13
at f (/usr/local/lib/node_modules/npm/node_modules/once/once.js:25:25)
at afterExtras (/usr/local/lib/node_modules/npm/lib/config/core.js:173:20)
/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:98
var doExit = npm.config.loaded ? npm.config.get('_exit') : true
^

TypeError: Cannot read property 'loaded' of undefined
at exit (/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:98:27)
at process.errorHandler (/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:216:3)
at process.emit (events.js:197:13)
at process._fatalException (internal/process/execution.js:123:25)








share

























  • What is the output of npm config get prefix? Also, look at this.

    – JakeGould
    1 min ago
















0












0








0








I am installing node on a clean macOS Mojave box using Homebrew. 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'


And that fails with this message. Does anyone know what is going on?



Error: EACCES: permission denied, mkdir '/tools'
TypeError: Cannot read property 'loaded' of undefined
at exit (/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:98:27)
at errorHandler (/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:216:3)
at /usr/local/lib/node_modules/npm/bin/npm-cli.js:78:20
at cb (/usr/local/lib/node_modules/npm/lib/npm.js:225:22)
at /usr/local/lib/node_modules/npm/lib/npm.js:263:24
at /usr/local/lib/node_modules/npm/lib/config/core.js:83:7
at Array.forEach (<anonymous>)
at /usr/local/lib/node_modules/npm/lib/config/core.js:82:13
at f (/usr/local/lib/node_modules/npm/node_modules/once/once.js:25:25)
at afterExtras (/usr/local/lib/node_modules/npm/lib/config/core.js:173:20)
/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:98
var doExit = npm.config.loaded ? npm.config.get('_exit') : true
^

TypeError: Cannot read property 'loaded' of undefined
at exit (/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:98:27)
at process.errorHandler (/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:216:3)
at process.emit (events.js:197:13)
at process._fatalException (internal/process/execution.js:123:25)








share
















I am installing node on a clean macOS Mojave box using Homebrew. 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'


And that fails with this message. Does anyone know what is going on?



Error: EACCES: permission denied, mkdir '/tools'
TypeError: Cannot read property 'loaded' of undefined
at exit (/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:98:27)
at errorHandler (/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:216:3)
at /usr/local/lib/node_modules/npm/bin/npm-cli.js:78:20
at cb (/usr/local/lib/node_modules/npm/lib/npm.js:225:22)
at /usr/local/lib/node_modules/npm/lib/npm.js:263:24
at /usr/local/lib/node_modules/npm/lib/config/core.js:83:7
at Array.forEach (<anonymous>)
at /usr/local/lib/node_modules/npm/lib/config/core.js:82:13
at f (/usr/local/lib/node_modules/npm/node_modules/once/once.js:25:25)
at afterExtras (/usr/local/lib/node_modules/npm/lib/config/core.js:173:20)
/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:98
var doExit = npm.config.loaded ? npm.config.get('_exit') : true
^

TypeError: Cannot read property 'loaded' of undefined
at exit (/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:98:27)
at process.errorHandler (/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:216:3)
at process.emit (events.js:197:13)
at process._fatalException (internal/process/execution.js:123:25)






macos node.js npm





share














share












share



share








edited 3 mins ago









JakeGould

32.2k1098141




32.2k1098141










asked 9 mins ago









ClonedOneClonedOne

134




134













  • What is the output of npm config get prefix? Also, look at this.

    – JakeGould
    1 min ago





















  • What is the output of npm config get prefix? Also, look at this.

    – JakeGould
    1 min ago



















What is the output of npm config get prefix? Also, look at this.

– JakeGould
1 min ago







What is the output of npm config get prefix? Also, look at this.

– JakeGould
1 min ago












0






active

oldest

votes












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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%2fsuperuser.com%2fquestions%2f1419535%2fnpm-config-set-prefix-fails-on-user-owned-directory-in-macos-mojave%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • 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%2fsuperuser.com%2fquestions%2f1419535%2fnpm-config-set-prefix-fails-on-user-owned-directory-in-macos-mojave%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

VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

Tribunal Administrativo e Fiscal de Mirandela Referências Menu de...

looking for continuous Screen Capture for retroactivly reproducing errors, timeback machineRolling desktop...