when I use yarn install in the front-end project to prompt that java_home is not set,"-Dhadoop.log.dir" is not an internal or external command,
but I want to use yarn"s package to manage that solution
when I use yarn install in the front-end project to prompt that java_home is not set,"-Dhadoop.log.dir" is not an internal or external command,
but I want to use yarn"s package to manage that solution
assume that the installation directory for yarn is / usr/app/yarn-v1.13.0/.
execute:
ln -s /usr/app/yarn-v1.13.0/bin/yarn /usr/bin/yarn-js
use:
yarn-js -v
-additional note-
generally, all tools you install will have a / bin directory in their directory, which contains the executable files for the tool, such as yarn.
ln command do?
established a connection.
/ usr/bin/yarn-js is the executable of the system and is named yarn-js (the name is optional, but not conflicting).
ln-s / usr/app/yarn-v1.13.0/bin/yarn / usr/bin/yarn-js
is to link yarn-js to / usr/app/yarn-v1.13.0/bin/yarn, the executable file for your installation yarn.
so that when you execute yarn-js, you are actually calling the yarn execution under the installation path.
aside: why configure the system path path? The answer is same as above.
the same problem, being followed, solved to answer, centos
Previous: How to separate multiple names in vue by commas?
Next: Js multi-layer nesting, only know the last value, how to traverse to get all the parents