因此,我正在研究Ionice2項目(在這個問題上近乎一週還是新的),並且我正在嘗試按照下面的教程來使用PouchDB for LocalStorage。安裝類型需要Ionic2應用程序
教程: http://gonehybrid.com/how-to-use-pouchdb-sqlite-for-local-storage-in-ionic-2/
的要求之一是需要使用以下命令
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
注意到安裝我已經使用下面的命令安裝了類型,這個問題有什麼可能的原因?
npm install typings --global
我成功地遵循了相同的教程,但是我使用這個命令來安裝類型:'npm install -g typings'不知道它是否與您使用的功能相同。 – wdickerson
@ wilburrr90我試過了,但是結果相同 –
@ wilburrr90您正在使用哪種操作系統? –