s-panferov / awesome-typescript-loader

Awesome TypeScript loader for webpack
Other
2.35k stars 179 forks source link

npm WARN awesome-typescript-loader@5.2.1 requires a peer of typescript@^2.7 || ^3 but none is installed. #621

Closed sailfish009 closed 5 years ago

sailfish009 commented 5 years ago

Hi, i am trying to install awesome-typescript-loader, but it failed, give me an error message like below:

$ sudo npm install -g awesome-typescript-loader
npm WARN awesome-typescript-loader@5.2.1 requires a peer of typescript@^2.7 || ^3 but none is installed. You must install peer dependencies yourself.

+ awesome-typescript-loader@5.2.1
updated 1 package in 2.149s

Problem is that i could not setup my xspreadsheet(modified index.html) properly, i think dependency(awesome-typescript-loader) is the casue. https://github.com/sailfish009/xspreadsheet

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.1 LTS
Release:        18.04
Codename:       bionic

$ sudo npm install typescript -g
/usr/local/bin/tsc -> /usr/local/lib/node_modules/typescript/bin/tsc
/usr/local/bin/tsserver -> /usr/local/lib/node_modules/typescript/bin/tsserver
+ typescript@3.2.2
updated 1 package in 1.043s
sailfish009 commented 5 years ago

it turned out xspreadsheet files location problem.