Install npm install -g ts-node
then execute ts-node hello.ts
error:
Solution:
npm install -D tslib @types/node
Reimplementation: ts-node hello.ts
Read More:
- [Solved] typescript Error: Cannot find name ‘__dirname‘
- Ts-node Error: return new TSError(diagnosticText, diagnosticCodes);
- TypeScript error TS2345: Argument of type ‘String ‘is not assignable to parameter of type ‘string’
- [Solved] vueCli 4.x Upgrade to 5.x Error: Progress Plugin Invalid Options
- Node rsa Library Error [InvalidAsn1Error]: Expected 0x2: got 0x30
- Using ts-node to Execute .ts files Error [Solved]
- [Solved] Vue Compile Error: JavaScript heap out of memory
- [Solved] Syntax Error: Error: Node Sass does not yet support your current environment: OS X Unsupported archi
- [Solved] Webpack compile error: SyntaxError: Unexpected token =
- [Solved] Npm install Error: verbose stack Error: unable to resolve dependency tree
- How to Solve @Vue/cli3.X Using less Error
- [Weex]Error in creating project NPM: unable to load file D:\program files\nodejs\node_ global\ weex.ps1 Because scripts are not allowed to run on this system.
- [Solved] Vue2.x vue-lazyload Error: Failed to resolve directive: lazy
- Vue3.0 error: Failed to resolve component el-form-item (el element to be unable to be displayed)
- ArcGIS API for JavaScript version 4. X updated and the project startup error: Module parse failed: Unexpected token(… …
- Vue init webpack Error: unable to verify the first certificate
- [Solved] node.js request Error: Error: unable to verify the first certificate
- [Solved] ant design pro vue Startup Error: ERROR Failed to compile with 1 error 20:34:09 error in ./src/components/Num
- [Solved] Failed to compile with 1 error. Syntax Error: Error: Loading PostCSS Plugin failed: Cannot find modul
- How to Solve NPM installation -g @view/client Error