-
-
Save opichals/775920 to your computer and use it in GitHub Desktop.
npm link problem test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
require('util').debug('A'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
require('A'); | |
require('util').debug('B'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install -g ./A | |
npm install -g ./B |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install ./A | |
npm install ./B |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm link ./A | |
npm link ./B |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
info it worked if it ends with ok | |
verbose cli [ 'node', '/usr/local/bin/npm', 'install', '-g', './B' ] | |
info using [email protected] | |
info using [email protected] | |
verbose config file /Users/standa/.npmrc | |
verbose config file /Users/standa/.node_modules/etc/npmrc | |
verbose config file /usr/local/lib/node_modules/npm/npmrc | |
verbose cache add [ './B', null ] | |
silly cache add: name, spec, args [ undefined, './B', [ './B', null ] ] | |
verbose parsed url { pathname: './B', path: './B', href: './B' } | |
verbose caching B/package.json | |
verbose loadDefaults [email protected] | |
verbose pack /private/tmp/gist-775920/B | |
verbose pack /private/tmp/gist-775920/B /var/folders/t6/grvr7n5x2lv33yjq__jwk8p00000gn/T/npm-1331917212659/1331917212659-0.16876678867265582/tmp.tgz | |
silly makeList /private/tmp/gist-775920/B | |
silly dir, dirLen [ '/private/tmp/gist-775920/B', 27 ] | |
verbose tarball /var/folders/t6/grvr7n5x2lv33yjq__jwk8p00000gn/T/npm-1331917212659/1331917212659-0.16876678867265582/tmp.tgz | |
verbose parent /private/tmp/gist-775920/B | |
verbose mkdir (expected) error ENOENT, stat '/var/folders/t6/grvr7n5x2lv33yjq__jwk8p00000gn/T/npm-1331917212659/1331917212659-0.16876678867265582/package' | |
verbose mkdir done: /var/folders/t6/grvr7n5x2lv33yjq__jwk8p00000gn/T/npm-1331917212659/1331917212659-0.16876678867265582/package 755 | |
verbose unpack_ uid, gid [ undefined, undefined ] | |
verbose unpackTarget /var/folders/t6/grvr7n5x2lv33yjq__jwk8p00000gn/T/npm-1331917212659/1331917212659-0.16876678867265582/package | |
silly gunzTarPerm modes [ '755', '644' ] | |
verbose gunzed /var/folders/t6/grvr7n5x2lv33yjq__jwk8p00000gn/T/npm-1331917212659/1331917212659-0.16876678867265582/package | |
verbose caching /var/folders/t6/grvr7n5x2lv33yjq__jwk8p00000gn/T/npm-1331917212659/1331917212659-0.16876678867265582/package/package.json | |
verbose loadDefaults [email protected] | |
verbose tarball contents [ 'package', 'tmp.tgz' ] | |
verbose from cache /var/folders/t6/grvr7n5x2lv33yjq__jwk8p00000gn/T/npm-1331917212659/1331917212659-0.16876678867265582/package/package.json | |
verbose pack /var/folders/t6/grvr7n5x2lv33yjq__jwk8p00000gn/T/npm-1331917212659/1331917212659-0.16876678867265582/package | |
verbose pack /var/folders/t6/grvr7n5x2lv33yjq__jwk8p00000gn/T/npm-1331917212659/1331917212659-0.16876678867265582/package /Users/standa/.npm/B/1.0.0/package.tgz | |
silly makeList /var/folders/t6/grvr7n5x2lv33yjq__jwk8p00000gn/T/npm-1331917212659/1331917212659-0.16876678867265582/package | |
silly dir, dirLen [ '/var/folders/t6/grvr7n5x2lv33yjq__jwk8p00000gn/T/npm-1331917212659/1331917212659-0.16876678867265582/package', | |
silly dir, dirLen 109 ] | |
verbose tarball /Users/standa/.npm/B/1.0.0/package.tgz | |
verbose parent /var/folders/t6/grvr7n5x2lv33yjq__jwk8p00000gn/T/npm-1331917212659/1331917212659-0.16876678867265582/package | |
verbose mkdir (expected) error ENOENT, stat '/Users/standa/.npm/B/1.0.0/package' | |
verbose mkdir done: /Users/standa/.npm/B/1.0.0/package 755 | |
verbose unpack_ uid, gid [ undefined, undefined ] | |
verbose unpackTarget /Users/standa/.npm/B/1.0.0/package | |
silly gunzTarPerm modes [ '755', '644' ] | |
verbose gunzed /Users/standa/.npm/B/1.0.0/package | |
verbose caching /Users/standa/.npm/B/1.0.0/package/package.json | |
verbose loadDefaults [email protected] | |
silly updated sha bytes 304 | |
info shasum a99d3b79c10c70b226fed847b033ac133a30b613 | |
info shasum /Users/standa/.npm/B/1.0.0/package.tgz | |
verbose from cache /Users/standa/.npm/B/1.0.0/package/package.json | |
verbose chmod /Users/standa/.npm/B/1.0.0/package.tgz 644 | |
verbose chown [ '/Users/standa/.npm/B/1.0.0/package.tgz', 501, 20 ] | |
silly resolved [ { name: 'B', | |
silly resolved version: '1.0.0', | |
silly resolved main: './b', | |
silly resolved bin: { 'npm-test-b': './b.js' }, | |
silly resolved dependencies: { A: '>=1.0.0' }, | |
silly resolved engines: { node: '>=0.2.0' }, | |
silly resolved _id: '[email protected]', | |
silly resolved devDependencies: {}, | |
silly resolved optionalDependencies: {}, | |
silly resolved _engineSupported: true, | |
silly resolved _npmVersion: '1.1.9', | |
silly resolved _nodeVersion: 'v0.6.13', | |
silly resolved _defaultsLoaded: true, | |
silly resolved dist: { shasum: 'a99d3b79c10c70b226fed847b033ac133a30b613' }, | |
silly resolved _from: './B', | |
silly resolved scripts: {} } ] | |
info into /Users/standa/.node_modules/lib [email protected] | |
info installOne [email protected] | |
verbose from cache /Users/standa/.npm/B/1.0.0/package/package.json | |
info unbuild /Users/standa/.node_modules/lib/node_modules/B | |
verbose mkdir (expected) error ENOENT, stat '/Users/standa/.node_modules/lib/node_modules/B' | |
verbose mkdir done: /Users/standa/.node_modules/lib/node_modules/B 755 | |
verbose unpack_ uid, gid [ undefined, undefined ] | |
verbose unpackTarget /Users/standa/.node_modules/lib/node_modules/B | |
silly gunzTarPerm modes [ '755', '644' ] | |
verbose gunzed /Users/standa/.node_modules/lib/node_modules/B | |
verbose caching /Users/standa/.node_modules/lib/node_modules/B/package.json | |
verbose loadDefaults [email protected] | |
info preinstall [email protected] | |
verbose from cache /Users/standa/.node_modules/lib/node_modules/B/package.json | |
verbose readDependencies: using package.json deps | |
verbose from cache /Users/standa/.node_modules/lib/node_modules/B/package.json | |
verbose readDependencies: using package.json deps | |
verbose cache add [ 'A@>=1.0.0', null ] | |
silly cache add: name, spec, args [ undefined, 'A@>=1.0.0', [ 'A@>=1.0.0', null ] ] | |
verbose parsed url { pathname: 'A@', path: 'A@', href: 'A@' } | |
silly cache add: name, spec, args [ 'A', '>=1.0.0', [ 'A', '>=1.0.0' ] ] | |
verbose parsed url { pathname: '=1.0.0', path: '=1.0.0', href: '=1.0.0' } | |
verbose addNamed [ 'A', '>=1.0.0' ] | |
verbose addNamed [ null, '>=1.0.0' ] | |
silly name, range, hasData [ 'A', '>=1.0.0', false ] | |
verbose raw, before any munging A | |
verbose url resolving [ 'https://registry.npmjs.org/', './A' ] | |
verbose url resolved https://registry.npmjs.org/A | |
verbose etag "CMZTX1BQVSBZN9ZA2GQ0K1IIC" | |
http GET https://registry.npmjs.org/A | |
http 304 https://registry.npmjs.org/A | |
silly get cb [ 304, | |
silly get cb { server: 'CouchDB/1.2.0 (Erlang OTP/R15B)', | |
silly get cb etag: '"CMZTX1BQVSBZN9ZA2GQ0K1IIC"', | |
silly get cb date: 'Fri, 16 Mar 2012 17:00:13 GMT', | |
silly get cb 'content-length': '0' } ] | |
verbose etag A from cache | |
silly name, range, hasData 2 [ 'A', '>=1.0.0', true ] | |
silly versions [ 'A', [ '0.0.1' ] ] | |
verbose about to build /Users/standa/.node_modules/lib/node_modules/B | |
info unbuild /Users/standa/.node_modules/lib/node_modules/B | |
verbose from cache /Users/standa/.node_modules/lib/node_modules/B/package.json | |
info preuninstall [email protected] | |
info uninstall [email protected] | |
verbose unbuild [email protected] [ true, | |
verbose unbuild [email protected] '/Users/standa/.node_modules/lib/node_modules', | |
verbose unbuild [email protected] '/Users/standa/.node_modules/lib/node_modules' ] | |
verbose binRoot [ '/Users/standa/.node_modules/bin', | |
verbose binRoot { 'npm-test-b': './b.js' } ] | |
info postuninstall [email protected] | |
ERR! Error: No compatible version found: A@'>=1.0.0' | |
ERR! Valid install targets: | |
ERR! ["0.0.1"] | |
ERR! at installTargetsError (/usr/local/lib/node_modules/npm/lib/cache.js:488:10) | |
ERR! at next_ (/usr/local/lib/node_modules/npm/lib/cache.js:438:17) | |
ERR! at next (/usr/local/lib/node_modules/npm/lib/cache.js:415:44) | |
ERR! at /usr/local/lib/node_modules/npm/lib/cache.js:408:5 | |
ERR! at saved (/usr/local/lib/node_modules/npm/lib/utils/npm-registry-client/get.js:150:7) | |
ERR! at Object.oncomplete (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:231:7) | |
ERR! You may report this log at: | |
ERR! <http://github.com/isaacs/npm/issues> | |
ERR! or email it to: | |
ERR! <[email protected]> | |
ERR! | |
ERR! System Darwin 11.3.0 | |
ERR! command "node" "/usr/local/bin/npm" "install" "-g" "./B" | |
ERR! cwd /private/tmp/gist-775920 | |
ERR! node -v v0.6.13 | |
ERR! npm -v 1.1.9 | |
ERR! message No compatible version found: A@'>=1.0.0' | |
ERR! message Valid install targets: | |
ERR! message ["0.0.1"] | |
verbose exit [ 1, true ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
info it worked if it ends with ok | |
verbose cli [ 'node', '/usr/local/bin/npm', 'link', './B' ] | |
info using [email protected] | |
info using [email protected] | |
verbose config file /Users/standa/.npmrc | |
verbose config file /Users/standa/.node_modules/etc/npmrc | |
verbose config file /usr/local/lib/node_modules/npm/npmrc | |
verbose caching /private/tmp/gist-775920/B/package.json | |
verbose loadDefaults [email protected] | |
verbose link: build target /Users/standa/.node_modules/lib/node_modules/B | |
verbose install(where, what) [ '/private/tmp/gist-775920/B', [] ] | |
verbose from cache /private/tmp/gist-775920/B/package.json | |
verbose readDependencies: using package.json deps | |
verbose where, deps [ '/private/tmp/gist-775920/B', [ 'A' ] ] | |
verbose from cache /private/tmp/gist-775920/B/package.json | |
info preinstall [email protected] | |
verbose from cache /private/tmp/gist-775920/B/package.json | |
verbose readDependencies: using package.json deps | |
verbose cache add [ 'A@>=1.0.0', null ] | |
silly cache add: name, spec, args [ undefined, 'A@>=1.0.0', [ 'A@>=1.0.0', null ] ] | |
verbose parsed url { pathname: 'A@', path: 'A@', href: 'A@' } | |
silly cache add: name, spec, args [ 'A', '>=1.0.0', [ 'A', '>=1.0.0' ] ] | |
verbose parsed url { pathname: '=1.0.0', path: '=1.0.0', href: '=1.0.0' } | |
verbose addNamed [ 'A', '>=1.0.0' ] | |
verbose addNamed [ null, '>=1.0.0' ] | |
silly name, range, hasData [ 'A', '>=1.0.0', false ] | |
verbose raw, before any munging A | |
verbose url resolving [ 'https://registry.npmjs.org/', './A' ] | |
verbose url resolved https://registry.npmjs.org/A | |
verbose etag "CMZTX1BQVSBZN9ZA2GQ0K1IIC" | |
http GET https://registry.npmjs.org/A | |
http 304 https://registry.npmjs.org/A | |
silly get cb [ 304, | |
silly get cb { server: 'CouchDB/1.2.0 (Erlang OTP/R15B)', | |
silly get cb etag: '"CMZTX1BQVSBZN9ZA2GQ0K1IIC"', | |
silly get cb date: 'Fri, 16 Mar 2012 17:00:45 GMT', | |
silly get cb 'content-length': '0' } ] | |
verbose etag A from cache | |
silly name, range, hasData 2 [ 'A', '>=1.0.0', true ] | |
silly versions [ 'A', [ '0.0.1' ] ] | |
ERR! Error: No compatible version found: A@'>=1.0.0' | |
ERR! Valid install targets: | |
ERR! ["0.0.1"] | |
ERR! at installTargetsError (/usr/local/lib/node_modules/npm/lib/cache.js:488:10) | |
ERR! at next_ (/usr/local/lib/node_modules/npm/lib/cache.js:438:17) | |
ERR! at next (/usr/local/lib/node_modules/npm/lib/cache.js:415:44) | |
ERR! at /usr/local/lib/node_modules/npm/lib/cache.js:408:5 | |
ERR! at saved (/usr/local/lib/node_modules/npm/lib/utils/npm-registry-client/get.js:150:7) | |
ERR! at Object.oncomplete (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:231:7) | |
ERR! You may report this log at: | |
ERR! <http://github.com/isaacs/npm/issues> | |
ERR! or email it to: | |
ERR! <[email protected]> | |
ERR! | |
ERR! System Darwin 11.3.0 | |
ERR! command "node" "/usr/local/bin/npm" "link" "./B" | |
ERR! cwd /private/tmp/gist-775920 | |
ERR! node -v v0.6.13 | |
ERR! npm -v 1.1.9 | |
ERR! message No compatible version found: A@'>=1.0.0' | |
ERR! message Valid install targets: | |
ERR! message ["0.0.1"] | |
verbose exit [ 1, true ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "A", | |
"version": "1.1.0", | |
"main": "./a", | |
"bin": { "npm-test-a": "./a.js" }, | |
"engines": { | |
"node": ">=0.2.0" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "B", | |
"version": "1.0.0", | |
"main": "./b", | |
"bin": { "npm-test-b": "./b.js" }, | |
"dependencies": { | |
"A": ">=1.0.0" | |
}, | |
"engines": { | |
"node": ">=0.2.0" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Wonderful, thanks! Looking into the issue now.