PatrickJS-starter: Npm start raise a lot of errors
Hello everyone i just cloned the project but when I run npm start I’ve that in the terminal: My environment is: node -v v5.7.1 npm -v 3.6.0
ERROR in ./~/es7-reflect-metadata/src/helper/gen-randombytes.ts
(1,25): error TS2307: Cannot find module 'crypto'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/node_modules/angular2/src/testing/matchers.d.ts
(4,37): error TS2503: Cannot find namespace 'jasmine'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/node_modules/angular2/src/core/zone/ng_zone.d.ts
(2,37): error TS2304: Cannot find name 'Zone'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/node_modules/angular2/src/facade/promise.d.ts
(1,10): error TS2661: Cannot re-export name that is not defined in the module.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/typings/browser/ambient/ng2/ng2.d.ts
(17,9): error TS2304: Cannot find name 'Zone'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/home/services/title.spec.ts
(16,1): error TS2304: Cannot find name 'describe'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/home/services/title.spec.ts
(32,5): error TS2304: Cannot find name 'expect'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/home/services/title.spec.ts
(36,5): error TS2304: Cannot find name 'spyOn'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/home/services/title.spec.ts
(37,5): error TS2304: Cannot find name 'expect'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/home/services/title.spec.ts
(40,5): error TS2304: Cannot find name 'expect'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/home/services/title.spec.ts
(41,5): error TS2304: Cannot find name 'expect'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/home/directives/x-large.spec.ts
(30,9): error TS2304: Cannot find name 'expect'.
ERROR in ./src/app/home/home.ts
(25,13): error TS2304: Cannot find name 'require'.
ERROR in ./src/app/home/home.ts
(27,13): error TS2304: Cannot find name 'require'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/home/home.spec.ts
(36,5): error TS2304: Cannot find name 'expect'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/home/home.spec.ts
(40,5): error TS2304: Cannot find name 'expect'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/home/home.spec.ts
(44,5): error TS2304: Cannot find name 'spyOn'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/home/home.spec.ts
(45,5): error TS2304: Cannot find name 'expect'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/home/home.spec.ts
(48,5): error TS2304: Cannot find name 'expect'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/home/home.e2e.ts
(4,1): error TS2304: Cannot find name 'describe'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/home/home.e2e.ts
(6,3): error TS2304: Cannot find name 'beforeEach'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/home/home.e2e.ts
(8,5): error TS2304: Cannot find name 'browser'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/home/home.e2e.ts
(12,3): error TS2304: Cannot find name 'it'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/home/home.e2e.ts
(13,19): error TS2304: Cannot find name 'browser'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/home/home.e2e.ts
(15,5): error TS2304: Cannot find name 'expect'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/home/home.e2e.ts
(18,3): error TS2304: Cannot find name 'it'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/home/home.e2e.ts
(19,19): error TS2304: Cannot find name 'element'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/home/home.e2e.ts
(19,27): error TS2304: Cannot find name 'by'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/home/home.e2e.ts
(21,5): error TS2304: Cannot find name 'expect'.
ERROR in ./src/app/app.ts
(62,35): error TS2304: Cannot find name 'require'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/app.spec.ts
(12,1): error TS2304: Cannot find name 'describe'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/app.spec.ts
(19,5): error TS2304: Cannot find name 'expect'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/app.e2e.ts
(4,1): error TS2304: Cannot find name 'describe'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/app.e2e.ts
(6,3): error TS2304: Cannot find name 'beforeEach'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/app.e2e.ts
(7,5): error TS2304: Cannot find name 'browser'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/app.e2e.ts
(11,3): error TS2304: Cannot find name 'it'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/app.e2e.ts
(12,19): error TS2304: Cannot find name 'browser'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/app.e2e.ts
(14,5): error TS2304: Cannot find name 'expect'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/app.e2e.ts
(17,3): error TS2304: Cannot find name 'it'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/app.e2e.ts
(18,19): error TS2304: Cannot find name 'element'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/app.e2e.ts
(18,27): error TS2304: Cannot find name 'by'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/app.e2e.ts
(20,5): error TS2304: Cannot find name 'expect'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/app.e2e.ts
(23,3): error TS2304: Cannot find name 'it'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/app.e2e.ts
(24,19): error TS2304: Cannot find name 'element'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/app.e2e.ts
(24,27): error TS2304: Cannot find name 'by'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/app.e2e.ts
(26,5): error TS2304: Cannot find name 'expect'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/app.e2e.ts
(29,3): error TS2304: Cannot find name 'it'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/app.e2e.ts
(30,19): error TS2304: Cannot find name 'element'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/app.e2e.ts
(30,27): error TS2304: Cannot find name 'by'.
ERROR in /Users/danielezurico/Desktop/test/angular2-webpack-starter/src/app/app.e2e.ts
(32,5): error TS2304: Cannot find name 'expect'.
ERROR in ./src/polyfills.ts
(7,22): error TS2304: Cannot find name 'process'.
ERROR in ./src/polyfills.ts
(12,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(16,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(21,3): error TS2304: Cannot find name 'Zone'.
ERROR in ./src/polyfills.ts
(21,32): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(27,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(28,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(29,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(30,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(31,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(32,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(33,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(34,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(35,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(36,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(37,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(38,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(39,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(40,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(41,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(42,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(43,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(44,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(47,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(48,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(49,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(50,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(51,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(52,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(53,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(54,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(55,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(56,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(57,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(58,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(59,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(60,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(61,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(62,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(63,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(64,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(65,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(66,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(67,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(68,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(69,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(70,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(71,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(72,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(73,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(74,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(75,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(76,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(77,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(78,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(79,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(80,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(81,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(82,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(83,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(84,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(85,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(86,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(87,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(88,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(89,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(90,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(91,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(92,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(93,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(94,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(95,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(96,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(97,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(98,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(99,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(100,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(101,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(102,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(103,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(104,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(105,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(106,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(107,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(108,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(109,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(110,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(111,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(112,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(113,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(114,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(115,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(116,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(117,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(118,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(119,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(120,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(121,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(122,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(123,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(124,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(125,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(126,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(127,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(128,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(129,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(130,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(131,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(132,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(133,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(134,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/polyfills.ts
(135,3): error TS2304: Cannot find name 'require'.
ERROR in ./src/main.ts
(11,22): error TS2304: Cannot find name 'process'.
webpack: bundle is now VALID.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 19 (5 by maintainers)
This issue is outdated and should be closed.
After install npm typings, you need to do
typings install
I can confirm I get these errors also with node: v5.10.1 npm: v3.8.3
I have done both npm install and typings install yet I still get
I’ve also had to put the following in tsconfig.json
"files": [ "node_modules/angular2/typings/browser.d.ts" ],
In order to remove most of the other errors.
I ran into this error. It was caused when I moved the location of the tsconfig.json file and I didn’t update the typeRoots entry to reflect the change:
Updated the file to reflect the correct location of the @types directory
@xeor Check your typings.json file, you need to update ambientDependencies to globalDependencies, etc. also check your tsconfig is pointing to the correct typings files too
You don’t need to do typings install anymore, it uses types now that are in the package json
@MarkPieszak thanks… It was errors in my tsconfig that caused this… I had missed the changes this repository had done to it 😃