首页 > 其他分享 >2024-03-05 NestJs学习日志之新建nest项目,运行启动命令nest start报错:Could not find TypeScript configuration file "

2024-03-05 NestJs学习日志之新建nest项目,运行启动命令nest start报错:Could not find TypeScript configuration file "

时间:2024-03-06 10:22:33浏览次数:29  
标签:false 启动 nest json 报错 true tsconfig

如题,低级错误。具体报错:

Could not find TypeScript configuration file "tsconfig.json". Please, ensure that you are running this command in the appropriate directory (inside Nest workspace)

找不到TypeScript配置文件“tsconfig.json”。请确保您在适当的目录(Nest工作区内)中运行此命令

报错原因:我在nest项目的上一级运行了启动命令,这显然是不对的。程序执行命令后没有在当前目录里找到tsconfig.json,故而报错。

什么?你说你已经在nest目录里运行启动命令还是报错???

那么,应该是你的项目的tsconfig.json被你误删了,亦或者本来就没有,但是需要你手动去创建一个tsconfig.json文件,以我的tsconfig.json文件为例:

{
  "compilerOptions": {
    "module": "commonjs",
    "declaration": true,
    "removeComments": true,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "allowSyntheticDefaultImports": true,
    "target": "ES2021",
    "sourceMap": true,
    "outDir": "./dist",
    "baseUrl": "./",
    "incremental": true,
    "skipLibCheck": true,
    "strictNullChecks": false,
    "noImplicitAny": false,
    "strictBindCallApply": false,
    "forceConsistentCasingInFileNames": false,
    "noFallthroughCasesInSwitch": false
  }
}

 

标签:false,启动,nest,json,报错,true,tsconfig
From: https://www.cnblogs.com/iuniko/p/18055941

相关文章

  • mysql报错代码汇总
    先给大家看几个实例的错误分析与解决方案。1.ERROR2002(HY000):Can'tconnecttolocalMySQLserverthroughsocket'/data/mysql/mysql.sock'问题分析:可能是数据库没有启动或者是端口被防火墙禁止。解决方法:启动数据库或者防火墙开放数据库监听端口。2.ERROR1045......
  • httpd使用systemctl启动超时解决过程
    现象:systemctlstarthttpd启动超时,提示信息如下:Jobforhttpd.servicefailedbecausethecontrolprocessexitedwitherrorcode.See"systemctlstatushttpd.service"and"journalctl-xe"fordetails.systemctlstatushttpd信息如下:httpd.service......
  • Oceanbase数据库创建分区时报错
    报错信息:ERROR1044(42000):Accessdeniedforuser'root'@'%'todatabase'oceanbase'报错原因:由于OceanBase数据库中,oceanbase库是系统库,里面存放的是系统的很多表,所以不能进行操作,换个库即可,一般到test库下,执行操作......
  • mysql报错:SQL 错误 [1030] [HY000]: Got error 100 - 'InnoDB error' from storage en
    在mysql中进行alter时,报错:SQL错误[1030][HY000]:Goterror100-'InnoDBerror'fromstorageengine 原因:在配置my.cnf或my.ini里面innodb_force_recovery参数的值大于0,它默认值为0,如果大于0,innodb就会禁用insert、update、delete、alter语句。解决方式:在配置my.cn......
  • Nestjs系列 Nestjs常用装饰器
    在此之前,项目中使用的各种@Inject@Controller等以@开头的都是装饰器,这里对使用中常用的装饰器进行进一步认识。模块之间常用装饰器模块装饰器@Module声明模块@Controller、@Injectable分别声明其中的controller和provider(service)其中@Injectable可以在任......
  • redis安装启动脚本
    #!/bin/bash#sudoyuminstall-ygcc#sudoyuminstall-yrubybuild-essentialBASE=/usr/localpsaux|grepredis-server|awk'{print$2}'|xargskill-9REDIS_HOME=$BASE'/redis-3.2.0'cd$BASEsudotarzxvf./redis-3.2.0.tar......
  • 如何在MinGW GCC中查询Windows服务的状态?启动、停止 Windows 服务 Demo
    使用MinGWGCC完成查询Windows服务的状态:#include<windows.h>#include<stdio.h>//查询服务状态的函数voidQueryServiceStatus(constchar*serviceName){SC_HANDLEscm,service;SERVICE_STATUSstatus;//打开服务控制管理器scm=OpenSCMana......
  • mysql 8 不能启动
    问题:启动systemctlstartmysqld.serviceJobformysqld.servicefailedbecausethecontrolprocessexitedwitherrorcode.See"systemctlstatusmysqld.service"and"journalctl-xe"fordetails.查看状态:systemctlstatusmysqld.service  mysqld.se......
  • 未完成编辑 Linux CentOS7.6使用腾讯Yum源安装MySQL5.7,执行mysql-secure-installation
    学习安装MySQL时发现官方源很慢,试了国内腾讯源快,记录一下LinuxCentOS7.6前置环境:CPU1内存4GB硬盘SCSI20GB网络模式桥接系统内为自动DHCPpingqq.com可通互联网以下为MySQL5.7安装步骤编辑新repo库路径:/etc/yum.repos.d/mysql-community.repovi/etc/yum.repos......
  • 2024-selenium-问题一:java.io.IOException: Invalid Status code=403 text=Forbidden
    问题截图:  问题分析: 参考网址:https://blog.csdn.net/weixin_46739493/article/details/134163739问题解决:1、chrome版本为:版本114.0.5735.199(正式版本);driver的版本为:114.0.5735.90; java-seleium版本为:4.0.0-rc-21<dependency>2<groupId>org.......