Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPM is unable to install latest socket.io (node 0.6.1) #642

Closed
jplock opened this issue Nov 14, 2011 · 2 comments
Closed

NPM is unable to install latest socket.io (node 0.6.1) #642

jplock opened this issue Nov 14, 2011 · 2 comments

Comments

@jplock
Copy link

jplock commented Nov 14, 2011

While trying to install the latest version of socket.io from npm (npm install socket.io), npm is having an issue untarring the tmp.tar file:

hostname [9:45] justinp [/tmp/npm-1321281694685/1321281699357-0.6046620339620858]$tar -tvf tmp.tar
tar: Ignoring unknown extended header keyword `LIBARCHIVE.creationtime'
tar: Ignoring unknown extended header keyword `SCHILY.dev'
tar: Ignoring unknown extended header keyword `SCHILY.ino'
tar: Ignoring unknown extended header keyword `SCHILY.nlink'
drwxr-xr-x pgriess/THEFACEBOOK\domain users 0 2010-12-15 13:29:51 package/
tar: Ignoring unknown extended header keyword `SCHILY.dev'
tar: Ignoring unknown extended header keyword `SCHILY.ino'
tar: Ignoring unknown extended header keyword `SCHILY.nlink'
drwxr-xr-x pgriess/THEFACEBOOK\domain users 0 2010-12-05 14:22:43 package/examples/
tar: Ignoring unknown extended header keyword `LIBARCHIVE.creationtime'
tar: Ignoring unknown extended header keyword `SCHILY.dev'
tar: Ignoring unknown extended header keyword `SCHILY.ino'
tar: Ignoring unknown extended header keyword `SCHILY.nlink'
drwxr-xr-x pgriess/THEFACEBOOK\domain users 0 2010-12-15 13:35:07 package/lib/
tar: Ignoring unknown extended header keyword `SCHILY.dev'
tar: Ignoring unknown extended header keyword `SCHILY.ino'
tar: Ignoring unknown extended header keyword `SCHILY.nlink'
-rw-r--r-- pgriess/THEFACEBOOK\domain users 1535 2010-12-05 14:22:43 package/LICENSE
tar: Ignoring unknown extended header keyword `SCHILY.dev'
tar: Ignoring unknown extended header keyword `SCHILY.ino'
tar: Ignoring unknown extended header keyword `SCHILY.nlink'
-rw-r--r-- pgriess/THEFACEBOOK\domain users  457 2010-12-08 11:15:17 package/Makefile
tar: Ignoring unknown extended header keyword `LIBARCHIVE.creationtime'
tar: Ignoring unknown extended header keyword `SCHILY.dev'
tar: Ignoring unknown extended header keyword `SCHILY.ino'
tar: Ignoring unknown extended header keyword `SCHILY.nlink'
-rw-r--r-- pgriess/THEFACEBOOK\domain users 17904 2010-12-08 11:11:09 package/new
tar: Ignoring unknown extended header keyword `LIBARCHIVE.creationtime'
tar: Ignoring unknown extended header keyword `SCHILY.dev'
tar: Ignoring unknown extended header keyword `SCHILY.ino'
tar: Ignoring unknown extended header keyword `SCHILY.nlink'
-rw-r--r-- pgriess/THEFACEBOOK\domain users 17112 2010-12-08 11:17:50 package/old
tar: Ignoring unknown extended header keyword `SCHILY.dev'
tar: Ignoring unknown extended header keyword `SCHILY.ino'
tar: Ignoring unknown extended header keyword `SCHILY.nlink'
-rw-r--r-- pgriess/THEFACEBOOK\domain users   556 2010-12-15 13:23:58 package/package.json
tar: Ignoring unknown extended header keyword `SCHILY.dev'
tar: Ignoring unknown extended header keyword `SCHILY.ino'
tar: Ignoring unknown extended header keyword `SCHILY.nlink'
-rw-r--r-- pgriess/THEFACEBOOK\domain users  1213 2010-12-05 14:22:43 package/README.md
tar: Ignoring unknown extended header keyword `LIBARCHIVE.creationtime'
tar: Ignoring unknown extended header keyword `SCHILY.dev'
tar: Ignoring unknown extended header keyword `SCHILY.ino'
tar: Ignoring unknown extended header keyword `SCHILY.nlink'
drwxr-xr-x pgriess/THEFACEBOOK\domain users     0 2010-12-15 13:23:58 package/test/
tar: Ignoring unknown extended header keyword `SCHILY.dev'
tar: Ignoring unknown extended header keyword `SCHILY.ino'
tar: Ignoring unknown extended header keyword `SCHILY.nlink'
-rw-r--r-- pgriess/THEFACEBOOK\domain users  1704 2010-12-08 11:15:17 package/test/test-basic.js
tar: Ignoring unknown extended header keyword `SCHILY.dev'
tar: Ignoring unknown extended header keyword `SCHILY.ino'
tar: Ignoring unknown extended header keyword `SCHILY.nlink'
-rw-r--r-- pgriess/THEFACEBOOK\domain users  1156 2010-12-15 13:23:58 package/test/test-client-close.js
tar: Ignoring unknown extended header keyword `SCHILY.dev'
tar: Ignoring unknown extended header keyword `SCHILY.ino'
tar: Ignoring unknown extended header keyword `SCHILY.nlink'
-rw-r--r-- pgriess/THEFACEBOOK\domain users  1255 2010-12-08 11:15:17 package/test/test-readonly-attrs.js
tar: Ignoring unknown extended header keyword `SCHILY.dev'
tar: Ignoring unknown extended header keyword `SCHILY.ino'
tar: Ignoring unknown extended header keyword `SCHILY.nlink'
-rw-r--r-- pgriess/THEFACEBOOK\domain users   708 2010-12-08 11:15:17 package/test/test-ready-state.js
tar: Ignoring unknown extended header keyword `SCHILY.dev'
tar: Ignoring unknown extended header keyword `SCHILY.ino'
tar: Ignoring unknown extended header keyword `SCHILY.nlink'
-rw-r--r-- pgriess/THEFACEBOOK\domain users  1089 2010-12-08 11:15:17 package/test/test-server-close.js
tar: Ignoring unknown extended header keyword `SCHILY.dev'
tar: Ignoring unknown extended header keyword `SCHILY.ino'
tar: Ignoring unknown extended header keyword `SCHILY.nlink'
-rw-r--r-- pgriess/THEFACEBOOK\domain users  1567 2010-12-08 11:15:17 package/test/test-unix-send-fd.js
tar: Ignoring unknown extended header keyword `SCHILY.dev'
tar: Ignoring unknown extended header keyword `SCHILY.ino'
tar: Ignoring unknown extended header keyword `SCHILY.nlink'
-rw-r--r-- pgriess/THEFACEBOOK\domain users  1148 2010-12-08 11:15:17 package/test/test-unix-sockets.js
tar: Ignoring unknown extended header keyword `LIBARCHIVE.creationtime'
tar: Ignoring unknown extended header keyword `SCHILY.dev'
tar: Ignoring unknown extended header keyword `SCHILY.ino'
tar: Ignoring unknown extended header keyword `SCHILY.nlink'
-rw-r--r-- pgriess/THEFACEBOOK\domain users 16384 2010-12-15 13:35:40 package/lib/.websocket.js.swp
tar: Ignoring unknown extended header keyword `SCHILY.dev'
tar: Ignoring unknown extended header keyword `SCHILY.ino'
tar: Ignoring unknown extended header keyword `SCHILY.nlink'
-rw-r--r-- pgriess/THEFACEBOOK\domain users 18298 2010-12-15 13:23:58 package/lib/websocket.js
tar: Ignoring unknown extended header keyword `SCHILY.dev'
tar: Ignoring unknown extended header keyword `SCHILY.ino'
tar: Ignoring unknown extended header keyword `SCHILY.nlink'
-rw-r--r-- pgriess/THEFACEBOOK\domain users   328 2010-12-05 14:22:43 package/examples/client-unix.js
tar: Ignoring unknown extended header keyword `SCHILY.dev'
tar: Ignoring unknown extended header keyword `SCHILY.ino'
tar: Ignoring unknown extended header keyword `SCHILY.nlink'
-rw-r--r-- pgriess/THEFACEBOOK\domain users   300 2010-12-05 14:22:43 package/examples/client.js
tar: Ignoring unknown extended header keyword `SCHILY.dev'
tar: Ignoring unknown extended header keyword `SCHILY.ino'
tar: Ignoring unknown extended header keyword `SCHILY.nlink'
-rw-r--r-- pgriess/THEFACEBOOK\domain users   325 2010-12-05 14:22:43 package/examples/server-unix.js
tar: Error exit delayed from previous errors

npm debug log:

npm ERR! Failed unpacking /tmp/npm-1321282051258/1321282059673-0.2583500677719712/tmp.tgz
npm ERR! couldn't unpack /tmp/npm-1321282051258/1321282059673-0.2583500677719712/tmp.tgz to /tmp/npm-1321282051258/1321282059673-0.2583500677719712/contents
npm ERR! error installing socket.io-client@0.8.7 Error: `tar "-zmvxpf" "/tmp/npm-1321282051258/1321282059673-0.2583500677719712/tmp.tgz"`
npm ERR! error installing socket.io-client@0.8.7 failed with 2
npm ERR! error installing socket.io-client@0.8.7     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/lib/utils/tar.js:221:20)
npm ERR! error installing socket.io-client@0.8.7     at ChildProcess.emit (events.js:70:17)
npm ERR! error installing socket.io-client@0.8.7     at maybeExit (child_process.js:359:16)
npm ERR! error installing socket.io-client@0.8.7     at Process.onexit (child_process.js:395:5)
npm ERR! error installing socket.io@0.8.7 Error: `tar "-zmvxpf" "/tmp/npm-1321282051258/1321282059673-0.2583500677719712/tmp.tgz"`
npm ERR! error installing socket.io@0.8.7 failed with 2
npm ERR! error installing socket.io@0.8.7     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/lib/utils/tar.js:221:20)
npm ERR! error installing socket.io@0.8.7     at ChildProcess.emit (events.js:70:17)
npm ERR! error installing socket.io@0.8.7     at maybeExit (child_process.js:359:16)
npm ERR! error installing socket.io@0.8.7     at Process.onexit (child_process.js:395:5)
npm ERR! Error: `tar "-zmvxpf" "/tmp/npm-1321282051258/1321282059673-0.2583500677719712/tmp.tgz"`
npm ERR! failed with 2
npm ERR!     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/lib/utils/tar.js:221:20)
npm ERR!     at ChildProcess.emit (events.js:70:17)
npm ERR!     at maybeExit (child_process.js:359:16)
npm ERR!     at Process.onexit (child_process.js:395:5)
npm ERR! Report this *entire* log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>
npm ERR!
npm ERR! System Linux 2.6.18-274.el5
npm ERR! command "node" "/usr/bin/npm" "install" "socket.io"
npm ERR! cwd /home/justinp
npm ERR! node -v v0.6.1
npm ERR! npm -v 1.0.105
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/justinp/npm-debug.log
npm not ok
@3rd-Eden
Copy link
Contributor

#450

@jplock
Copy link
Author

jplock commented Nov 14, 2011

Upgrading tar on CentOS 5.5 from 1.15 to 1.26 solved this issue for me.

darrachequesne added a commit that referenced this issue Jul 8, 2024
parseuri now lists better-assert as devDependency.

Source: https://github.com/galkn/parseuri
darrachequesne pushed a commit that referenced this issue Jul 8, 2024
With the engine based on µWebSockets.js (introduced in version 6.1.0),
a huge request body split in multiple chunks would throw the following
error:

> node:buffer:254
>   TypedArrayPrototypeSet(target, source, targetStart);
>   ^
>
> TypeError: Cannot perform %TypedArray%.prototype.set on a detached ArrayBuffer
>     at Buffer.set (<anonymous>)
>     at _copyActual (node:buffer:254:3)
> node:buffer:254
>   TypedArrayPrototypeSet(target, source, targetStart);
>   ^
>
> TypeError: Cannot perform %TypedArray%.prototype.set on a detached ArrayBuffer
>     at Buffer.set (<anonymous>)
>     at _copyActual (node:buffer:254:3)
>     at Function.concat (node:buffer:562:12)
>     at onEnd (.../node_modules/engine.io/build/transports-uws/polling.js:126:32)
>     at .../node_modules/engine.io/build/transports-uws/polling.js:143:17

Note: µWebSockets.js does not currently support chunked transfer
encoding.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants