cannot find module 'angular2/core'

前端 未结 15 1789
臣服心动
臣服心动 2020-12-23 16:10

These red squiggly lines say cannot find module \'angular2/core\',cannot find module \'angular2/router\',cannot find module \'angula

15条回答
  •  我在风中等你
    2020-12-23 16:25

    This is an Interesting issue, apart from the reasons and solution mentioned above, one can get this error on following scenarios.

    1. NPM (Node Package Manager) is not installed on the machine

      Fix: Install NPM from https://nodejs.org/en/

    2. If you are still getting this error after Installing NPM, there could be NPM configuration issue. Refer to this article to setup NPM configuration properly

提交回复
热议问题