在 macOSX 中安装 typings require 失败
installing typings require failed in macOSX
我按照 'use PouchDB for localStorage in ionic' 的教程学习,作者说我需要 运行 这个命令:
typings install require --ambient --save
我知道在 1.0 版的 typings 中,环境更改为全局但是当我 运行 这个命令时我得到一个错误:
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 上遇到了完全相同的问题。
尝试
typings install env~requirejs --global --save
我还在打字时提交了 Issue,他们说我应该尝试以下方法
typings install -SG dt~require
如果您得到以下信息:
require
└── (No dependencies)
表示已经安装了bean
我按照 'use PouchDB for localStorage in ionic' 的教程学习,作者说我需要 运行 这个命令:
typings install require --ambient --save
我知道在 1.0 版的 typings 中,环境更改为全局但是当我 运行 这个命令时我得到一个错误:
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 上遇到了完全相同的问题。 尝试
typings install env~requirejs --global --save
我还在打字时提交了 Issue,他们说我应该尝试以下方法
typings install -SG dt~require
如果您得到以下信息:
require
└── (No dependencies)
表示已经安装了bean