Where is Node.js installed? Why can't I see /usr/local/bin/node?





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







0















I installed node and made sure that /usr/local/bin is in my $PATH.



I checked for node install version and location



[~]$node -v

v10.15.1


[~]$which node

/usr/local/bin/node


Why, when I cd into /usr/local/bin/, is there nothing there?



I'm on MacOS Mojave Version 10.14.2. I installed node version 10.15.1 using the installer downloaded from nodejs.org, and using the default options in the installer.



Here are the notes i took from the installer:



Welcome to the Node JS Installer -> This package will install: 

• Node.js v10.15.1 to /usr/local/bin/node
• npm v6.4.1 to /usr/local/bin/npm


Select the disk where you want to install nodejs -> MacintoshHD



(clicked install) ...



This package has installed: 

• Node.js v10.15.1 to /usr/local/bin/node
• npm v6.4.1 to /usr/local/bin/npm

Make sure that /usr/local/bin is in your $PATH.


Checked /usr/local/bin is in $PATH.



[~]$echo $PATH

:~/usr:bin:~/bin:usr/local/bin:usr/bin:/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:




But the when I check where node is installed:



[~]$which node

/usr/local/bin/node

[~]$cd usr/local/bin/node

-bash: cd: usr/local/bin/node: No such file or directory









share|improve this question

























  • You need to provide more details. Such as what OS you are on, what version of Node you installed, what instructions you followed to install node and such.

    – JakeGould
    Feb 1 at 17:39


















0















I installed node and made sure that /usr/local/bin is in my $PATH.



I checked for node install version and location



[~]$node -v

v10.15.1


[~]$which node

/usr/local/bin/node


Why, when I cd into /usr/local/bin/, is there nothing there?



I'm on MacOS Mojave Version 10.14.2. I installed node version 10.15.1 using the installer downloaded from nodejs.org, and using the default options in the installer.



Here are the notes i took from the installer:



Welcome to the Node JS Installer -> This package will install: 

• Node.js v10.15.1 to /usr/local/bin/node
• npm v6.4.1 to /usr/local/bin/npm


Select the disk where you want to install nodejs -> MacintoshHD



(clicked install) ...



This package has installed: 

• Node.js v10.15.1 to /usr/local/bin/node
• npm v6.4.1 to /usr/local/bin/npm

Make sure that /usr/local/bin is in your $PATH.


Checked /usr/local/bin is in $PATH.



[~]$echo $PATH

:~/usr:bin:~/bin:usr/local/bin:usr/bin:/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:




But the when I check where node is installed:



[~]$which node

/usr/local/bin/node

[~]$cd usr/local/bin/node

-bash: cd: usr/local/bin/node: No such file or directory









share|improve this question

























  • You need to provide more details. Such as what OS you are on, what version of Node you installed, what instructions you followed to install node and such.

    – JakeGould
    Feb 1 at 17:39














0












0








0








I installed node and made sure that /usr/local/bin is in my $PATH.



I checked for node install version and location



[~]$node -v

v10.15.1


[~]$which node

/usr/local/bin/node


Why, when I cd into /usr/local/bin/, is there nothing there?



I'm on MacOS Mojave Version 10.14.2. I installed node version 10.15.1 using the installer downloaded from nodejs.org, and using the default options in the installer.



Here are the notes i took from the installer:



Welcome to the Node JS Installer -> This package will install: 

• Node.js v10.15.1 to /usr/local/bin/node
• npm v6.4.1 to /usr/local/bin/npm


Select the disk where you want to install nodejs -> MacintoshHD



(clicked install) ...



This package has installed: 

• Node.js v10.15.1 to /usr/local/bin/node
• npm v6.4.1 to /usr/local/bin/npm

Make sure that /usr/local/bin is in your $PATH.


Checked /usr/local/bin is in $PATH.



[~]$echo $PATH

:~/usr:bin:~/bin:usr/local/bin:usr/bin:/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:




But the when I check where node is installed:



[~]$which node

/usr/local/bin/node

[~]$cd usr/local/bin/node

-bash: cd: usr/local/bin/node: No such file or directory









share|improve this question
















I installed node and made sure that /usr/local/bin is in my $PATH.



I checked for node install version and location



[~]$node -v

v10.15.1


[~]$which node

/usr/local/bin/node


Why, when I cd into /usr/local/bin/, is there nothing there?



I'm on MacOS Mojave Version 10.14.2. I installed node version 10.15.1 using the installer downloaded from nodejs.org, and using the default options in the installer.



Here are the notes i took from the installer:



Welcome to the Node JS Installer -> This package will install: 

• Node.js v10.15.1 to /usr/local/bin/node
• npm v6.4.1 to /usr/local/bin/npm


Select the disk where you want to install nodejs -> MacintoshHD



(clicked install) ...



This package has installed: 

• Node.js v10.15.1 to /usr/local/bin/node
• npm v6.4.1 to /usr/local/bin/npm

Make sure that /usr/local/bin is in your $PATH.


Checked /usr/local/bin is in $PATH.



[~]$echo $PATH

:~/usr:bin:~/bin:usr/local/bin:usr/bin:/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:




But the when I check where node is installed:



[~]$which node

/usr/local/bin/node

[~]$cd usr/local/bin/node

-bash: cd: usr/local/bin/node: No such file or directory






path node.js






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 1 at 19:39









JakeGould

32.7k10100142




32.7k10100142










asked Feb 1 at 17:32









alan_kalan_k

13




13













  • You need to provide more details. Such as what OS you are on, what version of Node you installed, what instructions you followed to install node and such.

    – JakeGould
    Feb 1 at 17:39



















  • You need to provide more details. Such as what OS you are on, what version of Node you installed, what instructions you followed to install node and such.

    – JakeGould
    Feb 1 at 17:39

















You need to provide more details. Such as what OS you are on, what version of Node you installed, what instructions you followed to install node and such.

– JakeGould
Feb 1 at 17:39





You need to provide more details. Such as what OS you are on, what version of Node you installed, what instructions you followed to install node and such.

– JakeGould
Feb 1 at 17:39










1 Answer
1






active

oldest

votes


















0














I've answered this! I was looking in the wrong directory. Which leads me to another question. Here is the explanation.



usr/local/bin/


is not the same as



/usr/local/bin/


The wrong one:



[~]$cd usr/local/bin
[bin]$ls -a
. .. .DS_Store
[bin]$cd /usr/local/bin/node
-bash: cd: /usr/local/bin/node: Not a directory


The right one:



[bin]$cd /usr/local/bin


Exists! Then



[bin]$ls -a


And node is indeed there.



I would appreciate any tips for understanding more about this :)



From the mac terminal, what is the difference between usr and /usr ?






share|improve this answer


























  • Stack policy is that answers should be answers and not questions, but since this would probably get shot down if separate, see wikipedia on Absolute and relative paths

    – dave_thompson_085
    Feb 2 at 11:14













  • Thanks @dave_thompson_085

    – alan_k
    Feb 3 at 14:59












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%2f1401079%2fwhere-is-node-js-installed-why-cant-i-see-usr-local-bin-node%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've answered this! I was looking in the wrong directory. Which leads me to another question. Here is the explanation.



usr/local/bin/


is not the same as



/usr/local/bin/


The wrong one:



[~]$cd usr/local/bin
[bin]$ls -a
. .. .DS_Store
[bin]$cd /usr/local/bin/node
-bash: cd: /usr/local/bin/node: Not a directory


The right one:



[bin]$cd /usr/local/bin


Exists! Then



[bin]$ls -a


And node is indeed there.



I would appreciate any tips for understanding more about this :)



From the mac terminal, what is the difference between usr and /usr ?






share|improve this answer


























  • Stack policy is that answers should be answers and not questions, but since this would probably get shot down if separate, see wikipedia on Absolute and relative paths

    – dave_thompson_085
    Feb 2 at 11:14













  • Thanks @dave_thompson_085

    – alan_k
    Feb 3 at 14:59
















0














I've answered this! I was looking in the wrong directory. Which leads me to another question. Here is the explanation.



usr/local/bin/


is not the same as



/usr/local/bin/


The wrong one:



[~]$cd usr/local/bin
[bin]$ls -a
. .. .DS_Store
[bin]$cd /usr/local/bin/node
-bash: cd: /usr/local/bin/node: Not a directory


The right one:



[bin]$cd /usr/local/bin


Exists! Then



[bin]$ls -a


And node is indeed there.



I would appreciate any tips for understanding more about this :)



From the mac terminal, what is the difference between usr and /usr ?






share|improve this answer


























  • Stack policy is that answers should be answers and not questions, but since this would probably get shot down if separate, see wikipedia on Absolute and relative paths

    – dave_thompson_085
    Feb 2 at 11:14













  • Thanks @dave_thompson_085

    – alan_k
    Feb 3 at 14:59














0












0








0







I've answered this! I was looking in the wrong directory. Which leads me to another question. Here is the explanation.



usr/local/bin/


is not the same as



/usr/local/bin/


The wrong one:



[~]$cd usr/local/bin
[bin]$ls -a
. .. .DS_Store
[bin]$cd /usr/local/bin/node
-bash: cd: /usr/local/bin/node: Not a directory


The right one:



[bin]$cd /usr/local/bin


Exists! Then



[bin]$ls -a


And node is indeed there.



I would appreciate any tips for understanding more about this :)



From the mac terminal, what is the difference between usr and /usr ?






share|improve this answer















I've answered this! I was looking in the wrong directory. Which leads me to another question. Here is the explanation.



usr/local/bin/


is not the same as



/usr/local/bin/


The wrong one:



[~]$cd usr/local/bin
[bin]$ls -a
. .. .DS_Store
[bin]$cd /usr/local/bin/node
-bash: cd: /usr/local/bin/node: Not a directory


The right one:



[bin]$cd /usr/local/bin


Exists! Then



[bin]$ls -a


And node is indeed there.



I would appreciate any tips for understanding more about this :)



From the mac terminal, what is the difference between usr and /usr ?







share|improve this answer














share|improve this answer



share|improve this answer








edited Feb 2 at 10:51









Toto

4,359101328




4,359101328










answered Feb 2 at 9:09









alan_kalan_k

13




13













  • Stack policy is that answers should be answers and not questions, but since this would probably get shot down if separate, see wikipedia on Absolute and relative paths

    – dave_thompson_085
    Feb 2 at 11:14













  • Thanks @dave_thompson_085

    – alan_k
    Feb 3 at 14:59



















  • Stack policy is that answers should be answers and not questions, but since this would probably get shot down if separate, see wikipedia on Absolute and relative paths

    – dave_thompson_085
    Feb 2 at 11:14













  • Thanks @dave_thompson_085

    – alan_k
    Feb 3 at 14:59

















Stack policy is that answers should be answers and not questions, but since this would probably get shot down if separate, see wikipedia on Absolute and relative paths

– dave_thompson_085
Feb 2 at 11:14







Stack policy is that answers should be answers and not questions, but since this would probably get shot down if separate, see wikipedia on Absolute and relative paths

– dave_thompson_085
Feb 2 at 11:14















Thanks @dave_thompson_085

– alan_k
Feb 3 at 14:59





Thanks @dave_thompson_085

– alan_k
Feb 3 at 14:59


















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%2f1401079%2fwhere-is-node-js-installed-why-cant-i-see-usr-local-bin-node%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

Plaza Victoria

Puebla de Zaragoza

Musa