当前位置:网站首页>Solve the problem that TS node xxx.ts executes TS code and reports errors
Solve the problem that TS node xxx.ts executes TS code and reports errors
2022-07-28 22:27:00 【Alan-analysis】
In the use of ts-node perform ts Code , Will report a mistake Error: Cannot find module and '@types/node/package.json'C:\Users\MI\AppData\Roaming\npm\node_modules\ts-node\src\index.ts:692
return new TSError(diagnosticText, diagnosticCodes);
^
TSError: ⨯ Unable to compile TypeScript:
hello.ts:2:5 - error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'.
2 console.log('hi'+name);
~~~~~~~
resolvent :
npm install -D tslib @types/node边栏推荐
- [NLP] generate word cloud
- HCIP(8)
- The binary search boundary value processing based on leetcode35 is used to clarify the boundary value of the judgment condition using the idea of interval
- 【CVPR 2021】Cylinder3D:用于LiDAR点云分割的圆柱体非对称3D卷积网络
- Learn kotlin - extension function
- How to establish a decentralized community in Web3
- Aimbetter insight into your database, DPM and APM solutions
- Ruiji takeout project - development of business development function Day2
- lotus 1.16.0 延长扇区过期时间
- Ecmasript 5/6 notes
猜你喜欢

Which is the file transfer command in the basic services of the Internet

SQL注入 Less38(堆叠注入)
![[Ruiji takeout project]day4 - dish management](/img/2a/2d9deb7a583aa37b38a67ef2c74ee7.png)
[Ruiji takeout project]day4 - dish management
![[CS231N]Lecture_ 2:Image Classification pipelin](/img/4f/de56b071560ada746c587a9dbc5f02.jpg)
[CS231N]Lecture_ 2:Image Classification pipelin

Can the MySQL create statement be used to create a table structure and append new records

JS DOM编程之平平无奇小练习

HCIP(14)

Overall introduction of Ruiji takeout project

IFLYTEK written examination

Win11怎么打开软件通知
随机推荐
学习 Kotlin - 扩展函数
HCIP(10)
【云原生之kubernetes】在kubernetes集群下的映射外部服务—Eendpoint
Learning notes and summary of C language programming specification
CDN working principle
想要快速成长,先要经历重大打击!
Hcip seventh experiment
示波器发展史中的变化
Overall introduction of Ruiji takeout project
[CS231N]Lecture_2:Image Classification pipelin
Ruiji takeout - background login function development
Establishment of Ruiji takeout development environment
array_ diff_ The method of not comparing array values when Assoc element is an array
What is the difference between inline elements and block level elements? Semantic function
什么是时间复杂度
hcip实验(15)
Why is 0.1 + 0.2 not equal to 0.3? How to solve this problem?
[CS231N]Lecture_ 2:Image Classification pipelin
Static route and default route experiment
Lotus 1.16.0 extend sector expiration time