【问题标题】:installing typings require failed in macOSX在 macOS 中安装类型需要失败
【发布时间】:2016-09-15 13:05:19
【问题描述】:

我按照教程“在 ionic 中使用 PouchDB for localStorage”,作者说我需要运行这个命令:

typings install require --ambient --save

我知道在 1.0 版的类型中,环境更改为全局,但是当我运行此命令时出现错误:

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>

谢谢

【问题讨论】:

标签: macos ionic-framework npm require pouchdb


【解决方案1】:

我在 Windows 上遇到了完全相同的问题。 试试

typings install env~requirejs --global --save

我还在打字时提交了Issue,他们说我应该尝试以下方法

typings install -SG dt~require

如果你得到以下信息:

require
└── (No dependencies)

表示已经安装了bean

【讨论】:

  • 是的,我也提交了,他们说我应该使用你写的那个命令。谢谢
猜你喜欢
  • 2013-07-25
  • 2021-01-20
  • 2020-03-31
  • 2018-04-15
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多