在使用ts-node执行ts代码,会报错Error: Cannot find module '@types/node/package.json'

解决方法:

npm install -D tslib @types/node

 

参考:

https://www.npmjs.com/package/ts-node

相关文章:

  • 2022-12-23
  • 2021-07-26
  • 2021-12-24
  • 2021-12-27
  • 2022-02-21
猜你喜欢
  • 2022-12-23
  • 2021-07-25
  • 2021-11-05
  • 2022-12-23
  • 2021-06-24
相关资源
相似解决方案