Why does my computer keep forgetting node and npm installation?2019 Community Moderator ElectionWhere does npm install packages?Find the version of an installed npm packageHow do I completely uninstall Node.js, and reinstall from beginning (Mac OS X)How to uninstall npm modules in node js?NPM modules won't install globally without sudoNode & NPM linux binary installationWhat is the --save option for npm install?Where should node be installed and how to set the PATH?nvm keeps “forgetting” node in new terminal sessionNODE: npm ERR! Could not get cache stat on npm install
Asserting that Atheism and Theism are both faith based positions
Are hand made posters acceptable in Academia?
Why is this tree refusing to shed its dead leaves?
Turning a hard to access nut?
How to find the largest number(s) in a list of elements, possibly non-unique?
Why didn’t Eve recognize the little cockroach as a living organism?
Why doesn't the fusion process of the sun speed up?
Which partition to make active?
Do people actually use the word "kaputt" in conversation?
What is the reasoning behind standardization (dividing by standard deviation)?
Error in master's thesis, I do not know what to do
Is xar preinstalled on macOS?
Could any one tell what PN is this Chip? Thanks~
Hot air balloons as primitive bombers
Air travel with refrigerated insulin
Symbolism of 18 Journeyers
Would mining huge amounts of resources on the Moon change its orbit?
I got the following comment from a reputed math journal. What does it mean?
Do I need an EFI partition for each 18.04 ubuntu I have on my HD?
How old is Nick Fury?
What happens when the centripetal force is equal and opposite to the centrifugal force?
Would this string work as string?
How can an organ that provides biological immortality be unable to regenerate?
Does fire aspect on a sword, destroy mob drops?
Why does my computer keep forgetting node and npm installation?
2019 Community Moderator ElectionWhere does npm install packages?Find the version of an installed npm packageHow do I completely uninstall Node.js, and reinstall from beginning (Mac OS X)How to uninstall npm modules in node js?NPM modules won't install globally without sudoNode & NPM linux binary installationWhat is the --save option for npm install?Where should node be installed and how to set the PATH?nvm keeps “forgetting” node in new terminal sessionNODE: npm ERR! Could not get cache stat on npm install
My computer keeps forgetting that I have node installed despite the fact that all of the files are still there. So far, I have tried installing through the node installer on the nodejs website, using brew, using nvm, and also several of the suggestions in this gist. No matter what I try, within a couple of hours or a couple of days, I am working away and then I am suddenly throwing node errors, and when I check node -v
or npm -v
, I get the error command not found: node
or command not found: npm
. The only thing that I can figure out to get node working again is to uninstall whatever I most recently tried and then to reinstall.
It seems like I might be having some sort of env or path issue, but I don't know where to begin to start troubleshooting anything like that.
EDIT
Based on the suggestion below, I added these to my .bash_profile
and it seems to have fixed my issue. Not sure why the install wasn't adding them here or in .bashrc
, but adding it manually fixed the issue:
export PATH="$HOME/.npm-packages/bin:$PATH"
export PATH="$HOME/.node_modules/bin:$PATH"
node.js installation install
add a comment |
My computer keeps forgetting that I have node installed despite the fact that all of the files are still there. So far, I have tried installing through the node installer on the nodejs website, using brew, using nvm, and also several of the suggestions in this gist. No matter what I try, within a couple of hours or a couple of days, I am working away and then I am suddenly throwing node errors, and when I check node -v
or npm -v
, I get the error command not found: node
or command not found: npm
. The only thing that I can figure out to get node working again is to uninstall whatever I most recently tried and then to reinstall.
It seems like I might be having some sort of env or path issue, but I don't know where to begin to start troubleshooting anything like that.
EDIT
Based on the suggestion below, I added these to my .bash_profile
and it seems to have fixed my issue. Not sure why the install wasn't adding them here or in .bashrc
, but adding it manually fixed the issue:
export PATH="$HOME/.npm-packages/bin:$PATH"
export PATH="$HOME/.node_modules/bin:$PATH"
node.js installation install
Is this a work or personal computer?
– Cory Danielson
Mar 7 at 19:16
add a comment |
My computer keeps forgetting that I have node installed despite the fact that all of the files are still there. So far, I have tried installing through the node installer on the nodejs website, using brew, using nvm, and also several of the suggestions in this gist. No matter what I try, within a couple of hours or a couple of days, I am working away and then I am suddenly throwing node errors, and when I check node -v
or npm -v
, I get the error command not found: node
or command not found: npm
. The only thing that I can figure out to get node working again is to uninstall whatever I most recently tried and then to reinstall.
It seems like I might be having some sort of env or path issue, but I don't know where to begin to start troubleshooting anything like that.
EDIT
Based on the suggestion below, I added these to my .bash_profile
and it seems to have fixed my issue. Not sure why the install wasn't adding them here or in .bashrc
, but adding it manually fixed the issue:
export PATH="$HOME/.npm-packages/bin:$PATH"
export PATH="$HOME/.node_modules/bin:$PATH"
node.js installation install
My computer keeps forgetting that I have node installed despite the fact that all of the files are still there. So far, I have tried installing through the node installer on the nodejs website, using brew, using nvm, and also several of the suggestions in this gist. No matter what I try, within a couple of hours or a couple of days, I am working away and then I am suddenly throwing node errors, and when I check node -v
or npm -v
, I get the error command not found: node
or command not found: npm
. The only thing that I can figure out to get node working again is to uninstall whatever I most recently tried and then to reinstall.
It seems like I might be having some sort of env or path issue, but I don't know where to begin to start troubleshooting anything like that.
EDIT
Based on the suggestion below, I added these to my .bash_profile
and it seems to have fixed my issue. Not sure why the install wasn't adding them here or in .bashrc
, but adding it manually fixed the issue:
export PATH="$HOME/.npm-packages/bin:$PATH"
export PATH="$HOME/.node_modules/bin:$PATH"
node.js installation install
node.js installation install
edited Mar 8 at 21:16
Nikki
asked Mar 7 at 19:13
NikkiNikki
32
32
Is this a work or personal computer?
– Cory Danielson
Mar 7 at 19:16
add a comment |
Is this a work or personal computer?
– Cory Danielson
Mar 7 at 19:16
Is this a work or personal computer?
– Cory Danielson
Mar 7 at 19:16
Is this a work or personal computer?
– Cory Danielson
Mar 7 at 19:16
add a comment |
1 Answer
1
active
oldest
votes
maybe you forgot to add node & npm binaries to your path that's why when you open a new instance of your terminal it says that it doesn't know node and npm
Simply add the line that register the binaries into your path within your .profile file that might be located in your home directory
cool, thank you, I will give that a try and report back
– Nikki
Mar 7 at 19:38
if it helped don't forget to mark this answer as solution
– MounirOnGithub
Mar 7 at 20:37
1
this was it! I gave it a day to freak out on me, but it hasn't! thank you so much for your suggestion!
– Nikki
Mar 8 at 21:14
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55051226%2fwhy-does-my-computer-keep-forgetting-node-and-npm-installation%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
maybe you forgot to add node & npm binaries to your path that's why when you open a new instance of your terminal it says that it doesn't know node and npm
Simply add the line that register the binaries into your path within your .profile file that might be located in your home directory
cool, thank you, I will give that a try and report back
– Nikki
Mar 7 at 19:38
if it helped don't forget to mark this answer as solution
– MounirOnGithub
Mar 7 at 20:37
1
this was it! I gave it a day to freak out on me, but it hasn't! thank you so much for your suggestion!
– Nikki
Mar 8 at 21:14
add a comment |
maybe you forgot to add node & npm binaries to your path that's why when you open a new instance of your terminal it says that it doesn't know node and npm
Simply add the line that register the binaries into your path within your .profile file that might be located in your home directory
cool, thank you, I will give that a try and report back
– Nikki
Mar 7 at 19:38
if it helped don't forget to mark this answer as solution
– MounirOnGithub
Mar 7 at 20:37
1
this was it! I gave it a day to freak out on me, but it hasn't! thank you so much for your suggestion!
– Nikki
Mar 8 at 21:14
add a comment |
maybe you forgot to add node & npm binaries to your path that's why when you open a new instance of your terminal it says that it doesn't know node and npm
Simply add the line that register the binaries into your path within your .profile file that might be located in your home directory
maybe you forgot to add node & npm binaries to your path that's why when you open a new instance of your terminal it says that it doesn't know node and npm
Simply add the line that register the binaries into your path within your .profile file that might be located in your home directory
answered Mar 7 at 19:16
MounirOnGithubMounirOnGithub
178212
178212
cool, thank you, I will give that a try and report back
– Nikki
Mar 7 at 19:38
if it helped don't forget to mark this answer as solution
– MounirOnGithub
Mar 7 at 20:37
1
this was it! I gave it a day to freak out on me, but it hasn't! thank you so much for your suggestion!
– Nikki
Mar 8 at 21:14
add a comment |
cool, thank you, I will give that a try and report back
– Nikki
Mar 7 at 19:38
if it helped don't forget to mark this answer as solution
– MounirOnGithub
Mar 7 at 20:37
1
this was it! I gave it a day to freak out on me, but it hasn't! thank you so much for your suggestion!
– Nikki
Mar 8 at 21:14
cool, thank you, I will give that a try and report back
– Nikki
Mar 7 at 19:38
cool, thank you, I will give that a try and report back
– Nikki
Mar 7 at 19:38
if it helped don't forget to mark this answer as solution
– MounirOnGithub
Mar 7 at 20:37
if it helped don't forget to mark this answer as solution
– MounirOnGithub
Mar 7 at 20:37
1
1
this was it! I gave it a day to freak out on me, but it hasn't! thank you so much for your suggestion!
– Nikki
Mar 8 at 21:14
this was it! I gave it a day to freak out on me, but it hasn't! thank you so much for your suggestion!
– Nikki
Mar 8 at 21:14
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55051226%2fwhy-does-my-computer-keep-forgetting-node-and-npm-installation%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
Is this a work or personal computer?
– Cory Danielson
Mar 7 at 19:16