Ngx-bootstrap: typings install moment --save

Created on 11 Jul 2016  路  4Comments  路  Source: valor-software/ngx-bootstrap

typings WARN hastypings Typings for "moment" already exist in "node_modules\moment\moment.d.ts". You should let TypeScript resolve the packaged typings and uninstall the copy installed by Typings
typings ERR! message Unable to find "moment" ("npm") in the registry.
typings ERR! message However, we found "moment" for 1 other source: "dt"
typings ERR! message You can install these using the "source" option.
typings ERR! message We could use your help adding these typings to the registry: https://github.com/typings/registry
typings ERR! caused by https://api.typings.org/entries/npm/moment/versions/latest responded with 404, expected it to equal 200

typings ERR! cwd E:\oscchina\Taurus
typings ERR! system Windows_NT 10.0.10586
typings ERR! command "D:\\Program Files\\nodejs\\node.exe" "D:\\Program Files\\nodejs\\node_modules\\typings\\dist\\bin.js" "install" "--save" "moment"
typings ERR! node -v v4.4.5
typings ERR! typings -v 1.3.1

typings ERR! If you need help, you may report this error at:
typings ERR!   <https://github.com/typings/typings/issues>

Most helpful comment

@qq83387856 I can install it with the --global and it works:

typings install dt~moment --global --save

All 4 comments

@qq83387856 I can install it with the --global and it works:

typings install dt~moment --global --save

Installing it globally really isn't a solution. Since it installs globally just not locally it would definitely be preferred to have a "real" fix for this.

@mikepc This is typings not npm. Please take a look at the docs of typings:
https://github.com/typings/typings

You don't need typings for moment anymore!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tuoitrexuquang picture tuoitrexuquang  路  3Comments

Scooviese picture Scooviese  路  3Comments

webdev48 picture webdev48  路  3Comments

MihaiHoriaPopescu picture MihaiHoriaPopescu  路  3Comments

ravirajhalli picture ravirajhalli  路  3Comments