尝试使用 Quasar CLI 创建项目时出现此错误 "zsh:找不到命令:类星体"



我正在开始一个youtube教程使用Quasar 克隆Twitter

并且我试图在Quasar CLI看起来安装成功后安装它,然后当我键入命令时

quasar create <project-name>

它给了我未找到的错误。

zsh: command not found: quasar


更新-

我意识到类星体安装甚至不起作用,因为当我试图查看命令列表时,什么都不会出现。

npm install -g @quasar/cli

这是

npm notice Beginning October 4, 2021, all connections to the npm registry - including for package installation - must use TLS 1.2 or higher. You are currently using plaintext http to connect. Please visit the GitHub blog for more information: https://github.blog/2021-08-23-npm-registry-deprecating-tls-1-0-tls-1-1/

npm notice Beginning October 4, 2021, all connections to the npm registry - including for package installation - must use TLS 1.2 or higher. You are currently using plaintext http to connect. Please visit the GitHub blog for more information: https://github.blog/2021-08-23-npm-registry-deprecating-tls-1-0-tls-1-1/```
```changed 375 packages in 16s
36 packages are looking for funding
run `npm fund` for details
dadecapo@Simons-MacBook-Pro quasar-project % quasar
zsh: command not found: quasar```

我相信您会想要更新TLS 1.2https://support.microsoft.com/en-us/topic/update-to-enable-tls-1-1-and-tls-1-2-as-default-secure-protocols-in-winhttp-in-windows-c4bd73d2-31d7-761e-0178-11268bb10392

也许还有你的Node.js和npm。您可能需要按照以下说明卸载并重新安装Node.js,然后重新安装Quasar。

https://reactgo.com/uninstall-node-npm-from-macos/

相关内容

最新更新