`npm outdated -g` does not work, error happens - npm

If I checck global npm packages if up-to-date, facing issues:
C:\Users\Xin>npm outdated -g
npm ERR! Cannot read property 'length' of undefined
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Xin\AppData\Roaming\npm-cache\_logs\2019-05-16T09_34_44_582Z-debug.log
The error log as below:
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Users\\Xin\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'outdated',
1 verbose cli '--global' ]
2 info using npm#6.9.0
3 info using node#v10.15.3
4 verbose npm-session 2407c2fb873b413f
5 http fetch GET 304 https://registry.npmjs.org/audit-ci 721ms (from cache)
6 silly pacote registry packument for audit-ci#1.4.1 fetched in 740ms
7 http fetch GET 304 https://registry.npmjs.org/depcheck 720ms (from cache)
8 silly pacote registry packument for depcheck#0.7.2 fetched in 741ms
9 http fetch GET 304 https://registry.npmjs.org/gulp 723ms (from cache)
10 silly pacote registry packument for gulp#4.0.0 fetched in 744ms
11 http fetch GET 304 https://registry.npmjs.org/npm-check 722ms (from cache)
12 silly pacote registry packument for npm-check#5.9.0 fetched in 746ms
13 http fetch GET 304 https://registry.npmjs.org/node-gyp 734ms (from cache)
14 silly pacote registry packument for node-gyp#4.0.0 fetched in 756ms
15 http fetch GET 304 https://registry.npmjs.org/prettier 733ms (from cache)
16 silly pacote registry packument for prettier#1.16.4 fetched in 759ms
17 http fetch GET 304 https://registry.npmjs.org/yarn 737ms (from cache)
18 silly pacote registry packument for yarn#1.13.0 fetched in 766ms
19 http fetch GET 304 https://registry.npmjs.org/pm2 748ms (from cache)
20 silly pacote registry packument for pm2#3.4.0 fetched in 776ms
21 http fetch GET 304 https://registry.npmjs.org/npm 767ms (from cache)
22 silly pacote registry packument for npm#6.9.0 fetched in 805ms
23 verbose stack TypeError: Cannot read property 'length' of undefined
23 verbose stack at dotindex (C:\Users\Xin\AppData\Roaming\npm\node_modules\npm\node_modules\text-table\index.js:59:32)
23 verbose stack at C:\Users\Xin\AppData\Roaming\npm\node_modules\npm\node_modules\text-table\index.js:11:21
23 verbose stack at Array.forEach (<anonymous>)
23 verbose stack at forEach (C:\Users\Xin\AppData\Roaming\npm\node_modules\npm\node_modules\text-table\index.js:73:31)
23 verbose stack at C:\Users\Xin\AppData\Roaming\npm\node_modules\npm\node_modules\text-table\index.js:10:9
23 verbose stack at Array.reduce (<anonymous>)
23 verbose stack at reduce (C:\Users\Xin\AppData\Roaming\npm\node_modules\npm\node_modules\text-table\index.js:63:30)
23 verbose stack at module.exports (C:\Users\Xin\AppData\Roaming\npm\node_modules\npm\node_modules\text-table\index.js:9:20)
23 verbose stack at C:\Users\Xin\AppData\Roaming\npm\node_modules\npm\lib\outdated.js:130:16
23 verbose stack at cb (C:\Users\Xin\AppData\Roaming\npm\node_modules\npm\node_modules\slide\lib\async-map.js:47:24)
23 verbose stack at outdated_ (C:\Users\Xin\AppData\Roaming\npm\node_modules\npm\lib\outdated.js:221:12)
23 verbose stack at skip (C:\Users\Xin\AppData\Roaming\npm\node_modules\npm\lib\outdated.js:343:5)
23 verbose stack at updateDeps (C:\Users\Xin\AppData\Roaming\npm\node_modules\npm\lib\outdated.js:446:7)
23 verbose stack at tryCatcher (C:\Users\Xin\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\util.js:16:23)
23 verbose stack at Promise.successAdapter [as _fulfillmentHandler0] (C:\Users\Xin\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\nodeify.js:23:30)
23 verbose stack at Promise._settlePromise (C:\Users\Xin\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\promise.js:566:21)
24 verbose cwd C:\Users\Xin
25 verbose Windows_NT 10.0.17763
26 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Xin\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "outdated" "--global"
27 verbose node v10.15.3
28 verbose npm v6.9.0
29 error Cannot read property 'length' of undefined
30 verbose exit [ 1, true ]

Related

v8.h missing from node-gyp

I am getting the error above when executing "yarn bootstrap" inside a forked/clones repository from truffle (https://github.com/swisstackle/truffle) . I forked the repo from https://github.com/trufflesuite/truffle
Here is the last logfile:
0 verbose cli [
0 verbose cli 'C:\\Program Files\\nodejs\\node.exe',
0 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
0 verbose cli 'exec',
0 verbose cli '--',
0 verbose cli 'run',
0 verbose cli 'rebuild'
0 verbose cli ]
1 info using npm#8.3.1
2 info using node#v16.14.0
3 timing npm:load:whichnode Completed in 0ms
4 timing config:load:defaults Completed in 4ms
5 timing config:load:file:C:\Program Files\nodejs\node_modules\npm\npmrc Completed in 4ms
6 timing config:load:builtin Completed in 4ms
7 timing config:load:cli Completed in 3ms
8 timing config:load:env Completed in 7ms
9 timing config:load:file:C:\Users\alain\Git\truffle\node_modules\ursa-optional\.npmrc Completed in 1ms
10 timing config:load:project Completed in 3ms
11 timing config:load:file:C:\Users\alain\.npmrc Completed in 0ms
12 timing config:load:user Completed in 1ms
13 timing config:load:file:C:\Users\alain\AppData\Roaming\npm\etc\npmrc Completed in 1ms
14 timing config:load:global Completed in 1ms
15 timing config:load:validate Completed in 4ms
16 timing config:load:credentials Completed in 1ms
17 timing config:load:setEnvs Completed in 2ms
18 timing config:load Completed in 32ms
19 timing npm:load:configload Completed in 33ms
20 timing npm:load:setTitle Completed in 2ms
21 timing config:load:flatten Completed in 5ms
22 timing npm:load:display Completed in 6ms
23 verbose logfile C:\Users\alain\AppData\Local\npm-cache\_logs\2022-05-20T06_19_01_219Z-debug-0.log
24 timing npm:load:logFile Completed in 7ms
25 timing npm:load:timers Completed in 0ms
26 timing npm:load:configScope Completed in 0ms
27 timing npm:load Completed in 50ms
28 silly logfile start cleaning logs, removing 21 files
29 silly logfile error removing log file C:/Users/alain/AppData/Local/npm-cache/_logs/2022-05-20T05_54_36_838Z-debug-0.log [Error: EPERM: operation not permitted, unlink 'C:\Users\alain\AppData\Local\npm-cache\_logs\2022-05-20T05_54_36_838Z-debug-0.log'] {
29 silly logfile errno: -4048,
29 silly logfile code: 'EPERM',
29 silly logfile syscall: 'unlink',
29 silly logfile path: 'C:\\Users\\alain\\AppData\\Local\\npm-cache\\_logs\\2022-05-20T05_54_36_838Z-debug-0.log'
29 silly logfile }
30 silly logfile error removing log file C:/Users/alain/AppData/Local/npm-cache/_logs/2022-05-20T05_54_38_424Z-debug-0.log [Error: EPERM: operation not permitted, unlink 'C:\Users\alain\AppData\Local\npm-cache\_logs\2022-05-20T05_54_38_424Z-debug-0.log'] {
30 silly logfile errno: -4048,
30 silly logfile code: 'EPERM',
30 silly logfile syscall: 'unlink',
30 silly logfile path: 'C:\\Users\\alain\\AppData\\Local\\npm-cache\\_logs\\2022-05-20T05_54_38_424Z-debug-0.log'
30 silly logfile }
31 http fetch GET 200 https://registry.yarnpkg.com/run 265ms (cache revalidated)
32 timing arborist:ctor Completed in 1ms
33 timing arborist:ctor Completed in 0ms
34 timing arborist:ctor Completed in 0ms
35 silly logfile error removing log file C:/Users/alain/AppData/Local/npm-cache/_logs/2022-05-20T05_54_40_145Z-debug-0.log [Error: EPERM: operation not permitted, unlink 'C:\Users\alain\AppData\Local\npm-cache\_logs\2022-05-20T05_54_40_145Z-debug-0.log'] {
35 silly logfile errno: -4048,
35 silly logfile code: 'EPERM',
35 silly logfile syscall: 'unlink',
35 silly logfile path: 'C:\\Users\\alain\\AppData\\Local\\npm-cache\\_logs\\2022-05-20T05_54_40_145Z-debug-0.log'
35 silly logfile }
36 timing command:exec Completed in 373ms
37 verbose exit 1
38 timing npm Completed in 1242ms
39 verbose code 1
Ive tried multiple things that are recomended on stack overflow or other websites:
install sqlite3 manually. It looks like the earlier in the output in the commandline it says error C:\Users\alain\Git\truffle\node_modules\sqlite3: Command failed.
change yarn versions
reclone and rerun the whole thing
clear the npm cache
Install sqlite3 manually: Yarn add sqlite3 -W
Anything else I could try? I am just following the contributions.md tutorial on https://github.com/trufflesuite/truffle/blob/develop/CONTRIBUTING.md
Update: I have made some progress:
Due to the log file, I figured out that the v8.h in node-gyp was missing. I reinstalled node-gyp and that resolved the issue.
The next error that was coming up that the some file in the scripts folder of truffle still had windows white spaces, so I removed them with sed -i 's/\r//g' and that resolved the issue
Then, another issue came up, which I couldnt solve yet:
When yarn tries to build the truffle dashboard package, I am getting the error 'DISABLE_ESLINT_PLUGIN' is not recognized as an internal or external command
which is used in the package.json to run react-scripts without eslint
According to react-scripts, this tag was added with the version 4.0.2, but the package.json in the dashboard package references version 4.0.0 for react-scripts. This is a little bit confusing to me, because how could the developers at consensys build the dashboard package with this tag, if they use version 4.0.0? I will open up a separate question for that.Pro
The issue was that node-gyp had v8.h missing: I quickly resolved that be reinstalling nodegyp: npm install node-gyp -g
However, there were coming up to more errors afterwards that are unrelated to the original error. More details in the question text that I updated. I will make a seperate question for these errors.

What could cause a 400 Bad Request when publishing to npm?

Running into an issue today publishing npm. This worked ok for me the other day but today I'm getting this relevant portion of the log.
33 notice shasum: 9c4a2518ad868612345bf7c9dbb9e9d8e85aa4ea
33 notice integrity: sha512-n1mlshzLfrmSY[...]Xw1ESWu2jL2Jg==
33 notice total files: 390
34 notice
35 timing command:publish Completed in 924ms
36 verbose stack HttpErrorGeneral: 400 Bad Request - PUT http://registry.npmjs.org/ids$
36 verbose stack at /Users/tmcconechy/.nvm/versions/node/v14.16.0/lib/node_modules$
36 verbose stack at async publish (/Users/tmcconechy/.nvm/versions/node/v14.16.0/l$
36 verbose stack at async Publish.publish (/Users/tmcconechy/.nvm/versions/node/v1$
37 verbose statusCode 400
38 verbose pkgid ids-enterprise-wc#0.0.0-beta.11
39 verbose cwd /Users/tmcconechy/Dev/enterprise-wc2/dist
40 verbose Darwin 20.4.0
41 verbose argv "/Users/tmcconechy/.nvm/versions/node/v14.16.0/bin/node" "/Users/tmcco$
42 verbose node v14.16.0
43 verbose npm v7.11.2
44 error code E400
45 error 400 Bad Request - PUT http://registry.npmjs.org/ids-enterprise-wc
46 verbose exit 1
I tried npm login and a few other things but just not understanding what this could be. It happens in 5 different repos i work on...
Any suggestions?

NPM Can't Publish E400 New package version must have dist with {shasum, tarball}

I have this issue that all of a sudden I can not publish to npm anymore.
I get the following error when running npm publish
NPM Can't Publish E400 New package version must have dist with {shasum, tarball}
I don't know what I can do about it and I found nothing on the internet. I did do an npm version minor on a different mac and forgot to npm publish. So I am try to publish from a different mac. However I tried creating a patch version and still got the same error. Any Help? I attached the logs below.
This file does not exist
/var/folders/b1/qwvr4ldn1_375rkwn7yhyk4m0000gn/T/npm-6060-1b2f34a9/tmp/fromDir-157455b2/package.tgz
However I don't know how to create it, and I tried to delete the tag and the commit and do an npm version minor again. It works fine, but when I do npm publish afterwards, I get the same error again.
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node/9.8.0/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'publish' ]
2 info using npm#5.6.0
3 info using node#v9.8.0
4 verbose npm-session 009a09b3734b2310
5 verbose publish [ '.' ]
6 info lifecycle html5sortable#0.8.0~prepublish: html5sortable#0.8.0
7 info lifecycle html5sortable#0.8.0~prepare: html5sortable#0.8.0
8 info lifecycle html5sortable#0.8.0~prepublishOnly: html5sortable#0.8.0
9 info lifecycle html5sortable#0.8.0~prepack: html5sortable#0.8.0
10 info lifecycle html5sortable#0.8.0~postpack: html5sortable#0.8.0
11 verbose getPublishConfig undefined
12 silly mapToRegistry name html5sortable
13 silly mapToRegistry using default registry
14 silly mapToRegistry registry https://registry.npmjs.org/
15 silly mapToRegistry data { type: 'tag',
15 silly mapToRegistry registry: true,
15 silly mapToRegistry where: undefined,
15 silly mapToRegistry raw: 'html5sortable',
15 silly mapToRegistry name: 'html5sortable',
15 silly mapToRegistry escapedName: 'html5sortable',
15 silly mapToRegistry scope: undefined,
15 silly mapToRegistry rawSpec: '',
15 silly mapToRegistry saveSpec: null,
15 silly mapToRegistry fetchSpec: 'latest',
15 silly mapToRegistry gitRange: undefined,
15 silly mapToRegistry gitCommittish: undefined,
15 silly mapToRegistry hosted: undefined }
16 silly mapToRegistry uri https://registry.npmjs.org/html5sortable
17 verbose publish registryBase https://registry.npmjs.org/
18 silly publish uploading /var/folders/b1/qwvr4ldn1_375rkwn7yhyk4m0000gn/T/npm-6060-1b2f34a9/tmp/fromDir-157455b2/package.tgz
19 verbose request uri https://registry.npmjs.org/html5sortable
20 verbose request sending authorization for write operation
21 info attempt registry request try #1 at 1:09:12 PM
22 verbose request using bearer token for auth
23 verbose request id gda9f5bf7619f2e
24 http request PUT https://registry.npmjs.org/html5sortable
25 http 400 https://registry.npmjs.org/html5sortable
26 verbose headers { 'content-type': 'application/json',
26 verbose headers 'cache-control': 'max-age=300',
26 verbose headers 'content-length': '86',
26 verbose headers 'accept-ranges': 'bytes',
26 verbose headers date: 'Sat, 10 Mar 2018 12:09:12 GMT',
26 verbose headers via: '1.1 varnish',
26 verbose headers connection: 'keep-alive',
26 verbose headers 'x-served-by': 'cache-hhn1520-HHN',
26 verbose headers 'x-cache': 'MISS',
26 verbose headers 'x-cache-hits': '0',
26 verbose headers 'x-timer': 'S1520683750.327475,VS0,VE1855',
26 verbose headers vary: 'Accept-Encoding, Accept' }
27 error publish Failed PUT 400
28 verbose stack Error: New package version must have dist with {shasum, tarball}. : html5sortable
28 verbose stack at makeError (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:314:12)
28 verbose stack at RegClient.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:302:14)
28 verbose stack at Request._callback (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:216:14)
28 verbose stack at Request.self.callback (/usr/local/lib/node_modules/npm/node_modules/request/request.js:186:22)
28 verbose stack at Request.emit (events.js:180:13)
28 verbose stack at Request.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/request.js:1163:10)
28 verbose stack at Request.emit (events.js:180:13)
28 verbose stack at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/request.js:1085:12)
28 verbose stack at Object.onceWrapper (events.js:272:13)
28 verbose stack at IncomingMessage.emit (events.js:185:15)
28 verbose stack at endReadableNT (_stream_readable.js:1101:12)
28 verbose stack at process._tickCallback (internal/process/next_tick.js:114:19)
29 verbose statusCode 400
30 verbose pkgid html5sortable
31 verbose cwd /Users/lukasoppermann/Code/html5sortable
32 verbose Darwin 16.7.0
33 verbose argv "/usr/local/Cellar/node/9.8.0/bin/node" "/usr/local/bin/npm" "publish"
34 verbose node v9.8.0
35 verbose npm v5.6.0
36 error code E400
37 error New package version must have dist with {shasum, tarball}. : html5sortable
38 verbose exit [ 1, true ]
I had a dist field in my package.json which was messing with the publish process. So removing it solved everything.
You can try,
ng init
where you have the field package.json

Apache CouchDB + npm-registry-couchapp debugging configuration = cannot npm install

Currently I'm in the process of creating a private npm registry. I've got couchdb set up and is replicating, as I have verified using the couchdb curl request /_all_docs, which returns what appears to be the entire list of libs stored on NPM. The problem I'm having is that I cannot seem to run an npm install. When I comment out the assignment of the registry variable in .npmrc, I can install without issue.
Here are the relevant lines from .npmrc:
registry = http://localhost:5984/registry/_design/app/_rewrite
npmjs.org:couch = http://<user>:<password>#127.0.0.1:5984/registry
I've added the recommended lines to local.ini, I'm using npm-registry-couchapp and have followed all directions there as well.
When I attempt npm install in the terminal, it hangs up on the following step: fetchMetadata: sill install loadAllDepsIntoIdealTree
The following command also fails, npm \
--registry=http://localhost:5984/registry/_design/app/_rewrite \
install node-sass
Here's the output from the npm debug log:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'install' ]
2 info using npm#5.5.1
3 info using node#v6.11.4
4 verbose npm-session 28055a10e204f6fe
5 silly install runPreinstallTopLevelLifecycles
6 silly preinstall npm-registry-couchapp#2.7.0
7 info lifecycle npm-registry-couchapp#2.7.0~preinstall: npm-registry-couchapp#2.7.0
8 silly install loadCurrentTree
9 silly install readLocalPackageData
10 silly install loadIdealTree
11 silly install cloneCurrentTreeToIdealTree
12 silly install loadShrinkwrap
13 silly install loadAllDepsIntoIdealTree
14 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/request 70119ms attempt #3
15 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/rimraf 70114ms attempt #3
16 silly fetchPackageMetaData error for request#^2.42.0 500 Internal Server Error: request#^2.42.0
17 silly fetchPackageMetaData error for rimraf#~2.2.6 500 Internal Server Error: rimraf#~2.2.6
18 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/parse-json-response 70120ms attempt #3
19 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/which 70115ms attempt #3
20 silly fetchPackageMetaData error for parse-json-response#^1.0.1 500 Internal Server Error: parse-json-response#^1.0.1
21 silly fetchPackageMetaData error for which#^1.0.5 500 Internal Server Error: which#^1.0.5
22 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/couchapp 70119ms attempt #3
23 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/json 70119ms attempt #3
24 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/semver 70117ms attempt #3
25 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/tap 70124ms attempt #3
26 silly fetchPackageMetaData error for couchapp#~0.11.0 500 Internal Server Error: couchapp#~0.11.0
27 silly fetchPackageMetaData error for json#^9.0.2 500 Internal Server Error: json#^9.0.2
28 silly fetchPackageMetaData error for semver#4 500 Internal Server Error: semver#4
29 silly fetchPackageMetaData error for tap#* 500 Internal Server Error: tap#*
30 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/semver 70032ms attempt #3
31 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/json 70034ms attempt #3
32 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/couchapp 70035ms attempt #3
33 silly fetchPackageMetaData error for semver#4 500 Internal Server Error: semver#4
34 silly fetchPackageMetaData error for json#^9.0.2 500 Internal Server Error: json#^9.0.2
35 silly fetchPackageMetaData error for couchapp#~0.11.0 500 Internal Server Error: couchapp#~0.11.0
36 verbose stack Error: 500 Internal Server Error: semver#4
36 verbose stack at fetch.then.res (/usr/local/lib/node_modules/npm/node_modules/pacote/lib/fetchers/registry/fetch.js:42:19)
36 verbose stack at tryCatcher (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/util.js:16:23)
36 verbose stack at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:512:31)
36 verbose stack at Promise._settlePromise (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:569:18)
36 verbose stack at Promise._settlePromise0 (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:614:10)
36 verbose stack at Promise._settlePromises (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:693:18)
36 verbose stack at Async._drainQueue (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:133:16)
36 verbose stack at Async._drainQueues (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:143:10)
36 verbose stack at Immediate.Async.drainQueues (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:17:14)
36 verbose stack at runCallback (timers.js:672:20)
36 verbose stack at tryOnImmediate (timers.js:645:5)
36 verbose stack at processImmediate [as _immediateCallback] (timers.js:617:5)
37 verbose cwd /Users/frontend/projects/npm-registry-couchapp
38 verbose Darwin 16.7.0
39 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
40 verbose node v6.11.4
41 verbose npm v5.5.1
42 error code E500
43 error 500 Internal Server Error: semver#4
44 verbose exit [ 1, true ]
If you can offer any tips about what to try next, or what to search, that would be most excellent. Also, I'm happy to add more code.
It was an easy fix - I just changed the registry link to
http://localhost:5984/registry/

Not able to install alloy

I am getting this error while trying to download alloy in titanium. It seems proxy error but i double checked there is no proxy setting.How can i get it through.
npm ERR! Error: tunneling socket could not be established, cause=getaddrinfo ENOTFOUND.
Here is the Log file
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 'alloy' ]
2 info using npm#1.2.15
3 info using node#v0.10.1
4 verbose read json C:\Users\tarak\AppData\Roaming\npm\package.json
5 verbose read json C:\Users\tarak\AppData\Roaming\npm\package.json
6 verbose cache add [ 'alloy', null ]
7 verbose cache add name=undefined spec="alloy" args=["alloy",null]
8 verbose parsed url { protocol: null,
8 verbose parsed url slashes: null,
8 verbose parsed url auth: null,
8 verbose parsed url host: null,
8 verbose parsed url port: null,
8 verbose parsed url hostname: null,
8 verbose parsed url hash: null,
8 verbose parsed url search: null,
8 verbose parsed url query: null,
8 verbose parsed url pathname: 'alloy',
8 verbose parsed url path: 'alloy',
8 verbose parsed url href: 'alloy' }
9 silly lockFile 8d809cba-alloy alloy
10 verbose lock alloy C:\Users\tarak\AppData\Roaming\npm-cache\8d809cba-alloy.lock
11 silly lockFile 8d809cba-alloy alloy
12 silly lockFile 8d809cba-alloy alloy
13 verbose addNamed [ 'alloy', '' ]
14 verbose addNamed [ null, '' ]
15 silly lockFile b2f8915b-alloy alloy#
16 verbose lock alloy# C:\Users\tarak\AppData\Roaming\npm-cache\b2f8915b-alloy.lock
17 silly addNameRange { name: 'alloy', range: '', hasData: false }
18 verbose url raw alloy
19 verbose url resolving [ 'https://registry.npmjs.org/', './alloy' ]
20 verbose url resolved https://registry.npmjs.org/alloy
21 info trying registry request attempt 1 at 18:54:45
22 http GET https://registry.npmjs.org/alloy
23 info retry will retry, error on last attempt: Error: tunneling socket could not be established, cause=getaddrinfo ENOTFOUND
24 info trying registry request attempt 2 at 18:55:03
25 http GET https://registry.npmjs.org/alloy
26 info retry will retry, error on last attempt: Error: tunneling socket could not be established, cause=getaddrinfo ENOTFOUND
27 info trying registry request attempt 3 at 18:56:05
28 http GET https://registry.npmjs.org/alloy
29 silly lockFile b2f8915b-alloy alloy#
30 silly lockFile b2f8915b-alloy alloy#
31 error Error: tunneling socket could not be established, cause=getaddrinfo ENOTFOUND
31 error at ClientRequest.onError (c:\Program Files\nodejs\node_modules\npm\node_modules\request\tunnel.js:161:17)
31 error at ClientRequest.g (events.js:175:14)
31 error at ClientRequest.EventEmitter.emit (events.js:95:17)
31 error at CleartextStream.socketErrorListener (http.js:1500:9)
31 error at CleartextStream.EventEmitter.emit (events.js:95:17)
31 error at Socket.onerror (tls.js:1336:17)
31 error at Socket.EventEmitter.emit (events.js:117:20)
31 error at net.js:807:16
31 error at process._tickCallback (node.js:415:13)
32 error If you need help, you may report this log at:
32 error <http://github.com/isaacs/npm/issues>
32 error or email it to:
32 error <npm-#googlegroups.com>
33 error System Windows_NT 6.1.7600
34 error command "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "alloy"
35 error cwd C:\Users\tarak
36 error node -v v0.10.1
37 error npm -v 1.2.15
38 error code ECONNRESET
39 verbose exit [ 1, true ]