Ask Your Question

Problem with paths after system update.

asked 2018-01-07 04:37:54 -0500

precz gravatar image


I have some problem with paths after system update. First problem was Cordova project not building anymore: JAVA_HOME not set. Now I could not use NPM: it's not found. When i reinstall it it's available for first command but unavailable after that.

What could be root of this problems?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2018-01-08 05:05:49 -0500

updated 2018-01-08 05:08:28 -0500

Hi, Maybe some change in ~/.bash_profile? You can add something like

export JAVA_HOME

to your .bash_profile (assuming you use a standard configuration and so on..)

About npm, looks similar, check for $PATH (also on .bash_profile)


edit flag offensive delete link more

answered 2018-01-10 09:36:35 -0500

technog1 gravatar image

Do you have an idea of what JAVA_HOME was before the update? i.e. where it actually pointed to ?

You might just have to set in your .profilebash. However, would be good to know what happened to your original JAVAHOME directory. An update might have deleted (ouch) or moved it aside for the new install.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-01-07 04:37:54 -0500

Seen: 88 times

Last updated: Jan 10 '18