angular-starter
angular-starter copied to clipboard
npm run start throwing exception TSError: ⨯ Unable to compile TypeScript Cannot find type definition file for 'node'. (2688)
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! [email protected] start: gulp serve.dev --color
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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
I'm facing same problem.
Try update ts-node to version 4.1.0.
Updating ts-node to specified version solved the issue for me. Thanks!