在macOSX中安装打字要求失败
我遵循一个教程“在ionic中使用PockDB进行本地存储”,作者说我需要运行以下命令:在macOSX中安装打字要求失败,macos,ionic-framework,npm,require,pouchdb,Macos,Ionic Framework,Npm,Require,Pouchdb,我遵循一个教程“在ionic中使用PockDB进行本地存储”,作者说我需要运行以下命令: typings install require --ambient --save 我知道在typings的1.0版中,ambient更改为global,但当我运行此命令时,我得到一个错误: sudo typings install require --global --save typings ERR! message Unable to find "require" ("npm") in the reg
typings install require --ambient --save
我知道在typings的1.0版中,ambient更改为global,但当我运行此命令时,我得到一个错误:
sudo typings install require --global --save
typings ERR! message 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 ERR! caused by https://api.typings.org/entries/npm/require/versions/latest responded with 404, expected it to equal 200
typings ERR! cwd /Users/userName/Desktop/ionic-projects/ionic2-tutorial-pouchdb
typings ERR! system Darwin 15.4.0
typings ERR! command "/usr/local/bin/node" "/usr/local/bin/typings" "install" "require" "--global" "--save"
typings ERR! node -v v4.4.4
typings ERR! typings -v 1.0.4
typings ERR! If you need help, you may report this error at:
typings ERR! <https://github.com/typings/typings/issues>
sudo打字安装要求--global--save
打字错误!邮件在注册表中找不到“require”(“npm”)。是否要尝试搜索其他源?此外,如果您想提供这些打字,请帮助我们:https://github.com/typings/registry
打字错误!引起https://api.typings.org/entries/npm/require/versions/latest 回答为404,预计等于200
打字错误!cwd/Users/userName/Desktop/ionic Project/ionic2教程
打字错误!达尔文系统15.4.0
打字错误!命令“/usr/local/bin/node”“/usr/local/bin/typings”“安装”“需要”“--global”“--save”
打字错误!节点-v4.4.4
打字错误!打字-V1.0.4
打字错误!如果需要帮助,您可以在以下位置报告此错误:
打字错误!
谢谢我在windows上遇到了完全相同的问题。 试一试 我还提交了一份关于打字的报告,他们说我应该试试下面的方法
typings install -SG dt~require
如果您得到以下信息:
require
└── (No dependencies)
这意味着它已经安装了bean链接到tutorial?@PrashantGhimire是的,我也提交了,他们说我应该使用你写的命令。谢谢
require
└── (No dependencies)