c9 / core

Cloud9 Core - Part of the Cloud9 SDK for Plugin Development https://c9.github.io/core/ https://c9.io
Other
2.56k stars 921 forks source link

c9 optimist error on fresh install on gcloud #271

Closed Hectorahinojosa closed 8 years ago

Hectorahinojosa commented 8 years ago

I git cloned into my gcloud server and it said it was installed succesfully but when i run 'node server.js -p 8080 -a' i receive this error:

module.js:340 throw err; ^ Error: Cannot find module 'optimist' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object. (/var/www/c9sdk/server.js:11:16) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10)

I tried runing the install.sh separately and an npm install on its own but nothing. The error log shows the following:

5742 silly gunzTarPerm extractEntry from_ts_all.sh 5743 silly gunzTarPerm modified mode [ 'from_ts_all.sh', 509, 493 ] 5744 silly gunzTarPerm extractEntry package.json 5745 silly gunzTarPerm modified mode [ 'package.json', 436, 420 ] 5746 silly lockFile 6ed451e3--8804442624095827-tmp-tgz-unpack tar:///tmp/npm-14799-7X3mGghi/1457979554697-0.8804442 624095827/tmp.tgz-unpack 5747 silly lockFile 6ed451e3--8804442624095827-tmp-tgz-unpack tar:///tmp/npm-14799-7X3mGghi/1457979554697-0.8804442 624095827/tmp.tgz-unpack 5748 silly lockFile 0b49b561-54697-0-8804442624095827-tmp-tgz tar:///tmp/npm-14799-7X3mGghi/1457979554697-0.8804442 624095827/tmp.tgz 5749 silly lockFile 0b49b561-54697-0-8804442624095827-tmp-tgz tar:///tmp/npm-14799-7X3mGghi/1457979554697-0.8804442 624095827/tmp.tgz 5750 silly lockFile 807adb08-b-com-cloud9ide-tern-from-ts-git git://github.com/cloud9ide/tern_from_ts.git 5751 silly lockFile 807adb08-b-com-cloud9ide-tern-from-ts-git git://github.com/cloud9ide/tern_from_ts.git 5752 error Error: invalid tar file 5752 error at Extract.Parse._startEntry (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.js:145:13) 5752 error at Extract.Parse._process (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.js:127:12) 5752 error at BlockStream. (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.js:47:8) 5752 error at BlockStream.emit (events.js:95:17) 5752 error at BlockStream._emitChunk (/usr/lib/node_modules/npm/node_modules/block-stream/block-stream.js:145:1 0) 5752 error at BlockStream.resume (/usr/lib/node_modules/npm/node_modules/block-stream/block-stream.js:58:15) 5752 error at Extract.Reader.resume (/usr/lib/node_modules/npm/node_modules/fstream/lib/reader.js:255:34) 5752 error at Entry. (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.js:257:8) 5752 error at Entry.emit (events.js:92:17) 5752 error at Entry.resume (/usr/lib/node_modules/npm/node_modules/tar/lib/entry.js:92:8) 5753 error If you need help, you may report this entire log, 5753 error including the npm and node versions, at: 5753 error http://github.com/npm/npm/issues 5754 error System Linux 3.16.0-0.bpo.4-amd64 5755 error command "/usr/bin/node" "/usr/bin/npm" "install" 5756 error cwd /var/www/c9sdk 5757 error node -v v0.10.35 5758 error npm -v 1.4.28 5759 verbose exit [ 1, true ]

Thanks for any input.

nightwing commented 8 years ago

Looks like an issue with file permissions. is npm able to write to /tmp it's cache directory and to the dir where c9sdk is installed?

Hectorahinojosa commented 8 years ago

Well part of the problem was one of the file permissions. I fixed that and tried to the ./script/install-sdk.sh and nothing. I tried an npm install and the following error was spit out.

npm WARN package.json ace_tree@0.1.0 No description npm WARN package.json ace_tree@0.1.0 No repository field. npm WARN package.json ace_tree@0.1.0 No README data npm WARN package.json kaefer@0.1.0 No repository field. npm WARN package.json kaefer@0.1.0 No README data npm WARN package.json vfs-nodefs-adapter@0.3.0 No README data npm WARN package.json vfs-lint@0.0.1 No README data npm ERR! tar.unpack untar error /tmp/npm-4405-N7psq8AG/1457983394627-0.06591285858303308/tmp.tgz npm WARN excluding symbolic link tests/filelist_fixtures/symlink-to-1.txt -> 1.txt npm WARN excluding symbolic link tests/filelist_fixtures/symlink-to-nowhere.txt -> nowhere.txt npm WARN excluding symbolic link tests/search_fixtures/symlink-to-file1.txt -> file1.txt npm ERR! Error: invalid tar file npm ERR! at Extract.Parse._startEntry (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.j s:145:13) npm ERR! at Extract.Parse._process (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.js:1 27:12) npm ERR! at BlockStream. (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.js: 47:8) npm ERR! at BlockStream.emit (events.js:95:17) npm ERR! at BlockStream._emitChunk (/usr/lib/node_modules/npm/node_modules/block-stream/block -stream.js:145:10) npm ERR! at BlockStream.resume (/usr/lib/node_modules/npm/node_modules/block-stream/block-str eam.js:58:15) npm ERR! at Extract.Reader.resume (/usr/lib/node_modules/npm/node_modules/fstream/lib/reader. js:255:34) npm ERR! at Entry. (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.js:257:8) npm ERR! at Entry.emit (events.js:92:17) npm ERR! at Entry.resume (/usr/lib/node_modules/npm/node_modules/tar/lib/entry.js:92:8) npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues npm ERR! System Linux 3.16.0-0.bpo.4-amd64 npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" npm ERR! cwd /var/www/c9sdk npm ERR! node -v v0.10.35 npm ERR! npm -v 1.4.28 npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /var/www/c9sdk/npm-debug.log npm ERR! not ok code 0

Partial npm debug log below:

3 silly gunzTarPerm modified mode [ 'defs/zone.js.json', 436, 420 ] 5734 silly gunzTarPerm extractEntry defs/zone.js.json.tmp 5735 silly gunzTarPerm modified mode [ 'defs/zone.js.json.tmp', 436, 420 ] 5736 silly gunzTarPerm extractEntry defs/zynga-scroller.json 5737 silly gunzTarPerm modified mode [ 'defs/zynga-scroller.json', 436, 420 ] 5738 silly gunzTarPerm extractEntry defs/zynga-scroller.json.tmp 5739 silly gunzTarPerm modified mode [ 'defs/zynga-scroller.json.tmp', 436, 420 ] 5740 silly gunzTarPerm extractEntry from_ts.sh 5741 silly gunzTarPerm modified mode [ 'from_ts.sh', 509, 493 ] 5742 silly gunzTarPerm extractEntry from_ts_all.sh 5743 silly gunzTarPerm modified mode [ 'from_ts_all.sh', 509, 493 ] 5744 silly gunzTarPerm extractEntry package.json 5745 silly gunzTarPerm modified mode [ 'package.json', 436, 420 ] 5746 silly lockFile 007fa015--4892510275822133-tmp-tgz-unpack tar:///tmp/npm-4405-N7psq8AG/145798 3394671-0.4892510275822133/tmp.tgz-unpack 5747 silly lockFile 007fa015--4892510275822133-tmp-tgz-unpack tar:///tmp/npm-4405-N7psq8AG/145798 3394671-0.4892510275822133/tmp.tgz-unpack 5748 silly lockFile 1035e5c3-94671-0-4892510275822133-tmp-tgz tar:///tmp/npm-4405-N7psq8AG/145798 3394671-0.4892510275822133/tmp.tgz 5749 silly lockFile 1035e5c3-94671-0-4892510275822133-tmp-tgz tar:///tmp/npm-4405-N7psq8AG/145798 3394671-0.4892510275822133/tmp.tgz 5750 silly lockFile 807adb08-b-com-cloud9ide-tern-from-ts-git git://github.com/cloud9ide/tern_fro m_ts.git 5751 silly lockFile 807adb08-b-com-cloud9ide-tern-from-ts-git git://github.com/cloud9ide/tern_fro m_ts.git 5752 error Error: invalid tar file 5752 error at Extract.Parse._startEntry (/usr/lib/node_modules/npm/node_modules/tar/lib/parse .js:145:13) 5752 error at Extract.Parse._process (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.js :127:12) 5752 error at BlockStream. (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.j s:47:8) 5752 error at BlockStream.emit (events.js:95:17) 5752 error at BlockStream._emitChunk (/usr/lib/node_modules/npm/node_modules/block-stream/blo ck-stream.js:145:10) 5752 error at BlockStream.resume (/usr/lib/node_modules/npm/node_modules/block-stream/block-s tream.js:58:15) 5752 error at Extract.Reader.resume (/usr/lib/node_modules/npm/node_modules/fstream/lib/reade r.js:255:34) 5752 error at Entry. (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.js:257: 8) 5752 error at Entry.emit (events.js:92:17) 5752 error at Entry.resume (/usr/lib/node_modules/npm/node_modules/tar/lib/entry.js:92:8) 5753 error If you need help, you may report this entire log, 5753 error including the npm and node versions, at: 5753 error http://github.com/npm/npm/issues 5754 error System Linux 3.16.0-0.bpo.4-amd64 5755 error command "/usr/bin/node" "/usr/bin/npm" "install" 5756 error cwd /var/www/c9sdk 5757 error node -v v0.10.35 5758 error npm -v 1.4.28 5759 verbose exit [ 1, true ]

Thanks for your fast reply @nightwing

nightwing commented 8 years ago

try deleting /tmp/* npm ERR! tar.unpack untar error /tmp/npm-4405-N7psq8AG/1457983394627-0.06591285858303308/tmp.tgz might be left from earlier npm install. or try npm with sudo

Hectorahinojosa commented 8 years ago

nothing still. I tried clearing tmp and running again but didnt work. I also tried sudo and sudo npm install and still nothing. Permissions have been fixed and all. I went ahead and after having fixed all permissions and clearing tmp folder making sure it was writable cloned a fresh c9sdk and tried installing and still nothing. The first ./install-sdk.sh spits this out.

Show an error: npm ERR! tar.unpack untar error /tmp/npm-9347-Cus3eLGG/1457988341932-0.42771591362543404/tmp.tgz

have no idea what it is or how to fix it.


updating plugin 64 of 64
checking out https://github.com/c9/c9.ide.guide
/var/www/c9sdk/plugins/c9.ide.guide /var/www/c9sdk
Initialized empty Git repository in /var/www/c9sdk/plugins/c9.ide.guide/.git/
remote: Counting objects: 109, done.
remote: Total 109 (delta 0), reused 0 (delta 0), pack-reused 109
Receiving objects: 100% (109/109), 27.07 KiB, done.
Resolving deltas: 100% (67/67), done.
From https://github.com/c9/c9.ide.guide
 * [new branch]      master     -> origin/master
HEAD is now at 16537f5 Fix release date
/var/www/c9sdk
--- Running npm install --------------------------------------------
npm WARN package.json ace_tree@0.1.0 No description
npm WARN package.json ace_tree@0.1.0 No repository field.
npm WARN package.json ace_tree@0.1.0 No README data
npm WARN package.json kaefer@0.1.0 No repository field.
npm WARN package.json kaefer@0.1.0 No README data
npm WARN package.json vfs-nodefs-adapter@0.3.0 No README data
npm WARN package.json vfs-lint@0.0.1 No README data
npm ERR! tar.unpack untar error /tmp/npm-9347-Cus3eLGG/1457988341932-0.42771591362543404/tmp.tgz
npm WARN excluding symbolic link tests/filelist_fixtures/symlink-to-1.txt -> 1.txt
npm WARN excluding symbolic link tests/filelist_fixtures/symlink-to-nowhere.txt -> nowhere.txt
npm WARN excluding symbolic link tests/search_fixtures/symlink-to-file1.txt -> file1.txt
npm ERR! Error: invalid tar file
npm ERR!     at Extract.Parse._startEntry (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.j
s:145:13)
npm ERR!     at Extract.Parse._process (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.js:1
27:12)
npm ERR!     at BlockStream.<anonymous> (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.js:
47:8)
npm ERR!     at BlockStream.emit (events.js:95:17)
npm ERR!     at BlockStream._emitChunk (/usr/lib/node_modules/npm/node_modules/block-stream/block
-stream.js:145:10)
npm ERR!     at BlockStream.resume (/usr/lib/node_modules/npm/node_modules/block-stream/block-str
eam.js:58:15)
npm ERR!     at Extract.Reader.resume (/usr/lib/node_modules/npm/node_modules/fstream/lib/reader.
js:255:34)
npm ERR!     at Entry.<anonymous> (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.js:257:8)
npm ERR!     at Entry.emit (events.js:92:17)
npm ERR!     at Entry.resume (/usr/lib/node_modules/npm/node_modules/tar/lib/entry.js:92:8)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>
npm ERR! System Linux 3.16.0-0.bpo.4-amd64
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /var/www/c9sdk
npm ERR! node -v v0.10.35
npm ERR! npm -v 1.4.28
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /var/www/c9sdk/npm-debug.log
npm ERR! not ok code 0
acorn
npm WARN package.json ace_tree@0.1.0 No description
npm WARN package.json ace_tree@0.1.0 No repository field.
npm WARN package.json ace_tree@0.1.0 No README data
npm WARN package.json kaefer@0.1.0 No repository field.
npm WARN package.json kaefer@0.1.0 No README data
npm WARN package.json vfs-nodefs-adapter@0.3.0 No README data
npm WARN package.json vfs-lint@0.0.1 No README data
npm WARN unmet dependency /var/www/c9sdk/node_modules/ace requires mime@'1.2.x' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /var/www/c9sdk/node_modules/architect-build requires through@'2.2.0' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /var/www/c9sdk/node_modules/architect-build requires async@'' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /var/www/c9sdk/node_modules/architect-build requires mkdirp@'' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /var/www/c9sdk/node_modules/c9 requires async@'~0.9.0' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /var/www/c9sdk/node_modules/c9 requires tmp@'~0.0.20' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /var/www/c9sdk/node_modules/connect-architect requires connect@'~2.12.0' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /var/www/c9sdk/node_modules/connect-architect requires netutil@'~0.0.1' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /var/www/c9sdk/node_modules/connect-architect requires mime@'~1.2.9' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /var/www/c9sdk/node_modules/connect-architect requires ejs@'~1.0.0' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /var/www/c9sdk/node_modules/frontdoor requires http-error@'~0.0.1' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /var/www/c9sdk/node_modules/kaefer requires engine.io@'~1.5.1' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /var/www/c9sdk/node_modules/kaefer requires engine.io-client@'~1.5.1' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /var/www/c9sdk/node_modules/smith requires msgpack-js@'~0.1.0' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /var/www/c9sdk/node_modules/vfs-local requires simple-mime@'~0.0.7' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
acorn@2.5.2 node_modules/acorn
--------------------------------------------------------------------
Success!
run 'node server.js -p 8080 -a :' to launch Cloud9
alex@xxxxx:/var/www/c9sdk$ node server.js -p 8080 -a

module.js:340
    throw err;
          ^
Error: Cannot find module 'optimist'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/var/www/c9sdk/server.js:11:16)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
nightwing commented 8 years ago

very strange, does npm install work at all, e.g. if you try npm install optimist? There may be an issue with npm cache try npm cache ls and npm cache clear

Hectorahinojosa commented 8 years ago

yup npm seems to be working fine. check out the error. same one over and over even after the commands suggested:

/var/www/c9sdk$ sudo npm install optimist
npm WARN package.json ace_tree@0.1.0 No description
npm WARN package.json ace_tree@0.1.0 No repository field.
npm WARN package.json ace_tree@0.1.0 No README data
npm WARN package.json kaefer@0.1.0 No repository field.
npm WARN package.json kaefer@0.1.0 No README data
npm WARN package.json vfs-nodefs-adapter@0.3.0 No README data
npm WARN package.json vfs-lint@0.0.1 No README data
npm WARN unmet dependency /var/www/c9sdk/node_modules/ace requires mime@'1.2.x' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /var/www/c9sdk/node_modules/architect-build requires through@'2.2.0' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /var/www/c9sdk/node_modules/architect-build requires async@'' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /var/www/c9sdk/node_modules/architect-build requires mkdirp@'' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /var/www/c9sdk/node_modules/c9 requires async@'~0.9.0' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /var/www/c9sdk/node_modules/c9 requires tmp@'~0.0.20' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /var/www/c9sdk/node_modules/connect-architect requires connect@'~2.12.0' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /var/www/c9sdk/node_modules/connect-architect requires netutil@'~0.0.1' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /var/www/c9sdk/node_modules/connect-architect requires mime@'~1.2.9' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /var/www/c9sdk/node_modules/connect-architect requires ejs@'~1.0.0' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /var/www/c9sdk/node_modules/frontdoor requires http-error@'~0.0.1' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /var/www/c9sdk/node_modules/kaefer requires engine.io@'~1.5.1' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /var/www/c9sdk/node_modules/kaefer requires engine.io-client@'~1.5.1' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /var/www/c9sdk/node_modules/smith requires msgpack-js@'~0.1.0' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /var/www/c9sdk/node_modules/vfs-local requires simple-mime@'~0.0.7' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
optimist@0.6.1 node_modules/optimist
├── wordwrap@0.0.3
└── minimist@0.0.10
alex@hah-sites:/var/www/c9sdk$ npm install 
npm WARN package.json ace_tree@0.1.0 No description
npm WARN package.json ace_tree@0.1.0 No repository field.
npm WARN package.json ace_tree@0.1.0 No README data
npm WARN package.json kaefer@0.1.0 No repository field.
npm WARN package.json kaefer@0.1.0 No README data
npm WARN package.json vfs-nodefs-adapter@0.3.0 No README data
npm WARN package.json vfs-lint@0.0.1 No README data
npm ERR! tar.unpack untar error /tmp/npm-9593-HZYZICWj/1457989103464-0.037414841586723924/tmp.tgz
npm WARN excluding symbolic link tests/filelist_fixtures/symlink-to-1.txt -> 1.txt
npm WARN excluding symbolic link tests/filelist_fixtures/symlink-to-nowhere.txt -> nowhere.txt
npm WARN excluding symbolic link tests/search_fixtures/symlink-to-file1.txt -> file1.txt
npm ERR! Error: invalid tar file
npm ERR!     at Extract.Parse._startEntry (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.js:145:13)
npm ERR!     at Extract.Parse._process (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.js:127:12)
npm ERR!     at BlockStream.<anonymous> (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.js:47:8)
npm ERR!     at BlockStream.emit (events.js:95:17)
npm ERR!     at BlockStream._emitChunk (/usr/lib/node_modules/npm/node_modules/block-stream/block-stream.js:145:10)
npm ERR!     at BlockStream.resume (/usr/lib/node_modules/npm/node_modules/block-stream/block-stream.js:58:15)
npm ERR!     at Extract.Reader.resume (/usr/lib/node_modules/npm/node_modules/fstream/lib/reader.js:255:34)
npm ERR!     at Entry.<anonymous> (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.js:257:8)
npm ERR!     at Entry.emit (events.js:92:17)
npm ERR!     at Entry.resume (/usr/lib/node_modules/npm/node_modules/tar/lib/entry.js:92:8)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 3.16.0-0.bpo.4-amd64
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /var/www/c9sdk
npm ERR! node -v v0.10.35
npm ERR! npm -v 1.4.28
npm ERR! Error: EACCES, open 'npm-debug.log'
npm ERR!  { [Error: EACCES, open 'npm-debug.log'] errno: 3, code: 'EACCES', path: 'npm-debug.log' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Linux 3.16.0-0.bpo.4-amd64
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /var/www/c9sdk
npm ERR! node -v v0.10.35
npm ERR! npm -v 1.4.28
npm ERR! path npm-debug.log
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, open 'npm-debug.log'
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /var/www/c9sdk/npm-debug.log
npm ERR! not ok code 0
alex@hah-sites:/var/www/c9sdk$ npm cache ls
~/.npm
~/.npm/_git-remotes/
~/.npm/_git-remotes/git-github-com-cloud9ide-emmet-core-git-8ccbe426/
~/.npm/_git-remotes/git-github-com-cloud9ide-emmet-core-git-8ccbe426/FETCH_HEAD
~/.npm/_git-remotes/git-github-com-cloud9ide-emmet-core-git-8ccbe426/HEAD
~/.npm/_git-remotes/git-github-com-cloud9ide-emmet-core-git-8ccbe426/branches/
~/.npm/_git-remotes/git-github-com-cloud9ide-emmet-core-git-8ccbe426/config
~/.npm/_git-remotes/git-github-com-cloud9ide-emmet-core-git-8ccbe426/description
~/.npm/_git-remotes/git-github-com-cloud9ide-emmet-core-git-8ccbe426/hooks/
~/.npm/_git-remotes/git-github-com-cloud9ide-emmet-core-git-8ccbe426/hooks/applypatch-msg.sample
~/.npm/_git-remotes/git-github-com-cloud9ide-emmet-core-git-8ccbe426/hooks/commit-msg.sample
~/.npm/_git-remotes/git-github-com-cloud9ide-emmet-core-git-8ccbe426/hooks/post-update.sample
~/.npm/_git-remotes/git-github-com-cloud9ide-emmet-core-git-8ccbe426/hooks/pre-applypatch.sample
~/.npm/_git-remotes/git-github-com-cloud9ide-emmet-core-git-8ccbe426/hooks/pre-commit.sample
~/.npm/_git-remotes/git-github-com-cloud9ide-emmet-core-git-8ccbe426/hooks/pre-rebase.sample
~/.npm/_git-remotes/git-github-com-cloud9ide-emmet-core-git-8ccbe426/hooks/prepare-commit-msg.sample
~/.npm/_git-remotes/git-github-com-cloud9ide-emmet-core-git-8ccbe426/hooks/update.sample
~/.npm/_git-remotes/git-github-com-cloud9ide-emmet-core-git-8ccbe426/info/
~/.npm/_git-remotes/git-github-com-cloud9ide-emmet-core-git-8ccbe426/info/exclude
~/.npm/_git-remotes/git-github-com-cloud9ide-emmet-core-git-8ccbe426/objects/
~/.npm/_git-remotes/git-github-com-cloud9ide-emmet-core-git-8ccbe426/objects/info/
~/.npm/_git-remotes/git-github-com-cloud9ide-emmet-core-git-8ccbe426/objects/pack/
~/.npm/_git-remotes/git-github-com-cloud9ide-emmet-core-git-8ccbe426/objects/pack/pack-3ce70561676e2019da3ca9092f81e8f8c7cd6c33.idx
~/.npm/_git-remotes/git-github-com-cloud9ide-emmet-core-git-8ccbe426/objects/pack/pack-3ce70561676e2019da3ca9092f81e8f8c7cd6c33.pack
~/.npm/_git-remotes/git-github-com-cloud9ide-emmet-core-git-8ccbe426/packed-refs
~/.npm/_git-remotes/git-github-com-cloud9ide-emmet-core-git-8ccbe426/refs/
~/.npm/_git-remotes/git-github-com-cloud9ide-emmet-core-git-8ccbe426/refs/heads/
~/.npm/_git-remotes/git-github-com-cloud9ide-emmet-core-git-8ccbe426/refs/tags/
~/.npm/_git-remotes/git-github-com-cloud9ide-eslint-git-f3aab4cc/
~/.npm/_git-remotes/git-github-com-cloud9ide-eslint-git-f3aab4cc/FETCH_HEAD
~/.npm/_git-remotes/git-github-com-cloud9ide-eslint-git-f3aab4cc/HEAD
~/.npm/_git-remotes/git-github-com-cloud9ide-eslint-git-f3aab4cc/branches/
~/.npm/_git-remotes/git-github-com-cloud9ide-eslint-git-f3aab4cc/config
~/.npm/_git-remotes/git-github-com-cloud9ide-eslint-git-f3aab4cc/description
~/.npm/_git-remotes/git-github-com-cloud9ide-eslint-git-f3aab4cc/hooks/
~/.npm/_git-remotes/git-github-com-cloud9ide-eslint-git-f3aab4cc/hooks/applypatch-msg.sample
~/.npm/_git-remotes/git-github-com-cloud9ide-eslint-git-f3aab4cc/hooks/commit-msg.sample
~/.npm/_git-remotes/git-github-com-cloud9ide-eslint-git-f3aab4cc/hooks/post-update.sample
~/.npm/_git-remotes/git-github-com-cloud9ide-eslint-git-f3aab4cc/hooks/pre-applypatch.sample
~/.npm/_git-remotes/git-github-com-cloud9ide-eslint-git-f3aab4cc/hooks/pre-commit.sample
~/.npm/_git-remotes/git-github-com-cloud9ide-eslint-git-f3aab4cc/hooks/pre-rebase.sample
~/.npm/_git-remotes/git-github-com-cloud9ide-eslint-git-f3aab4cc/hooks/prepare-commit-msg.sample
~/.npm/_git-remotes/git-github-com-cloud9ide-eslint-git-f3aab4cc/hooks/update.sample
~/.npm/_git-remotes/git-github-com-cloud9ide-eslint-git-f3aab4cc/info/
~/.npm/_git-remotes/git-github-com-cloud9ide-eslint-git-f3aab4cc/info/exclude
~/.npm/_git-remotes/git-github-com-cloud9ide-eslint-git-f3aab4cc/objects/
~/.npm/_git-remotes/git-github-com-cloud9ide-eslint-git-f3aab4cc/objects/info/
~/.npm/_git-remotes/git-github-com-cloud9ide-eslint-git-f3aab4cc/objects/pack/
~/.npm/_git-remotes/git-github-com-cloud9ide-eslint-git-f3aab4cc/objects/pack/pack-ef03dd7ab20f2bbc031f17a6514102f9fc57dd6c.idx
~/.npm/_git-remotes/git-github-com-cloud9ide-eslint-git-f3aab4cc/objects/pack/pack-ef03dd7ab20f2bbc031f17a6514102f9fc57dd6c.pack
~/.npm/_git-remotes/git-github-com-cloud9ide-eslint-git-f3aab4cc/packed-refs
~/.npm/_git-remotes/git-github-com-cloud9ide-eslint-git-f3aab4cc/refs/
~/.npm/_git-remotes/git-github-com-cloud9ide-eslint-git-f3aab4cc/refs/heads/
~/.npm/_git-remotes/git-github-com-cloud9ide-eslint-git-f3aab4cc/refs/tags/
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/FETCH_HEAD
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/HEAD
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/branches/
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/config
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/description
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/hooks/
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/hooks/applypatch-msg.sample
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/hooks/commit-msg.sample
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/hooks/post-update.sample
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/hooks/pre-applypatch.sample
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/hooks/pre-commit.sample
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/hooks/pre-rebase.sample
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/hooks/prepare-commit-msg.sample
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/hooks/update.sample
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/info/
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/info/exclude
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/objects/
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/objects/07/
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/objects/07/63147220eee4ba08663815af2712553cf93eb1
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/objects/09/
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/objects/09/3246ed2c63c4621ce56b9ee8ca2a5426ac5382
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/objects/22/
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/objects/22/aefef93e5c5ffe529f20d524d5e2010a2630ab
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/objects/6d/
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/objects/6d/eef931594787edd167040f7352e3e7533430e4
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/objects/71/
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/objects/71/e11d1d19d54abc0e47f9d2087b79ac21b4940e
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/objects/77/
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/objects/77/221b8a40b326f6077710fd368a5727cfb53b0e
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/objects/bd/
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/objects/bd/3b173de56ff3e5556a919b40a8652d763577b2
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/objects/d8/
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/objects/d8/f93d9afae507468d8ba1e78d8cb634687c51a5
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/objects/info/
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/objects/pack/
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/objects/pack/pack-aea36d0398b1608934b5347bf6523d03314685f4.idx
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/objects/pack/pack-aea36d0398b1608934b5347bf6523d03314685f4.pack
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/packed-refs
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/refs/
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/refs/heads/
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/refs/heads/c9
~/.npm/_git-remotes/git-github-com-cloud9ide-nak-git-67de9160/refs/tags/
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-from-ts-git-807adb08/
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-from-ts-git-807adb08/FETCH_HEAD
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-from-ts-git-807adb08/HEAD
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-from-ts-git-807adb08/branches/
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-from-ts-git-807adb08/config
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-from-ts-git-807adb08/description
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-from-ts-git-807adb08/hooks/
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-from-ts-git-807adb08/hooks/applypatch-msg.sample
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-from-ts-git-807adb08/hooks/commit-msg.sample
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-from-ts-git-807adb08/hooks/post-update.sample
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-from-ts-git-807adb08/hooks/pre-applypatch.sample
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-from-ts-git-807adb08/hooks/pre-commit.sample
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-from-ts-git-807adb08/hooks/pre-rebase.sample
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-from-ts-git-807adb08/hooks/prepare-commit-msg.sample
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-from-ts-git-807adb08/hooks/update.sample
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-from-ts-git-807adb08/info/
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-from-ts-git-807adb08/info/exclude
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-from-ts-git-807adb08/objects/
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-from-ts-git-807adb08/objects/info/
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-from-ts-git-807adb08/objects/pack/
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-from-ts-git-807adb08/objects/pack/pack-e23d84af5cdfa8a5eddd3ec9038bfa212b82713e.idx
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-from-ts-git-807adb08/objects/pack/pack-e23d84af5cdfa8a5eddd3ec9038bfa212b82713e.pack
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-from-ts-git-807adb08/packed-refs
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-from-ts-git-807adb08/refs/
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-from-ts-git-807adb08/refs/heads/
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-from-ts-git-807adb08/refs/tags/
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-git-69fe2b2e/
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-git-69fe2b2e/FETCH_HEAD
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-git-69fe2b2e/HEAD
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-git-69fe2b2e/branches/
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-git-69fe2b2e/config
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-git-69fe2b2e/description
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-git-69fe2b2e/hooks/
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-git-69fe2b2e/hooks/applypatch-msg.sample
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-git-69fe2b2e/hooks/commit-msg.sample
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-git-69fe2b2e/hooks/post-update.sample
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-git-69fe2b2e/hooks/pre-applypatch.sample
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-git-69fe2b2e/hooks/pre-commit.sample
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-git-69fe2b2e/hooks/pre-rebase.sample
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-git-69fe2b2e/hooks/prepare-commit-msg.sample
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-git-69fe2b2e/hooks/update.sample
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-git-69fe2b2e/info/
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-git-69fe2b2e/info/exclude
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-git-69fe2b2e/objects/
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-git-69fe2b2e/objects/info/
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-git-69fe2b2e/objects/pack/
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-git-69fe2b2e/objects/pack/pack-4ed65096867ea5b94e02f885d2f4d73901b92c2f.idx
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-git-69fe2b2e/objects/pack/pack-4ed65096867ea5b94e02f885d2f4d73901b92c2f.pack
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-git-69fe2b2e/packed-refs
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-git-69fe2b2e/refs/
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-git-69fe2b2e/refs/heads/
~/.npm/_git-remotes/git-github-com-cloud9ide-tern-git-69fe2b2e/refs/tags/
~/.npm/acorn/
~/.npm/acorn/2.5.2/
~/.npm/acorn/2.5.2/package/
~/.npm/acorn/2.5.2/package.tgz
~/.npm/acorn/2.5.2/package/package.json
~/.npm/async/
~/.npm/async/0.9.2/
~/.npm/async/0.9.2/package/
~/.npm/async/0.9.2/package.tgz
~/.npm/async/0.9.2/package/package.json
~/.npm/base64id/
~/.npm/base64id/0.1.0/
~/.npm/base64id/0.1.0/package/
~/.npm/base64id/0.1.0/package.tgz
~/.npm/base64id/0.1.0/package/package.json
~/.npm/chai/
~/.npm/chai/1.5.0/
~/.npm/chai/1.5.0/package/
~/.npm/chai/1.5.0/package.tgz
~/.npm/chai/1.5.0/package/package.json
~/.npm/connect/
~/.npm/connect/2.12.0/
~/.npm/connect/2.12.0/package/
~/.npm/connect/2.12.0/package.tgz
~/.npm/connect/2.12.0/package/package.json
~/.npm/debug/
~/.npm/debug/0.7.4/
~/.npm/debug/0.7.4/package/
~/.npm/debug/0.7.4/package.tgz
~/.npm/debug/0.7.4/package/package.json
~/.npm/ejs/
~/.npm/ejs/0.8.8/
~/.npm/ejs/0.8.8/package/
~/.npm/ejs/0.8.8/package.tgz
~/.npm/ejs/0.8.8/package/package.json
~/.npm/ejs/1.0.0/
~/.npm/ejs/1.0.0/package/
~/.npm/ejs/1.0.0/package.tgz
~/.npm/ejs/1.0.0/package/package.json
~/.npm/emmet/
~/.npm/emmet/0.0.1/
~/.npm/emmet/0.0.1/package/
~/.npm/emmet/0.0.1/package.tgz
~/.npm/emmet/0.0.1/package/package.json
~/.npm/engine.io/
~/.npm/engine.io-client/
~/.npm/engine.io-client/1.5.3/
~/.npm/engine.io-client/1.5.3/package/
~/.npm/engine.io-client/1.5.3/package.tgz
~/.npm/engine.io-client/1.5.3/package/package.json
~/.npm/engine.io/1.5.3/
~/.npm/engine.io/1.5.3/package/
~/.npm/engine.io/1.5.3/package.tgz
~/.npm/engine.io/1.5.3/package/package.json
~/.npm/eslint/
~/.npm/eslint/0.20.0/
~/.npm/eslint/0.20.0/package/
~/.npm/eslint/0.20.0/package.tgz
~/.npm/eslint/0.20.0/package/package.json
~/.npm/extend/
~/.npm/extend/1.2.1/
~/.npm/extend/1.2.1/package/
~/.npm/extend/1.2.1/package.tgz
~/.npm/extend/1.2.1/package/package.json
~/.npm/form-data/
~/.npm/form-data/0.2.0/
~/.npm/form-data/0.2.0/package/
~/.npm/form-data/0.2.0/package.tgz
~/.npm/form-data/0.2.0/package/package.json
~/.npm/http-error/
~/.npm/http-error/0.0.5/
~/.npm/http-error/0.0.5/package/
~/.npm/http-error/0.0.5/package.tgz
~/.npm/http-error/0.0.5/package/package.json
~/.npm/http-error/0.0.6/
~/.npm/http-error/0.0.6/package/
~/.npm/http-error/0.0.6/package.tgz
~/.npm/http-error/0.0.6/package/package.json
~/.npm/jsonm/
~/.npm/jsonm/1.0.6/
~/.npm/jsonm/1.0.6/package/
~/.npm/jsonm/1.0.6/package.tgz
~/.npm/jsonm/1.0.6/package/package.json
~/.npm/less/
~/.npm/less/2.5.3/
~/.npm/less/2.5.3/package/
~/.npm/less/2.5.3/package.tgz
~/.npm/less/2.5.3/package/package.json
~/.npm/less/2.6.1/
~/.npm/less/2.6.1/package/
~/.npm/less/2.6.1/package.tgz
~/.npm/less/2.6.1/package/package.json
~/.npm/mime/
~/.npm/mime/1.2.11/
~/.npm/mime/1.2.11/package/
~/.npm/mime/1.2.11/package.tgz
~/.npm/mime/1.2.11/package/package.json
~/.npm/minimist/
~/.npm/minimist/0.0.10/
~/.npm/minimist/0.0.10/package/
~/.npm/minimist/0.0.10/package.tgz
~/.npm/minimist/0.0.10/package/package.json
~/.npm/mkdirp/
~/.npm/mkdirp/0.3.5/
~/.npm/mkdirp/0.3.5/package/
~/.npm/mkdirp/0.3.5/package.tgz
~/.npm/mkdirp/0.3.5/package/package.json
~/.npm/mocha/
~/.npm/mocha/1.8.2/
~/.npm/mocha/1.8.2/package/
~/.npm/mocha/1.8.2/package.tgz
~/.npm/mocha/1.8.2/package/package.json
~/.npm/msgpack-js/
~/.npm/msgpack-js-browser/
~/.npm/msgpack-js-browser/0.1.4/
~/.npm/msgpack-js-browser/0.1.4/package/
~/.npm/msgpack-js-browser/0.1.4/package.tgz
~/.npm/msgpack-js-browser/0.1.4/package/package.json
~/.npm/msgpack-js/0.1.5/
~/.npm/msgpack-js/0.1.5/package/
~/.npm/msgpack-js/0.1.5/package.tgz
~/.npm/msgpack-js/0.1.5/package/package.json
~/.npm/nan/
~/.npm/nan/2.0.5/
~/.npm/nan/2.0.5/package/
~/.npm/nan/2.0.5/package.tgz
~/.npm/nan/2.0.5/package/package.json
~/.npm/netutil/
~/.npm/netutil/0.0.2/
~/.npm/netutil/0.0.2/package/
~/.npm/netutil/0.0.2/package.tgz
~/.npm/netutil/0.0.2/package/package.json
~/.npm/optimist/
~/.npm/optimist/0.6.1/
~/.npm/optimist/0.6.1/package/
~/.npm/optimist/0.6.1/package.tgz
~/.npm/optimist/0.6.1/package/package.json
~/.npm/pty.js/
~/.npm/pty.js/0.3.0/
~/.npm/pty.js/0.3.0/package/
~/.npm/pty.js/0.3.0/package.tgz
~/.npm/pty.js/0.3.0/package/package.json
~/.npm/qs/
~/.npm/qs/0.6.6/
~/.npm/qs/0.6.6/package/
~/.npm/qs/0.6.6/package.tgz
~/.npm/qs/0.6.6/package/package.json
~/.npm/read/
~/.npm/read/1.0.7/
~/.npm/read/1.0.7/package/
~/.npm/read/1.0.7/package.tgz
~/.npm/read/1.0.7/package/package.json
~/.npm/registry.npmjs.org/
~/.npm/registry.npmjs.org/acorn/
~/.npm/registry.npmjs.org/acorn/.cache.json
~/.npm/registry.npmjs.org/async/
~/.npm/registry.npmjs.org/async/.cache.json
~/.npm/registry.npmjs.org/base64id/
~/.npm/registry.npmjs.org/base64id/.cache.json
~/.npm/registry.npmjs.org/chai/
~/.npm/registry.npmjs.org/chai/.cache.json
~/.npm/registry.npmjs.org/connect/
~/.npm/registry.npmjs.org/connect/.cache.json
~/.npm/registry.npmjs.org/debug/
~/.npm/registry.npmjs.org/debug/.cache.json
~/.npm/registry.npmjs.org/ejs/
~/.npm/registry.npmjs.org/ejs/.cache.json
~/.npm/registry.npmjs.org/engine.io/
~/.npm/registry.npmjs.org/engine.io-client/
~/.npm/registry.npmjs.org/engine.io-client/.cache.json
~/.npm/registry.npmjs.org/engine.io/.cache.json
~/.npm/registry.npmjs.org/extend/
~/.npm/registry.npmjs.org/extend/.cache.json
~/.npm/registry.npmjs.org/form-data/
~/.npm/registry.npmjs.org/form-data/.cache.json
~/.npm/registry.npmjs.org/http-error/
~/.npm/registry.npmjs.org/http-error/.cache.json
~/.npm/registry.npmjs.org/jsonm/
~/.npm/registry.npmjs.org/jsonm/.cache.json
~/.npm/registry.npmjs.org/less/
~/.npm/registry.npmjs.org/less/.cache.json
~/.npm/registry.npmjs.org/mime/
~/.npm/registry.npmjs.org/mime/.cache.json
~/.npm/registry.npmjs.org/minimist/
~/.npm/registry.npmjs.org/minimist/.cache.json
~/.npm/registry.npmjs.org/mkdirp/
~/.npm/registry.npmjs.org/mkdirp/.cache.json
~/.npm/registry.npmjs.org/mocha/
~/.npm/registry.npmjs.org/mocha/.cache.json
~/.npm/registry.npmjs.org/msgpack-js/
~/.npm/registry.npmjs.org/msgpack-js-browser/
~/.npm/registry.npmjs.org/msgpack-js-browser/.cache.json
~/.npm/registry.npmjs.org/msgpack-js/.cache.json
~/.npm/registry.npmjs.org/nan/
~/.npm/registry.npmjs.org/nan/.cache.json
~/.npm/registry.npmjs.org/netutil/
~/.npm/registry.npmjs.org/netutil/.cache.json
~/.npm/registry.npmjs.org/optimist/
~/.npm/registry.npmjs.org/optimist/.cache.json
~/.npm/registry.npmjs.org/pty.js/
~/.npm/registry.npmjs.org/pty.js/.cache.json
~/.npm/registry.npmjs.org/qs/
~/.npm/registry.npmjs.org/qs/.cache.json
~/.npm/registry.npmjs.org/read/
~/.npm/registry.npmjs.org/read/.cache.json
~/.npm/registry.npmjs.org/rusha/
~/.npm/registry.npmjs.org/rusha/.cache.json
~/.npm/registry.npmjs.org/send/
~/.npm/registry.npmjs.org/send/.cache.json
~/.npm/registry.npmjs.org/simple-mime/
~/.npm/registry.npmjs.org/simple-mime/.cache.json
~/.npm/registry.npmjs.org/through/
~/.npm/registry.npmjs.org/through/.cache.json
~/.npm/registry.npmjs.org/tmp/
~/.npm/registry.npmjs.org/tmp/.cache.json
~/.npm/registry.npmjs.org/uglify-js/
~/.npm/registry.npmjs.org/uglify-js/.cache.json
~/.npm/registry.npmjs.org/wordwrap/
~/.npm/registry.npmjs.org/wordwrap/.cache.json
~/.npm/registry.npmjs.org/ws/
~/.npm/registry.npmjs.org/ws/.cache.json
~/.npm/rusha/
~/.npm/rusha/0.7.8/
~/.npm/rusha/0.7.8/package/
~/.npm/rusha/0.7.8/package.tgz
~/.npm/rusha/0.7.8/package/package.json
~/.npm/send/
~/.npm/send/0.1.4/
~/.npm/send/0.1.4/package/
~/.npm/send/0.1.4/package.tgz
~/.npm/send/0.1.4/package/package.json
~/.npm/simple-mime/
~/.npm/simple-mime/0.0.8/
~/.npm/simple-mime/0.0.8/package/
~/.npm/simple-mime/0.0.8/package.tgz
~/.npm/simple-mime/0.0.8/package/package.json
~/.npm/tern/
~/.npm/tern/0.13.1/
~/.npm/tern/0.13.1/package/
~/.npm/tern/0.13.1/package.tgz
~/.npm/tern/0.13.1/package/package.json
~/.npm/tern/0.16.1/
~/.npm/tern/0.16.1/package/
~/.npm/tern/0.16.1/package.tgz
~/.npm/tern/0.16.1/package/package.json
~/.npm/tern_from_ts/
~/.npm/tern_from_ts/0.0.1/
~/.npm/tern_from_ts/0.0.1/package/
~/.npm/tern_from_ts/0.0.1/package.tgz
~/.npm/tern_from_ts/0.0.1/package/package.json
~/.npm/through/
~/.npm/through/2.2.0/
~/.npm/through/2.2.0/package/
~/.npm/through/2.2.0/package.tgz
~/.npm/through/2.2.0/package/package.json
~/.npm/tmp/
~/.npm/tmp/0.0.28/
~/.npm/tmp/0.0.28/package/
~/.npm/tmp/0.0.28/package.tgz
~/.npm/tmp/0.0.28/package/package.json
~/.npm/uglify-js/
~/.npm/uglify-js/2.4.16/
~/.npm/uglify-js/2.4.16/package/
~/.npm/uglify-js/2.4.16/package.tgz
~/.npm/uglify-js/2.4.16/package/package.json
~/.npm/wordwrap/
~/.npm/wordwrap/0.0.3/
~/.npm/wordwrap/0.0.3/package/
~/.npm/wordwrap/0.0.3/package.tgz
~/.npm/wordwrap/0.0.3/package/package.json
~/.npm/ws/
~/.npm/ws/0.4.31/
~/.npm/ws/0.4.31/package/
~/.npm/ws/0.4.31/package.tgz
~/.npm/ws/0.4.31/package/package.json
alex@hah-sites:/var/www/c9sdk$ npm cache clear
alex@hah-sites:/var/www/c9sdk$ npm install 
npm WARN package.json ace_tree@0.1.0 No description
npm WARN package.json ace_tree@0.1.0 No repository field.
npm WARN package.json ace_tree@0.1.0 No README data
npm WARN package.json kaefer@0.1.0 No repository field.
npm WARN package.json kaefer@0.1.0 No README data
npm WARN package.json vfs-nodefs-adapter@0.3.0 No README data
npm WARN package.json vfs-lint@0.0.1 No README data
npm ERR! tar.unpack untar error /tmp/npm-9635-cUkJEv_3/1457989125826-0.4747064730618149/tmp.tgz
npm WARN excluding symbolic link tests/filelist_fixtures/symlink-to-1.txt -> 1.txt
npm WARN excluding symbolic link tests/filelist_fixtures/symlink-to-nowhere.txt -> nowhere.txt
npm WARN excluding symbolic link tests/search_fixtures/symlink-to-file1.txt -> file1.txt
npm ERR! Error: invalid tar file
npm ERR!     at Extract.Parse._startEntry (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.js:145:13)
npm ERR!     at Extract.Parse._process (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.js:127:12)
npm ERR!     at BlockStream.<anonymous> (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.js:47:8)
npm ERR!     at BlockStream.emit (events.js:95:17)
npm ERR!     at BlockStream._emitChunk (/usr/lib/node_modules/npm/node_modules/block-stream/block-stream.js:145:10)
npm ERR!     at BlockStream.resume (/usr/lib/node_modules/npm/node_modules/block-stream/block-stream.js:58:15)
npm ERR!     at Extract.Reader.resume (/usr/lib/node_modules/npm/node_modules/fstream/lib/reader.js:255:34)
npm ERR!     at Entry.<anonymous> (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.js:257:8)
npm ERR!     at Entry.emit (events.js:92:17)
npm ERR!     at Entry.resume (/usr/lib/node_modules/npm/node_modules/tar/lib/entry.js:92:8)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 3.16.0-0.bpo.4-amd64
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /var/www/c9sdk
npm ERR! node -v v0.10.35
npm ERR! npm -v 1.4.28
npm ERR! Error: EACCES, open 'npm-debug.log'
npm ERR!  { [Error: EACCES, open 'npm-debug.log'] errno: 3, code: 'EACCES', path: 'npm-debug.log' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Linux 3.16.0-0.bpo.4-amd64
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /var/www/c9sdk
npm ERR! node -v v0.10.35
npm ERR! npm -v 1.4.28
npm ERR! path npm-debug.log
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, open 'npm-debug.log'
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /var/www/c9sdk/npm-debug.log
npm ERR! not ok code 0
alex@hah-sites:/var/www/c9sdk$ sudo npm install
npm WARN package.json ace_tree@0.1.0 No description
npm WARN package.json ace_tree@0.1.0 No repository field.
npm WARN package.json ace_tree@0.1.0 No README data
npm WARN package.json kaefer@0.1.0 No repository field.
npm WARN package.json kaefer@0.1.0 No README data
npm WARN package.json vfs-nodefs-adapter@0.3.0 No README data
npm WARN package.json vfs-lint@0.0.1 No README data
npm ERR! tar.unpack untar error /tmp/npm-9689-2lWtKa2d/1457989138950-0.5414741095155478/tmp.tgz
npm WARN excluding symbolic link tests/filelist_fixtures/symlink-to-1.txt -> 1.txt
npm WARN excluding symbolic link tests/filelist_fixtures/symlink-to-nowhere.txt -> nowhere.txt
npm WARN excluding symbolic link tests/search_fixtures/symlink-to-file1.txt -> file1.txt
npm ERR! Error: invalid tar file
npm ERR!     at Extract.Parse._startEntry (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.j
s:145:13)
npm ERR!     at Extract.Parse._process (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.js:1
27:12)
npm ERR!     at BlockStream.<anonymous> (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.js:
47:8)
npm ERR!     at BlockStream.emit (events.js:95:17)
npm ERR!     at BlockStream._emitChunk (/usr/lib/node_modules/npm/node_modules/block-stream/block
-stream.js:145:10)
npm ERR!     at BlockStream.resume (/usr/lib/node_modules/npm/node_modules/block-stream/block-str
eam.js:58:15)
npm ERR!     at Extract.Reader.resume (/usr/lib/node_modules/npm/node_modules/fstream/lib/reader.
js:255:34)
npm ERR!     at Entry.<anonymous> (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.js:257:8)
npm ERR!     at Entry.emit (events.js:92:17)
npm ERR!     at Entry.resume (/usr/lib/node_modules/npm/node_modules/tar/lib/entry.js:92:8)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>
npm ERR! System Linux 3.16.0-0.bpo.4-amd64
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /var/www/c9sdk
npm ERR! node -v v0.10.35
npm ERR! npm -v 1.4.28
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /var/www/c9sdk/npm-debug.log
npm ERR! not ok code 0
nightwing commented 8 years ago

try running

deps=(`"node" -e 'console.log(Object.keys(require("./package.json").dependencies).join(" "))'`)
for m in ${deps[@]}; do echo $m; 
    "npm" install --loglevel error $m || echo "-----------------------------------------------"
done

to see which module triggers the error.

Hectorahinojosa commented 8 years ago

msgpack-js-browser@0.1.4 node_modules/msgpack-js-browser

here is the output:

deps=(`"node" -e 'console.log(Object.keys(require("./package.json"
).dependencies).join(" "))'`)
alex@hah-sites:/var/www/c9sdk$ for m in ${deps[@]}; do echo $m; 
>     "npm" install --loglevel error $m || echo "-----------------------------------------------"
> done
acorn
acorn@2.5.2 node_modules/acorn
async
async@0.9.2 node_modules/async
base64id
base64id@0.1.0 node_modules/base64id
connect
connect@2.12.0 node_modules/connect
├── uid2@0.0.3
├── methods@0.1.0
├── cookie-signature@1.0.1
├── pause@0.0.1
├── debug@0.8.1
├── fresh@0.2.0
├── qs@0.6.6
├── bytes@0.2.1
├── buffer-crc32@0.2.1
├── raw-body@1.1.2
├── batch@0.5.0
├── cookie@0.1.0
├── negotiator@0.3.0
├── send@0.1.4 (range-parser@0.0.4)
└── multiparty@2.2.0 (stream-counter@0.2.0, readable-stream@1.1.13)
debug
debug@0.7.4 node_modules/debug
ejs
ejs@1.0.0 node_modules/ejs
emmet
emmet@0.0.1 node_modules/emmet
engine.io
-
> utf-8-validate@1.2.1 install /var/www/c9sdk/node_modules/engine.io/node_modules/ws/node_modules/utf-8-validate
> node-gyp rebuild

make: Entering directory `/var/www/c9sdk/node_modules/engine.io/node_modules/ws/node_modules/utf-8-validate/build'
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/obj.target/validation.node
  SOLINK_MODULE(target) Release/obj.target/validation.node: Finished
  COPY Release/validation.node
make: Leaving directory `/var/www/c9sdk/node_modules/engine.io/node_modules/ws/node_modules/utf-8-validate/build'

> bufferutil@1.2.1 install /var/www/c9sdk/node_modules/engine.io/node_modules/ws/node_modules/bufferutil
> node-gyp rebuild

make: Entering directory `/var/www/c9sdk/node_modules/engine.io/node_modules/ws/node_modules/bufferutil/build'
  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished
  COPY Release/bufferutil.node
make: Leaving directory `/var/www/c9sdk/node_modules/engine.io/node_modules/ws/node_modules/bufferutil/build'
engine.io@1.5.3 node_modules/engine.io
├── debug@1.0.3 (ms@0.6.2)
├── engine.io-parser@1.2.1 (blob@0.0.2, arraybuffer.slice@0.0.6, after@0.8.1, base64-arraybuffer@0.1.2, has-binary@0.1.5, utf8@2.0.0)
└── ws@0.8.0 (options@0.0.6, ultron@1.0.2, utf-8-validate@1.2.1, bufferutil@1.2.1)
engine.io-client
\
> utf-8-validate@1.2.1 install /var/www/c9sdk/node_modules/engine.io-client/node_modules/ws/node_modules/utf-8-validate
> node-gyp rebuild

make: Entering directory `/var/www/c9sdk/node_modules/engine.io-client/node_modules/ws/node_modules/utf-8-validate/build'
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/obj.target/validation.node
  SOLINK_MODULE(target) Release/obj.target/validation.node: Finished
  COPY Release/validation.node
make: Leaving directory `/var/www/c9sdk/node_modules/engine.io-client/node_modules/ws/node_modules/utf-8-validate/build'

> bufferutil@1.2.1 install /var/www/c9sdk/node_modules/engine.io-client/node_modules/ws/node_modules/bufferutil
> node-gyp rebuild

make: Entering directory `/var/www/c9sdk/node_modules/engine.io-client/node_modules/ws/node_modules/bufferutil/build'
  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished
  COPY Release/bufferutil.node
make: Leaving directory `/var/www/c9sdk/node_modules/engine.io-client/node_modules/ws/node_modules/bufferutil/build'
engine.io-client@1.5.3 node_modules/engine.io-client
├── indexof@0.0.1
├── component-inherit@0.0.3
├── component-emitter@1.1.2
├── xmlhttprequest@1.5.0
├── debug@1.0.4 (ms@0.6.2)
├── parsejson@0.0.1 (better-assert@1.0.2)
├── engine.io-parser@1.2.1 (blob@0.0.2, arraybuffer.slice@0.0.6, after@0.8.1, base64-arraybuffer@0.1.2, has-binary@0.1.5, utf8@2.0.0)
├── parseuri@0.0.4 (better-assert@1.0.2)
├── parseqs@0.0.2 (better-assert@1.0.2)
├── has-cors@1.0.3 (global@2.0.1)
└── ws@0.8.0 (options@0.0.6, ultron@1.0.2, utf-8-validate@1.2.1, bufferutil@1.2.1)
jsonm
jsonm@1.0.6 node_modules/jsonm
http-error
http-error@0.0.6 node_modules/http-error
less
less@2.6.1 node_modules/less
├── graceful-fs@4.1.3
├── image-size@0.4.0
├── errno@0.1.4 (prr@0.0.0)
├── mkdirp@0.5.1 (minimist@0.0.8)
├── promise@7.1.1 (asap@2.0.3)
├── source-map@0.5.3
└── request@2.69.0 (is-typedarray@1.0.0, aws-sign2@0.6.0, forever-agent@0.6.1, caseless@0.11.0, stringstream@0.0.5, tunnel-agent@0.4.2, oauth-sign@0.8.1, isstream@0.1.2, json-stringify-safe@5.0.1, extend@3.0.0, node-uuid@1.4.7, combined-stream@1.0.5, qs@6.0.2, tough-cookie@2.2.2, mime-types@2.1.10, form-data@1.0.0-rc3, aws4@1.3.2, bl@1.0.3, http-signature@1.1.1, hawk@3.1.3, har-validator@2.0.6)
mime
mime@1.2.11 node_modules/mime
mkdirp
mkdirp@0.3.5 node_modules/mkdirp
msgpack-js
msgpack-js@0.1.5 node_modules/msgpack-js
msgpack-js-browser
msgpack-js-browser@0.1.4 node_modules/msgpack-js-browser
nak
npm ERR! tar.unpack untar error /tmp/npm-10757-3EXWmphW/1457990487309-0.1420213186647743/tmp.tgz
npm ERR! Error: invalid tar file
npm ERR!     at Extract.Parse._startEntry (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.js:145:13)
npm ERR!     at Extract.Parse._process (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.js:127:12)
npm ERR!     at BlockStream.<anonymous> (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.js:47:8)
npm ERR!     at BlockStream.emit (events.js:95:17)
npm ERR!     at BlockStream._emitChunk (/usr/lib/node_modules/npm/node_modules/block-stream/block-stream.js:145:10)
npm ERR!     at BlockStream.resume (/usr/lib/node_modules/npm/node_modules/block-stream/block-stream.js:58:15)
npm ERR!     at Extract.Reader.resume (/usr/lib/node_modules/npm/node_modules/fstream/lib/reader.js:255:34)
npm ERR!     at Entry.<anonymous> (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.js:257:8)
npm ERR!     at Entry.emit (events.js:92:17)
npm ERR!     at Entry.resume (/usr/lib/node_modules/npm/node_modules/tar/lib/entry.js:92:8)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 3.16.0-0.bpo.4-amd64
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "--loglevel" "error" "nak"
npm ERR! cwd /var/www/c9sdk
npm ERR! node -v v0.10.35
npm ERR! npm -v 1.4.28
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /var/www/c9sdk/npm-debug.log
npm ERR! not ok code 0
-----------------------------------------------
netutil
netutil@0.0.2 node_modules/netutil
optimist
optimist@0.6.1 node_modules/optimist
├── wordwrap@0.0.3
└── minimist@0.0.10
qs
qs@0.6.6 node_modules/qs
rusha
rusha@0.7.8 node_modules/rusha
├── grunt@0.4.5 (which@1.0.9, dateformat@1.0.2-1.2.3, eventemitter2@0.4.14, getobject@0.1.0, rimraf@2.2.8, colors@0.6.2, async@0.1.22, grunt-legacy-util@0.2.0, hooker@0.2.3, exit@0.1.2, nopt@1.0.10, lodash@0.9.2, glob@3.1.21, minimatch@0.2.14, coffee-script@1.3.3, underscore.string@2.2.1, iconv-lite@0.2.11, findup-sync@0.1.3, grunt-legacy-log@0.1.3, js-yaml@2.0.5)
└── grunt-contrib-connect@0.8.0 (connect-livereload@0.4.1, open@0.0.5, portscanner@0.2.3, connect@2.19.6)
send
send@0.1.4 node_modules/send
├── range-parser@0.0.4
└── fresh@0.2.0
simple-mime
simple-mime@0.0.8 node_modules/simple-mime
tern
tern@0.16.1 node_modules/tern
├── minimatch@0.2.14 (sigmund@1.0.1, lru-cache@2.7.3)
├── glob@3.2.11 (inherits@2.0.1, minimatch@0.3.0)
├── enhanced-resolve@0.9.1 (tapable@0.1.10, graceful-fs@4.1.3, memory-fs@0.2.0)
└── typescript@1.0.1
tern_from_ts
tern_from_ts@0.0.1 node_modules/tern_from_ts
└── tern@0.8.1 (minimatch@0.2.14, glob@3.2.11, typescript@1.0.1)
through
├── source-map@0.5.3
through@2.2.0 node_modules/through
tmp
tmp@0.0.28 node_modules/tmp
└── os-tmpdir@1.0.1
uglify-js
uglify-js@2.4.16 node_modules/uglify-js
├── uglify-to-browserify@1.0.2
├── async@0.2.10
├── optimist@0.3.7 (wordwrap@0.0.3)
└── source-map@0.1.34 (amdefine@1.0.0)
ws
/
> ws@0.4.31 install /var/www/c9sdk/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)
make: Entering directory `/var/www/c9sdk/node_modules/ws/build'
  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished
  COPY Release/bufferutil.node
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/obj.target/validation.node
  SOLINK_MODULE(target) Release/obj.target/validation.node: Finished
  COPY Release/validation.node
make: Leaving directory `/var/www/c9sdk/node_modules/ws/build'
ws@0.4.31 node_modules/ws
├── tinycolor@0.0.1
├── options@0.0.6
├── commander@0.6.1
└── nan@0.3.2
read
read@1.0.7 node_modules/read
└── mute-stream@0.0.6
form-data
form-data@0.2.0 node_modules/form-data
├── combined-stream@0.0.7 (delayed-stream@0.0.5)
└── mime-types@2.0.14 (mime-db@1.12.0)
chai
chai@1.5.0 node_modules/chai
mocha
mocha@1.8.2 node_modules/mocha
├── growl@1.7.0
├── commander@0.6.1
├── diff@1.0.2
├── mkdirp@0.3.3
├── ms@0.3.0
└── jade@0.26.3 (mkdirp@0.3.0)
Hectorahinojosa commented 8 years ago

and...

sudo npm install nak
npm WARN package.json ace_tree@0.1.0 No description
npm WARN package.json ace_tree@0.1.0 No repository field.
npm WARN package.json ace_tree@0.1.0 No README data
npm WARN package.json kaefer@0.1.0 No repository field.
npm WARN package.json kaefer@0.1.0 No README data
npm WARN package.json msgpack-js-browser@0.1.4 'repositories' (plural) Not supported. Please pick
 one as the 'repository' field
npm WARN package.json vfs-nodefs-adapter@0.3.0 No README data
npm WARN package.json vfs-lint@0.0.1 No README data
npm ERR! tar.unpack untar error /tmp/npm-11211-B3UL7F_p/1457990708613-0.598989546764642/tmp.tgz
npm ERR! Error: invalid tar file
npm ERR!     at Extract.Parse._startEntry (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.j
s:145:13)
npm ERR!     at Extract.Parse._process (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.js:1
27:12)
npm ERR!     at BlockStream.<anonymous> (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.js:
47:8)
npm ERR!     at BlockStream.emit (events.js:95:17)
npm ERR!     at BlockStream._emitChunk (/usr/lib/node_modules/npm/node_modules/block-stream/block
-stream.js:145:10)
npm ERR!     at BlockStream.resume (/usr/lib/node_modules/npm/node_modules/block-stream/block-str
eam.js:58:15)
npm ERR!     at Extract.Reader.resume (/usr/lib/node_modules/npm/node_modules/fstream/lib/reader.
js:255:34)
npm ERR!     at Entry.<anonymous> (/usr/lib/node_modules/npm/node_modules/tar/lib/parse.js:257:8)
npm ERR!     at Entry.emit (events.js:92:17)
npm ERR!     at Entry.resume (/usr/lib/node_modules/npm/node_modules/tar/lib/entry.js:92:8)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>
npm ERR! System Linux 3.16.0-0.bpo.4-amd64
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "nak"
npm ERR! cwd /var/www/c9sdk
npm ERR! node -v v0.10.35
npm ERR! npm -v 1.4.28
npm WARN excluding symbolic link tests/filelist_fixtures/symlink-to-1.txt -> 1.txt
npm WARN excluding symbolic link tests/filelist_fixtures/symlink-to-nowhere.txt -> nowhere.txt
npm WARN excluding symbolic link tests/search_fixtures/symlink-to-file1.txt -> file1.txt
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /var/www/c9sdk/npm-debug.log
npm ERR! not ok code 0

last but not least:

node server.js -p 8080 -a
Starting standalone
/var/www/c9sdk/configs/standalone.js:108
    var auth = (argv.auth || ":").split(":");
                                  ^
TypeError: Object true has no method 'split'
    at module.exports (/var/www/c9sdk/configs/standalone.js:108:35)
    at start (/var/www/c9sdk/server.js:164:38)
    at /var/www/c9sdk/server.js:125:13
    at /var/www/c9sdk/node_modules/async/lib/async.js:122:13
    at _each (/var/www/c9sdk/node_modules/async/lib/async.js:46:13)
    at Object.async.each (/var/www/c9sdk/node_modules/async/lib/async.js:121:9)
    at startConfigs (/var/www/c9sdk/server.js:122:15)
    at main (/var/www/c9sdk/server.js:115:5)
    at main (/var/www/c9sdk/server.js:100:16)
    at Object.<anonymous> (/var/www/c9sdk/server.js:57:5)
nightwing commented 8 years ago

you need some password for -a node server.js -p 8080 -a user:pass or explicitly specify no password node server.js -p 8080 -a : or node server.js -p does npm i https://github.com/c9/nak/tarball/c9 work?

Hectorahinojosa commented 8 years ago

Yeah it worked! Thanks @nightwing for all your help and quick replies. Really appreciate it!