无法在我的公司网络中安装expressjs [英] unable to install expressjs in my corporate network

查看:71
本文介绍了无法在我的公司网络中安装expressjs的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

安装节点js版本0.12.7后我无法安装快递js,

请查看下面提到的错误日志 -



< 0信息如果它以ok结束它是否有用

1 verbose cli ['C:\\Program Files \\\\
odejs \\\\\\
ode.exe ',

1详细的cli'C:\\Program Files \\ node \\\\
ode_modules \\ nnpm \\\\\\\ nnpm-cli。 js',

1详细cli'安装',

1详细cli'express',

1 verbose cli'--save']

2信息使用npm@2.11.3

3信息使用node@v0.12.7

4详细安装初始加载C:\ inetpub\wwwroot\Test\package.json

5只详细readDependencies装在C依赖:\inetpub\wwwroot\RTest\package.json

6傻高速添加args ['express@~4.0.0',null]

7详细缓存添加规格快递@ ~4.0.0

8傻高速添加解析规范{raw:'express@~4.0.0',

8傻高速添加范围:null,

8傻高速添加名称:'快递',

8傻高速添加rawSpec:'~4.0.0',

8傻高速添加规格:' > = 4.0.0< 4.1.0',

8愚蠢缓存添加类型:'范围'}

9傻addNamed express @> = 4.0.0 < 4.1.0

10 verbose addNamed"> = 4.0.0< 4.1.0"是一个有效的semver范围快递

11傻addNameRange {名称:'express',范围:'> = 4.0.0< 4.1.0',hasData:false}

12傻mapToRegistry名称快递

13使用默认注册表的傻mapToRegistry

14傻mapToRegistry注册表http://registry.npms.org/

15傻傻的mapToRegistry uri http://registry.npms.org/express

16详细的addNameRange注册表:http://registry.npms.org/express不在飞行中;获取

17详细请求uri http://registry.npms.org/express

18详细请求无需身份验证

19信息尝试注册表请求尝试#1于12:33:54 PM

20详细请求ID 3ad9f6b042727f66

21 http请求获取http://registry.npms.org/express

22信息重试将重试,最后一次尝试时出错:错误:getaddrinfo ENOTFOUND 10.123.26.113.tpt.com

23信息尝试注册请求尝试#2于12:34:04 PM

24 http请求获取http://registry.npms.org/express

25信息重试将重试,最后一次尝试时出错:错误:getaddrinfo ENOTFOUND 10.123.26.113。 tpt.com

26信息尝试注册请求尝试#3在12:35:04 PM

27 http请求获取http://registry.npms.org/express

28详细堆栈错误:getaddrinfo ENOTFOUND 10.123.26.113.tpt.com

28 verbose stack at errnoException(dns.js:44:10)

28 GetAddrInfoReqWrap.onlookup上的详细堆栈[as oncomp勒特](dns.js:94:26)

29详细CWD C:\inetpub\wwwroot\Test

30错误Windows_NT 6.1.7601

31 error argv" C:\\Program Files \\\\
odejs \\\\\\
ode.exe" C:\\Program Files \\\\
odejs \\\\
ode_modules \\\\
pm \\bin \\\\
npm-cli.js" "安装" "快速" " - save"

32错误节点v0.12.7

33错误npm v2.11.3

34错误代码ENOTFOUND

35错误错误号ENOTFOUND

36错误的系统调用的getaddrinfo

37错误网络的getaddrinfo ENOTFOUND 10.123.26.113.tpt.com

37错误网络这很可能不是npm本身的问题

37错误网络并且与网络连接有关。

37错误网络在大多数情况下,你是在代理或支持糟糕的网络设置。

37错误网络

37错误网络如果你是代理,请确保

37错误网络' proxy'config设置正确。请参阅:'npm help config'

38详细退出[1,true]>

I am unable to install express js after installing node js version 0.12.7,
Please look into the below mentioned error logs-

<0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'install',
1 verbose cli 'express',
1 verbose cli '--save' ]
2 info using npm@2.11.3
3 info using node@v0.12.7
4 verbose install initial load of C:\inetpub\wwwroot\Test\package.json
5 verbose readDependencies loading dependencies from C:\inetpub\wwwroot\RTest\package.json
6 silly cache add args [ 'express@~4.0.0', null ]
7 verbose cache add spec express@~4.0.0
8 silly cache add parsed spec { raw: 'express@~4.0.0',
8 silly cache add scope: null,
8 silly cache add name: 'express',
8 silly cache add rawSpec: '~4.0.0',
8 silly cache add spec: '>=4.0.0 <4.1.0',
8 silly cache add type: 'range' }
9 silly addNamed express@>=4.0.0 <4.1.0
10 verbose addNamed ">=4.0.0 <4.1.0" is a valid semver range for express
11 silly addNameRange { name: 'express', range: '>=4.0.0 <4.1.0', hasData: false }
12 silly mapToRegistry name express
13 silly mapToRegistry using default registry
14 silly mapToRegistry registry http://registry.npms.org/
15 silly mapToRegistry uri http://registry.npms.org/express
16 verbose addNameRange registry:http://registry.npms.org/express not in flight; fetching
17 verbose request uri http://registry.npms.org/express
18 verbose request no auth needed
19 info attempt registry request try #1 at 12:33:54 PM
20 verbose request id 3ad9f6b042727f66
21 http request GET http://registry.npms.org/express
22 info retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND 10.123.26.113.tpt.com
23 info attempt registry request try #2 at 12:34:04 PM
24 http request GET http://registry.npms.org/express
25 info retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND 10.123.26.113.tpt.com
26 info attempt registry request try #3 at 12:35:04 PM
27 http request GET http://registry.npms.org/express
28 verbose stack Error: getaddrinfo ENOTFOUND 10.123.26.113.tpt.com
28 verbose stack at errnoException (dns.js:44:10)
28 verbose stack at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:94:26)
29 verbose cwd C:\inetpub\wwwroot\Test
30 error Windows_NT 6.1.7601
31 error argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "express" "--save"
32 error node v0.12.7
33 error npm v2.11.3
34 error code ENOTFOUND
35 error errno ENOTFOUND
36 error syscall getaddrinfo
37 error network getaddrinfo ENOTFOUND 10.123.26.113.tpt.com
37 error network This is most likely not a problem with npm itself
37 error network and is related to network connectivity.
37 error network In most cases you are behind a proxy or have bad network settings.
37 error network
37 error network If you are behind a proxy, please make sure that the
37 error network 'proxy' config is set properly. See: 'npm help config'
38 verbose exit [ 1, true ]>

推荐答案

最后我将问题解决了来自网络小伙的帮助

strict-ssl = false

proxy = http://代理的IP地址:8088

https-proxy = https ://代理的IP地址:8088
注册表= http://registry.npmjs.org/
Finally i got the issue resolved with the help from network guy
strict-ssl=false
proxy = http://ip address of proxy:8088
https-proxy = https://ip address of proxy:8088
registry = http://registry.npmjs.org/


这篇关于无法在我的公司网络中安装expressjs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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