Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
naren5a1 opened this issue Oct 25, 2017 · 0 comments

Comments

@naren5a1
Copy link

naren5a1 commented Oct 25, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant