ERROR: [Errno 21] Is a directory: 'config'?

"laravel/framework": "5.5.*", 环境 是 ubuntu 1.64. php 7.2+ nginx 1.13! tx 云的主机

yarn config set registry https://registry.npm.taobao.org
The program 'yarn' is currently not installed. You can install it by typing:
apt install cmdtest
root@VM-0-5-ubuntu:/var/www/html/shop# apt install cmdtest

root@VM-0-5-ubuntu:/var/www/html/shop# yarn config set registry https://registry.npm.taobao.org
ERROR: [Errno 21] Is a directory: 'config'

《L04 微信小程序从零到发布》
从小程序个人账户申请开始,带你一步步进行开发一个微信小程序,直到提交微信控制台上线发布。
《L03 构架 API 服务器》
你将学到如 RESTFul 设计风格、PostMan 的使用、OAuth 流程,JWT 概念及使用 和 API 开发相关的进阶知识。
leo
最佳答案

请用我们指定的开发环境学习

5年前 评论
讨论数量: 2
leo

请用我们指定的开发环境学习

5年前 评论

报错的yarn其实是cmdset中的一个命令,并不是这里需要所使用的yarn。所以需要先卸载cmdset
sudo apt-get remove cmdtest
sudo npm i yarn -g
然后yarn命令就正常了。

5年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!