jlooper / angular-starter

:zap: Build apps for the web, mobile, and desktop with one code base
https://github.com/jlooper/angular-starter
MIT License
106 stars 23 forks source link

npm run start throwing exception TSError: ⨯ Unable to compile TypeScript Cannot find type definition file for 'node'. (2688) #14

Open naren5a1 opened 6 years ago

naren5a1 commented 6 years ago

I am getting following exception while running npm run start

TSError: ⨯ Unable to compile TypeScript Cannot find type definition file for 'node'. (2688) gulpfile.ts (1,23): Cannot find module 'gulp'. (2307) gulpfile.ts (2,23): Cannot find module 'gulp-util'. (2307) gulpfile.ts (3,30): Cannot find module 'run-sequence'. (2307) gulpfile.ts (5,20): Cannot find module './tools/config'. (2307) gulpfile.ts (6,47): Cannot find module './tools/utils'. (2307) at getOutput (/Users/apple/Desktop/NativeScript_RandD/angular-starter-master/node_modules/ts-node/src/index.ts:316:17) at /Users/apple/Desktop/NativeScript_RandD/angular-starter-master/node_modules/ts-node/src/index.ts:347:18 at Object.compile (/Users/apple/Desktop/NativeScript_RandD/angular-starter-master/node_modules/ts-node/src/index.ts:474:19) at Module.m._compile (/Users/apple/Desktop/NativeScript_RandD/angular-starter-master/node_modules/ts-node/src/index.ts:410:44) at Module._extensions..js (module.js:579:10) at Object.require.extensions.(anonymous function) [as .ts] (/Users/apple/Desktop/NativeScript_RandD/angular-starter-master/node_modules/ts-node/src/index.ts:413:12) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! angular-starter@0.0.0 start: gulp serve.dev --color npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the angular-starter@0.0.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/apple/.npm/_logs/2017-10-25T11_52_14_185Z-debug.log

mdudek commented 6 years ago

I'm facing same problem.

dimaklaxon commented 6 years ago

Try update ts-node to version 4.1.0.

hassankhalid55 commented 4 years ago

Updating ts-node to specified version solved the issue for me. Thanks!