arcanis / ts-pnp

Transparently adds support for Plug'n'Play to TypeScript
67 stars 9 forks source link

Require peer, but the peer is already there #2

Open crystalfp opened 5 years ago

crystalfp commented 5 years ago

Just a minor annoyance. Updating a global package, I received a warning about missing peer package:

PS D:\Projects\CouchDB> npm -g install dependency-cruiser@4.27.1
C:\Users\Mario Valle\AppData\Roaming\npm\depcruise -> C:\Users\Mario Valle\AppData\Roaming\npm\node_modules\dependency-cruiser\bin\dependency-cruise
C:\Users\Mario Valle\AppData\Roaming\npm\dependency-cruise -> C:\Users\Mario Valle\AppData\Roaming\npm\node_modules\dependency-cruiser\bin\dependency-cruise
C:\Users\Mario Valle\AppData\Roaming\npm\dependency-cruiser -> C:\Users\Mario Valle\AppData\Roaming\npm\node_modules\dependency-cruiser\bin\dependency-cruise
npm WARN ts-pnp@1.1.2 requires a peer of typescript@* but none is installed. You must install peer dependencies yourself.

+ dependency-cruiser@4.27.1
updated 3 packages in 5.872s
PS D:\Projects\CouchDB>

But typescript is installed globally:

PS D:\Projects\CouchDB> npm ls -g -depth=0
C:\Users\Mario Valle\AppData\Roaming\npm
+-- @babel/core@7.5.4
+-- @babel/plugin-proposal-class-properties@7.5.0
+-- @types/node@12.6.2
+-- c8@5.0.1
+-- dependency-cruiser@4.27.1
+-- dts-gen@0.5.8
+-- eslint@6.0.1
+-- js-beautify@1.10.0
+-- jsinspect@0.12.7
+-- madge@3.4.4
+-- mocha@6.1.4
+-- node-red@0.20.7
+-- nodemailer@6.2.1
+-- nodemon@1.19.1
+-- normalize-date@0.0.4
+-- npm@6.10.0
+-- npm-check-updates@3.1.18
+-- prettier@1.18.2
+-- sass@1.22.3
+-- sass-lint@1.13.1
+-- stylelint@10.1.0
+-- stylelint-config-recommended@2.2.0
+-- stylelint-find-rules@2.0.0
+-- ts-complexity@0.0.3
+-- tslint@5.18.0
+-- typescript@3.5.3
+-- uglify-js@3.6.0
+-- uncss@0.17.0
+-- undefined@0.1.0
`-- vis@4.21.0

Thanks for looking! mario