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










0















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"









share|improve this question
























  • Is this a work or personal computer?

    – Cory Danielson
    Mar 7 at 19:16















0















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"









share|improve this question
























  • Is this a work or personal computer?

    – Cory Danielson
    Mar 7 at 19:16













0












0








0








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"









share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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

















  • 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












1 Answer
1






active

oldest

votes


















0














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






share|improve this answer























  • 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










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
);



);













draft saved

draft discarded


















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









0














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






share|improve this answer























  • 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















0














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






share|improve this answer























  • 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













0












0








0







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






share|improve this answer













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







share|improve this answer












share|improve this answer



share|improve this answer










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

















  • 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



















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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

Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme

Identity Server 4 is not redirecting to Angular app after login2019 Community Moderator ElectionIdentity Server 4 and dockerIdentityserver implicit flow unauthorized_clientIdentityServer Hybrid Flow - Access Token is null after user successful loginIdentity Server to MVC client : Page Redirect After loginLogin with Steam OpenId(oidc-client-js)Identity Server 4+.NET Core 2.0 + IdentityIdentityServer4 post-login redirect not working in Edge browserCall to IdentityServer4 generates System.NullReferenceException: Object reference not set to an instance of an objectIdentityServer4 without HTTPS not workingHow to get Authorization code from identity server without login form

2005 Ahvaz unrest Contents Background Causes Casualties Aftermath See also References Navigation menue"At Least 10 Are Killed by Bombs in Iran""Iran"Archived"Arab-Iranians in Iran to make April 15 'Day of Fury'"State of Mind, State of Order: Reactions to Ethnic Unrest in the Islamic Republic of Iran.10.1111/j.1754-9469.2008.00028.x"Iran hangs Arab separatists"Iran Overview from ArchivedConstitution of the Islamic Republic of Iran"Tehran puzzled by forged 'riots' letter""Iran and its minorities: Down in the second class""Iran: Handling Of Ahvaz Unrest Could End With Televised Confessions""Bombings Rock Iran Ahead of Election""Five die in Iran ethnic clashes""Iran: Need for restraint as anniversary of unrest in Khuzestan approaches"Archived"Iranian Sunni protesters killed in clashes with security forces"Archived