偶尔兴趣之coffeescript

我对于npm install之类的东西有点恐惧,
因为node.js让我无所适从,一个前端的js竟然能够做后端服务器,真实令人惊讶。然而,我对于node之类的了解也就止步于此了
昨天在elance的群里看到有大神说道coffeescript对javascript做了很多的优化,心想,反正早晚都会用到,做后端的再不济也得有点前端的技能吧

于是登陆到coffeescript.org来查看

有木有windows安装包? 木有
有木有绿色版? 没搞懂

搞懂的是coffeescript是npm管理的,必须得下载node.js
乖乖的去下了node.js

然后按照官方的npm install -g coffee-script

咋回事》》》》 怎么报错?

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 '-g',
1 verbose cli 'coffee-script' ]
2 info using [email protected]
3 info using [email protected]
4 verbose node symlink C:\Program Files\nodejs\node.exe
5 verbose cache add [ 'coffee-script', null ]
6 verbose cache add name=undefined spec="coffee-script" args=["coffee-script",null]
7 verbose parsed url { protocol: null,
7 verbose parsed url slashes: null,
7 verbose parsed url auth: null,
7 verbose parsed url host: null,
7 verbose parsed url port: null,
7 verbose parsed url hostname: null,
7 verbose parsed url hash: null,
7 verbose parsed url search: null,
7 verbose parsed url query: null,
7 verbose parsed url pathname: 'coffee-script',
7 verbose parsed url path: 'coffee-script',
7 verbose parsed url href: 'coffee-script' }
8 silly lockFile ab358269-coffee-script coffee-script
9 verbose lock coffee-script C:\Users\Administrator\AppData\Roaming\npm-cache\ab358269-coffee-script.lock
10 silly lockFile ab358269-coffee-script coffee-script
11 silly lockFile ab358269-coffee-script coffee-script
12 verbose addNamed [ 'coffee-script', '' ]
13 verbose addNamed [ null, '' ]
14 silly lockFile 53951495-coffee-script coffee-script@
15 verbose lock coffee-script@ C:\Users\Administrator\AppData\Roaming\npm-cache\53951495-coffee-script.lock
16 silly addNameRange { name: 'coffee-script', range: '
', hasData: false }
17 verbose url raw coffee-script
18 verbose url resolving [ 'https://registry.npmjs.org/', './coffee-script' ]
19 verbose url resolved https://registry.npmjs.org/coffee-script
20 info trying registry request attempt 1 at 12:06:29
21 http GET https://registry.npmjs.org/coffee-script
22 info retry will retry, error on last attempt: Error: getaddrinfo EAGAIN
23 info trying registry request attempt 2 at 12:06:39
24 http GET https://registry.npmjs.org/coffee-script
25 info retry will retry, error on last attempt: Error: getaddrinfo EAGAIN
26 info trying registry request attempt 3 at 12:07:39
27 http GET https://registry.npmjs.org/coffee-script
28 silly lockFile 53951495-coffee-script coffee-script@
29 silly lockFile 53951495-coffee-script coffee-script@
30 error Error: getaddrinfo EAGAIN
30 error at errnoException (dns.js:37:11)
30 error at Object.onanswer [as oncomplete] (dns.js:124:16)
31 error If you need help, you may report this entire log,
31 error including the npm and node versions, at:
31 error http://github.com/npm/npm/issues
32 error System Windows_NT 6.2.9200
33 error command "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "coffee-script"
34 error cwd F:\github
35 error node -v v0.10.28
36 error npm -v 1.4.9
37 error syscall getaddrinfo
38 error code EAGAIN
39 error errno EAGAIN
40 verbose exit [ 1, true ]

对上面的代码无语,表示 看不懂
我左查查右查查,发现是不是下载不下来,看样子不是。
那是则么回事?

再仔细看路径,是不是没有权限?
那用powershell试试 仍然不行

那到底是怎么回事情?
难道是没有以管理员权限运行?

忘记说明了,我的电脑操作系统是win8.1

那就右键以管理员权限运行命令行看看 再次输入npm install -g coffee-script 命令

结果ok,
由于太高兴,忘记截图,所以大家就看看上面斜体粗字,解决在UAC下的问题

你可能感兴趣的:(软件安装,windows,npm,coffeescript)