Skip to content

v0.5.10 broken for node 0.10.x #72

@rochoa

Description

@rochoa

Republished v0.5.10 fails to install with node 0.10.x.

/tmp/zipfile-test$ rm -rf node_modules/
/tmp/zipfile-test$ node -v
v0.10.46
/tmp/zipfile-test$ npm -v
2.14.22
/tmp/zipfile-test$ npm install zipfile@0.5.10
npm WARN package.json zipfile-test@1.0.0 No description
npm WARN package.json zipfile-test@1.0.0 No repository field.
npm WARN package.json zipfile-test@1.0.0 No README data
-
> zipfile@0.5.10 install /private/tmp/zipfile-test/node_modules/zipfile
> node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! UNCAUGHT EXCEPTION
node-pre-gyp ERR! stack Error: Cannot find module 'mkdirp'
node-pre-gyp ERR! stack     at Function.Module._resolveFilename (module.js:338:15)
node-pre-gyp ERR! stack     at Function.Module._load (module.js:280:25)
node-pre-gyp ERR! stack     at Module.require (module.js:364:17)
node-pre-gyp ERR! stack     at require (module.js:380:17)
node-pre-gyp ERR! stack     at Object.<anonymous> (/private/tmp/zipfile-test/node_modules/zipfile/node_modules/node-pre-gyp/node_modules/tar/node_modules/fstream/lib/writer.js:6:13)
node-pre-gyp ERR! stack     at Module._compile (module.js:456:26)
node-pre-gyp ERR! stack     at Object.Module._extensions..js (module.js:474:10)
node-pre-gyp ERR! stack     at Module.load (module.js:356:32)
node-pre-gyp ERR! stack     at Function.Module._load (module.js:312:12)
node-pre-gyp ERR! stack     at Module.require (module.js:364:17)
node-pre-gyp ERR! System Darwin 15.6.0
node-pre-gyp ERR! command "node" "/private/tmp/zipfile-test/node_modules/zipfile/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /private/tmp/zipfile-test/node_modules/zipfile
node-pre-gyp ERR! node -v v0.10.46
node-pre-gyp ERR! node-pre-gyp -v v0.6.32
node-pre-gyp ERR! This is a bug in `node-pre-gyp`.
node-pre-gyp ERR! Try to update node-pre-gyp and file an issue if it does not help:
node-pre-gyp ERR!     <https://github.com/mapbox/node-pre-gyp/issues>
npm ERR! Darwin 15.6.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "zipfile@0.5.10"
npm ERR! node v0.10.46
npm ERR! npm  v2.14.22
npm ERR! code ELIFECYCLE

npm ERR! zipfile@0.5.10 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 7
npm ERR!
npm ERR! Failed at the zipfile@0.5.10 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! This is most likely a problem with the zipfile package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs zipfile
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR!     npm owner ls zipfile
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /private/tmp/zipfile-test/npm-debug.log
/tmp/zipfile-test$ npm install zipfile@0.5.9
npm WARN package.json zipfile-test@1.0.0 No description
npm WARN package.json zipfile-test@1.0.0 No repository field.
npm WARN package.json zipfile-test@1.0.0 No README data
-
> zipfile@0.5.9 install /private/tmp/zipfile-test/node_modules/zipfile
> node-pre-gyp install --fallback-to-build

[zipfile] Success: "/private/tmp/zipfile-test/node_modules/zipfile/lib/binding/node-v11-darwin-x64/zipfile.node" is installed via remote
zipfile@0.5.9 node_modules/zipfile
└── nan@2.1.0

Same for a Linux machine:

/tmp/zipfile-test$ npm install zipfile@0.5.10
|
> zipfile@0.5.10 install /tmp/zipfile-test/node_modules/zipfile
> node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! UNCAUGHT EXCEPTION
node-pre-gyp ERR! stack Error: Cannot find module 'mkdirp'
node-pre-gyp ERR! stack     at Function.Module._resolveFilename (module.js:338:15)
node-pre-gyp ERR! stack     at Function.Module._load (module.js:280:25)
node-pre-gyp ERR! stack     at Module.require (module.js:364:17)
node-pre-gyp ERR! stack     at require (module.js:380:17)
node-pre-gyp ERR! stack     at Object.<anonymous> (/tmp/zipfile-test/node_modules/zipfile/node_modules/node-pre-gyp/node_modules/tar/node_modules/fstream/lib/writer.js:6:13)
node-pre-gyp ERR! stack     at Module._compile (module.js:456:26)
node-pre-gyp ERR! stack     at Object.Module._extensions..js (module.js:474:10)
node-pre-gyp ERR! stack     at Module.load (module.js:356:32)
node-pre-gyp ERR! stack     at Function.Module._load (module.js:312:12)
node-pre-gyp ERR! stack     at Module.require (module.js:364:17)
node-pre-gyp ERR! System Linux 3.13.0-32-generic
node-pre-gyp ERR! command "node" "/tmp/zipfile-test/node_modules/zipfile/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /tmp/zipfile-test/node_modules/zipfile
node-pre-gyp ERR! node -v v0.10.26
node-pre-gyp ERR! node-pre-gyp -v v0.6.32
node-pre-gyp ERR! This is a bug in `node-pre-gyp`.
node-pre-gyp ERR! Try to update node-pre-gyp and file an issue if it does not help:
node-pre-gyp ERR!     <https://github.com/mapbox/node-pre-gyp/issues>
npm ERR! Linux 3.13.0-32-generic
npm ERR! argv "node" "/usr/bin/npm" "install" "zipfile@0.5.10"
npm ERR! node v0.10.26
npm ERR! npm  v2.14.16
npm ERR! code ELIFECYCLE

npm ERR! zipfile@0.5.10 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 7
npm ERR!
npm ERR! Failed at the zipfile@0.5.10 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! This is most likely a problem with the zipfile package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs zipfile
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR!     npm owner ls zipfile
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /tmp/zipfile-test/npm-debug.log
/tmp/zipfile-test$ npm install zipfile@0.5.9
-
> zipfile@0.5.9 install /tmp/zipfile-test/node_modules/zipfile
> node-pre-gyp install --fallback-to-build

[zipfile] Success: "/tmp/zipfile-test/node_modules/zipfile/lib/binding/node-v11-linux-x64/zipfile.node" is installed via remote
zipfile@0.5.9 node_modules/zipfile
└── nan@2.1.0

It installs OK when installing it with:

$ node -v
v6.9.2
$ npm -v
3.10.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions