所以我正在研究 Ionice2 项目(这仍然是新项目......差不多一周了),并且我正在尝试按照下面的教程使用 PouchDB 进行 LocalStorage。
教程:http://gonehybrid.com/how-to-use-pouchdb-sqlite-for-local-storage-in-ionic-2/ 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
打字最近已更新。首先更新到最新版本的打字。
要安装 require.d.ts 文件,请使用打字安装 dt~require --save --global
Refer https://github.com/typings/typings https://github.com/typings/typings欲了解更多详情
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)