【发布时间】:2022-01-23 17:25:30
【问题描述】:
我正在尝试启动我的第一个 NestJS 项目,但遇到了这个失败:
-----------------------------------------
$ nest new testproj
⚡ We will scaffold your app in a few seconds..
'node' is not recognized as an internal or external command,
operable program or batch file.
Failed to execute command: node @nestjs/schematics:application --name=testproj --directory=undefined --no-dry-run --no-skip-git --no-strict --package-manager=undefined --language="ts" --collection="@nestjs/schematics"
------------------------------------------
Tryed to reinstall NodeJS, but no luck.
$ node -v
v16.13.1
$ nest -v
8.1.6
$ npm -v
8.3.0
任何帮助将不胜感激。
【问题讨论】:
-
那是我的第一个动作 - 没用...
-
是的,设置了路径,但没有设置变量,就像那样 -> C:\Program Files\nodejs
-
抱歉混淆了。我的意思是在一些讨论中,人们建议设置变量,例如 SET PATH=%NODEJS%;%PATH%
标签: nestjs