【发布时间】:2016-09-23 11:27:02
【问题描述】:
所以我正在研究 Ionice2 项目(这仍然是新的.. 差不多一周),我正在尝试按照下面的教程使用 PouchDB for LocalStorage。
教程: http://gonehybrid.com/how-to-use-pouchdb-sqlite-for-local-storage-in-ionic-2/
其中一个要求是使用以下命令安装require
typings install require --ambient --save
每当我尝试这个命令时,我都会得到错误
Unable to find "require" ("npm") in the registry.
Did you want to try searching another source?
Also, if you want contribute these typings, please help us: https://github.com/typings/registry
注意到我已经使用下面的命令安装了 Typings,这个问题的可能原因是什么?
npm install typings --global
【问题讨论】:
-
我成功地遵循了相同的教程,但是我使用了这个命令来安装类型:
npm install -g typings不确定它在功能上是否与您使用的相同。 -
@wilburrr90 我也试过了,但结果一样
-
@wilburrr90 您使用的是哪个操作系统?
标签: angular requirejs ionic2 pouchdb typescript-typings