K
K
karpo5182020-10-06 12:38:24
ubuntu
karpo518, 2020-10-06 12:38:24

Why can't Ubuntu see gulp installed with yarn?

I would like to use the nvm + yarn + gulp stack. After installing nvm and yarn, I ran the command:

sudo yarn global add gulp-cli

My old notes pointed out that it was important to run the command with sudo. Now I can't explain why. Unfortunately, the command was not executable because calls with sudo do not see node on the system:

node -v
v14.13.0

sudo node -v
sudo: node: команда не найдена


OK. I ran the command without sudo. Now with gulp this is the situation:

yarn global list

yarn global v1.22.5
info "[email protected]" has binaries:
   - gulp
Done in 0.46s.


In the output of yarn list in the project folder, there is also gulp ([email protected])

But the system does not see it:

gulp -v
bash: gulp: команда не найдена


The problem is easily solved by installing gulp using npm. But for a general understanding of the principles of working with yarn, I would like to solve the problem without using npm.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question