Ask Your Question
0

Problem with paths after system update.

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

precz gravatar image

Hi,

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
0

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

JAVA_HOME=/usr/java/latest/
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)

Cheers

edit flag offensive delete link more
0

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

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

Stats

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

Seen: 61 times

Last updated: Jan 10