Ask Your Question

Problem with paths after system update.

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

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 -0600

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

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 -0600

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


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

Seen: 62 times

Last updated: Jan 10 '18