npm install -g generator-angular gives error (requires a peer of)

后端 未结 3 769
慢半拍i
慢半拍i 2021-01-14 11:49

Learning Node and trying to install generator-angular

running npm install -g generator-angular

WARN EPEERINVALID gen

3条回答
  •  春和景丽
    2021-01-14 12:46

    npm@3 no longer install peerDependencies automatically. This warning is shown as a result of this change.

    If you are not running the tests you do not have to install karma.
    If you are, npm install karma>=0.9.0 manually.

    https://docs.npmjs.com/files/package.json#peerdependencies

提交回复
热议问题