简体   繁体   English

在 angular ts 中运行 nodemon 时出现此错误?

[英]when run nodemon in angular ts getting this error?

The problem is when I execute the npm run dev command I get the following error问题是当我执行 npm run dev 命令时出现以下错误

node_modules is not recognized as an internal or external command node_modules 未被识别为内部或外部命令

在此处输入图像描述

This is how the packages.json script looks like:这就是 packages.json 脚本的样子:

在此处输入图像描述

Try this:尝试这个:

"compile":"./node_modules/.bin/tsc && node server.js"

Might be a path issue, your command line thinks that "node_modules" is a command.可能是路径问题,您的命令行认为“node_modules”是一个命令。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 获取错误:运行 docker-compose 时未找到 nodemon - Getting error: nodemon not found when running docker-compose 运行 nodemon server.js 时出错 - Getting error when running nodemon server.js 在我通过“npm i nodemon”安装 nodemon 后,当我尝试通过“nodemon server.js”运行它时,它给了我这个错误。 我应该怎么办? - After I installed nodemon by "npm i nodemon" , when I tried to run it by "nodemon server.js" , it gives me this error. What should I do? 如何在无需全局安装 ts-node 或 npx 的情况下完全运行 nodemon + ts-node + typescript? - How to run nodemon + ts-node + typescript altogether without having to install ts-node or npx globally? Nodemon npm 不会运行,每次都会抛出错误 - Nodemon npm will not run, error gets thrown everytime nodemon 在 kubernetes 环境中运行时未启动 - nodemon not starting when run in kubernetes environment 文件更改时运行 tsc 时 nodemon 不工作 - run tsc with nodemon not working when file changes 尝试全局安装 Nodemon 但出现错误 - Trying to install Nodemon globally but getting error 运行“nodemon app”命令时出错 - Getting an error while running "nodemon app" comannd 当我运行 nodemon 服务器时,我收到错误消息“错误的身份验证失败。[nodemon] 应用程序崩溃 - 在开始之前等待文件更改......” - When I run nodemon server I get the error "bad auth Authentication failed. [nodemon] app crashed - waiting for file changes before starting..."
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM