运行nodemon时出错-术语“nodemon”未被识别为cmdlet、函数、脚本文件或可操作程序的名称

问题描述 投票:0回答:1

我是 Node.js 新手,无法在 VS 工作室中安装和运行 Nodeman。我已经使用命令 npm install -g nodemon 全局安装了 t,然后在用户和系统环境变量中添加了路径。使用命令获取路径 -> npm config get prefix 我不知道我错过了什么。

错误日志:

The term 'nodemon' is not recognized as the name of a cmdlet, function, script file, or operable program. 
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
node.js nodemon
1个回答
0
投票

确保路径变量(在环境变量中)中的第一个路径是 NPM 路径。

© www.soinside.com 2019 - 2024. All rights reserved.