简体   繁体   中英

Command not found after installing Yarn

I'm Trying to install Yarn on my local machine and i've run:

npm install -g yarn

After which I get the notification it has been updated however I notice that the path is different for the installation vs where the command is looking:

install path: C:\Users\Sam\AppData\Roaming\nvm\yarn -> C:\Users\Sam\AppData\Roaming\nvm\node_modules\yarn\bin\yarn.js

Command executable path: C:\Users\Sam\AppData\Roaming\nvm/node_modules/node/bin/node: line 1: This: command not found

I'm not sure if this is the reason I can't use Yarn or if its a different issue

Have you updated the node before the setup of yarn?

I am also having a similar issue, after installing yarn and then trying to use the yarn command I get command not found: yarn, any idea why?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM