error TS2307: Cannot find module '@angular/core'

后端 未结 4 1229
你的背包
你的背包 2020-12-16 19:43

So I get the following error when I tried building my application again:

ERROR in ../../../node_modules/@angular/cdk/a11y/typings/aria-describer/aria-describer

4条回答
  •  天命终不由人
    2020-12-16 19:58

    I see that some solutions are radical, I would not to try that in the first place. My solution was not radical, and it did the job.

    I had the problem too, I did a simple npm update This was what came out:

    $> npm update
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
    
    + rxjs@6.2.2
    + core-js@2.5.7
    added 2 packages from 6 contributors and audited 38996 packages in 13.315s
    found 0 vulnerabilities
    
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
    
    + @types/jasminewd2@2.0.4
    updated 1 package and audited 38996 packages in 12.972s
    found 0 vulnerabilities
    

    And it solved the problem.

提交回复
热议问题