cmd에서 ng new를 통하여 project생성 후
ng serve명령어를 날렸더니 발생한 Error: Cannot find module '@angular-devkit/core' 에러.
node_modules/@angular-devkit 경로에 가보니 core폴더가 생성되지 않았다.
npm install @angular-devkit/core --save-dev 명령어 호출 후 다시 ng serve를 했더니 해결되었음.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | C:\workspace\jersey\src\main\angular-board>ng serve module.js:540 throw err; ^ Error: Cannot find module '@angular-devkit/core' at Function.Module._resolveFilename (module.js:538:15) at Function.Module._load (module.js:468:25) at Module.require (module.js:587:17) at require (internal/module.js:11:18) at Object.<anonymous> (C:\workspace\jersey\src\main\angular-board\node_modules\@angular-devkit\schematics\src\tree\virtual.js:10:16) at Module._compile (module.js:643:30) at Object.Module._extensions..js (module.js:654:10) at Module.load (module.js:556:32) at tryModuleLoad (module.js:499:12) at Function.Module._load (module.js:491:3) C:\workspace\jersey\src\main\angular-board>npm install @angular-devkit/core --save-dev npm WARN @angular-devkit/schematics@0.0.52 requires a peer of @angular-devkit/core@0.0.29 but none is installed. You must install peer dependencies yourself. npm WARN @schematics/angular@0.1.17 requires a peer of @angular-devkit/core@0.0.29 but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) + @angular-devkit/core@0.2.0 added 1 package in 10.694s C:\workspace\jersey\src\main\angular-board>ng serve ** NG Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ ** Date: 2018-02-03T07:19:48.765Z Hash: f91a4bf662c13657060f Time: 5935ms chunk {inline} inline.bundle.js (inline) 5.79 kB [entry] [rendered] chunk {main} main.bundle.js (main) 19.9 kB [initial] [rendered] chunk {polyfills} polyfills.bundle.js (polyfills) 555 kB [initial] [rendered] chunk {styles} styles.bundle.js (styles) 33.9 kB [initial] [rendered] chunk {vendor} vendor.bundle.js (vendor) 7.41 MB [initial] [rendered] webpack: Compiled successfully. | cs |
'Front-End > Angular' 카테고리의 다른 글
[Angular] 콜백function안에서 다른 function호출시 에러발생할때 (0) | 2018.02.19 |
---|---|
angular 기초정리 (0) | 2018.02.19 |
[Tomcat]Angular App URL접근이나 새로고침 시 404에러 뜰때. (0) | 2018.02.07 |