安装打字要求在macOSX中失败 [英] installing typings require failed in macOSX

查看:120
本文介绍了安装打字要求在macOSX中失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照一个教程在Pionic中使用PouchDB用于localStorage,作者说我需要运行以下命令:

I following a tutorial to 'use PouchDB for localStorage in ionic' and the author says i need run this command:

typings install require --ambient --save

我知道在1.0版的打字中,环境更改为全局但是当我运行此命令时,我得到一个错误:

i know in version 1.0 of typings, ambient changed to global but when i run this command i get an error:

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>

谢谢

推荐答案

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

I had exactly the same issue on windows. try

typings install env~requirejs --global --save

我还提交了在输入时出现问题,他们说我应该尝试以下操作

I also submitted a Issue at typings and they said I should try the following

typings install -SG dt~require

,如果您得到以下信息:

and if you get the following:

require
└── (No dependencies)

已经安装了Bean

这篇关于安装打字要求在macOSX中失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆