Ceci est pour la version 0.9.1 NativeScriptNativeScript créer échoue avec l'erreur: getaddrinfo ENOTFOUND
J'ai suivi la configuration NativeScript pour Windows informations here. Je suis maintenant à un point où je suis en train de créer un nouveau projet NativeScript en utilisant la commande suivante
nativescript create NativeScriptTest --log trace
Sauf que ce n'est en voie parce qu'il ne peut pas obtenir le projet bonjour monde modèle comme indiqué dans le journal trace
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
Si je vais directement à l'URL http://registry.npmjs.org/tns-template-hello-world
je reçois un document JSON retour. Le navigateur utilise le proxy sur mon réseau, je suppose que NativeScript n'est pas pour une raison quelconque. NPM est configuré pour utiliser un proxy, npm config list
contient cette section
; userconfig C:\Users\xxx\.npmrc
https-proxy = "http://xxx.xxx.xxx.xxx:xxxxx/"
proxy = "http://xxx.xxx.xxx.xxx:xxxxx/"
Ainsi, si NativeScript utilisera ces informations proxy UserConfig? Y at-il quelque chose que j'ai besoin de configurer dans NativeScript pour l'utilisation de proxy?
J'ai recherché la documentation de nativescript.org, mais s'il y a des informations, je ne la trouve pas parmi tous les résultats pour leur objet proxy javascript.
J'ai également essayé de placer la configuration via
npm config add proxy http://xxx.xxx.xxx.xxx:xxxxx --global
npm config add https-proxy http://xxx.xxx.xxx.xxx:xxxxx --global
qui ne permet pas.