【发布时间】:2021-06-19 18:38:23
【问题描述】:
我正在尝试使用 nodemon 启动我的服务器,但它崩溃并显示以下输出。
ERROR: Unrecognized environment. Aborting. 的错误似乎非常罕见,来自 a Google search。
在 Windows 10 和 WSL2 Ubuntu 设置中运行相同的代码。两者都有相同的结果。不过,出于某种原因,服务器确实为我的同事启动。
user@LAPTOP:~/myproject$ npm run start:dev
> myproject@0.0.0 start:dev /home/user/myproject
> nodemon
[nodemon] 2.0.7
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): src/**/*
[nodemon] watching extensions: ts,html
[nodemon] starting `./node_modules/.bin/ts-node -r tsconfig-paths/register ./src`
[2021-03-23T04:11:42.704Z] ERROR: Unrecognized environment. Aborting.
[nodemon] app crashed - waiting for file changes before starting...
^C
user@LAPTOP:~/myproject$ npm -v
6.14.11
user@LAPTOP:~/myproject$ node -v
v15.12.0
【问题讨论】:
标签: node.js typescript sequelize.js nodemon