用phonegap制作一个测试应用程序



我正在用phonegap制作一个应用程序,我以前使用过这个框架,但从未遇到过这个问题。但我刚把它安装在我的家用电脑上,当我进行"phonegap创建测试"时,我发现了这个错误

Creating a new cordova project with name "Hello World" and id "com.phonegap.helloworld" at location "C:UsersEloyDesktoptest"
Using custom www assets from https://github.com/phonegap/phonegap-app-hello-world/archive/master.tar.gz
Downloading hello-world-template library for www...
Error: connect ETIMEDOUT
    at errnoException (net.js:905:11)
    at Object.afterConnect [as oncomplete] (net.js:896:19)

有什么建议吗??

非常感谢。

该错误将通过设置NPM注册表来解决。

npm config set registry http://registry.npmjs.org/

如果您在Linux上,则可能需要将sudo添加到命令中。

最新更新