纱线全球命令不起作用 [英] Yarn global command not working

查看:76
本文介绍了纱线全球命令不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Yarn v0.16.1。如果我理解正确(根据文档), yarn global添加< package> 应相当于 npm install -g< package> 。但是,当我在文档中运行示例时(使用 create-react-app ),该命令成功运行,但 create-react-app 。这是输出:

I'm working with Yarn v0.16.1. If I understand correctly (according to the documentation), yarn global add <package> should be the equivalent of npm install -g <package>. However, when I run the example in the docs (with create-react-app), the command runs successfully but create-react-app is then not available from the command line. Here's the output:

这篇关于纱线全球命令不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆