以下问题:
yarn : The term 'yarn' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + yarn dev + ~~~~
安装yarn
cmd管理员打开,输入
npm install -g yarn
yarn -v (这个查看版本号可以等配置完环境再看)
大家可以看下是否有安装镜像,我是之前就安装了淘宝镜像的

配置环境



原先有一个什么什么DApp的,改为
E:\nodeJS\node_global\node_modules\yarn\bin
然后,再增加NODE_PATH这一行

给大家看下我的Node文件夹位置

接下来,管理员身份打开vscode
先找到对应的前端代码文件夹
cd ./相对地址/
这里的相对地址就是c2n-fe

然后查看yarn版本号
yarn -v
然后,启动yarn
yarn dev
我不太记得我是否需要搞下面这个了,要是下次需要的话,记得
