설 연수
하하호홓
설 연수
전체 방문자
오늘
어제
  • 분류 전체보기 (231)
    • Back-End (2)
      • Java (20)
      • JSP (13)
      • Spring (18)
      • Kotlin (0)
      • node.js (0)
    • Front-End (68)
      • JavaScript (19)
      • jQuery (39)
      • Angular (4)
      • HTML (5)
    • Dev-Ops (12)
      • Linux, Cloud (5)
      • docker, k8s (5)
      • ElasticSeach (2)
    • Other (33)
      • OOP (3)
      • 알고리즘 (2)
      • DB (12)
      • Git (1)
      • Swift (4)
    • Backup (65)

블로그 메뉴

    공지사항

    인기 글

    태그

    • angular2
    • docker
    • angular callback
    • RESTful
    • 패스트캠퍼스
    • CORS
    • 크로스도메인
    • 404 error
    • angular 콜백
    • flex
    • Redis
    • mongodb
    • Kafka
    • Angular
    • angular4
    • jquery invalid
    • MYSQL
    • jOOQ
    • INVALID
    • page not found

    최근 댓글

    최근 글

    티스토리

    hELLO · Designed By 정상우.
    설 연수

    하하호홓

    Front-End/Angular

    [Angular] Error: Cannot find module '@angular-devkit/core'에러

    2018. 2. 3. 16:23

    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.
     
    Colored by Color Scripter
    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
      'Front-End/Angular' 카테고리의 다른 글
      • [Angular] 콜백function안에서 다른 function호출시 에러발생할때
      • angular 기초정리
      • [Tomcat]Angular App URL접근이나 새로고침 시 404에러 뜰때.
      설 연수
      설 연수

      티스토리툴바