这是用于NativeScript版本0.9.1的
我一直在跟踪windows信息NativeScript设置这里。现在,我正试图使用以下命令创建一个新的NativeScript项目
nativescript create NativeScriptTest --log trace但是这是失败的,因为它不能像日志跟踪中所指示的那样获得hello-world项目模板。
Starting watch on killswitch C:\Users\xxx\AppData\Local\Temp\xxx\KillSwitches\cli
AnalyticsInstallationID: xxx
monitor not started
monitor not started
monitor has started, connecting to http://xxx.monitor-eqatec.com/json.ashx
Statistics failed to be sent: 503
Statistics failed to be sent: 503
Creating a new NativeScript project with name NativeScriptTest and id org.nativescript.NativeScriptTest at location x:\xxx\NativeScriptTest
Using NativeScript hello world application
User-Agent: AppBuilderCLI/0.9.1 (Node.js 0.10.33; win32; x64)
httpRequest: { method: 'GET',
host: 'registry.npmjs.org',
port: null,
path: '/tns-template-hello-world',
headers:
{ Accept: 'application/json; charset=UTF-8, */*;q=0.8',
'User-Agent': 'AppBuilderCLI/0.9.1 (Node.js 0.10.33; win32; x64)',
'Accept-Encoding': 'gzip,deflate' } }
httpRequest: Sending:
[nothing]
{ [Error: getaddrinfo ENOTFOUND] stack: [Getter] }
Error: getaddrinfo ENOTFOUND
at FiberFuture.Future.wait (C:\Users\xxx\AppData\Roaming\npm\node_modules\nativescript\node_modules\fibers\future.js:488:15)
... more stacktrace如果我直接转到URL,我会得到一个http://registry.npmjs.org/tns-template-hello-world文档。浏览器在我的网络上使用代理,我怀疑NativeScript不是出于某种原因。将NPM配置为使用代理,npm config list包含本节。
; userconfig C:\Users\xxx\.npmrc
https-proxy = "http://xxx.xxx.xxx.xxx:xxxxx/"
proxy = "http://xxx.xxx.xxx.xxx:xxxxx/"那么,NativeScript应该使用这个userconfig代理信息吗?是否需要在NativeScript中配置一些用于代理使用的内容?
我已经搜索了nativescript.org文档,但是如果有任何信息,我就无法在他们的javascript代理对象的所有结果中找到它。
我还尝试通过以下方式设置配置
npm config add proxy http://xxx.xxx.xxx.xxx:xxxxx --global
npm config add https-proxy http://xxx.xxx.xxx.xxx:xxxxx --global这没什么用。
发布于 2015-03-13 18:01:11
https://stackoverflow.com/questions/29035844
复制相似问题