找不到嵌套命令 [英] nest Command not found
本文介绍了找不到嵌套命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我按照文档创建了我的第一个 NestJS 项目.
I followed the documentation to create my first NestJS project.
使用命令 npm i -g @nestjs/cli
安装 Nest CLI 成功.
Installing the Nest CLI with the command npm i -g @nestjs/cli
was successful.
输出是:
+ @nestjs/cli@6.3.0
updated 1 package in 11.326s
但是,当我尝试使用 Nest CLI 搭建项目时:
However, when I try to scaffold a project with the Nest CLI:
nest new project-name
我收到以下错误:
zsh: command not found: nest
关于我的环境的一些细节:
Some details about my environment:
- OSX
- iTerm
- npm 版本 6.5.0
推荐答案
使用 npx @nestjs/cli
而不是 nest
例如npx @nestjs/cli g 控制器页面
这篇关于找不到嵌套命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文