current position:Home>After yarn is installed, the yarn command cannot be used in Vue projects

After yarn is installed, the yarn command cannot be used in Vue projects

2022-01-27 04:35:32 Rolling mill

1、 install Yarn To configure Yarn

use npm install

npm install -g yarn
yarn config set registry https://registry.npm.taobao.org -g
yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g

If nothing else

  When you want to start a project in a project , You'll find that

  At this time

1: Search for powershell, Run as an administrator powershell
2: Use the command to change the execution policy of the computer

  perform : set-ExecutionPolicy RemoteSigned

  Run as administrator , Input set-ExecutionPolicy RemoteSigned

Enter in options  

Y perhaps A

  It's a success

copyright notice
author[Rolling mill],Please bring the original link to reprint, thank you.
https://en.cdmana.com/2022/01/202201270435271190.html

Random recommended