Closed arbach closed 10 years ago
Well, um, that's interesting, because npm most definitely has a version 0.5.0 -- see https://npmjs.org/package/tern
If I try to npm install
the current tern_for_sublime, with npm version 1.3.15, it works without trouble.
I compiled node from source and that solve the problem, most likely ubuntu package is not updated. I am most have tried that before reporting the issue.
When trying to install the server on ubuntu I get the error ERR! Error: When trying to install the server on ubuntu I get the error ERR! Error: No compatible version found: tern@'>=0.5.0-' ERR! Valid install targets: ERR! ["0.1.0","0.2.0","0.3.0","0.4.0"]
full npm-debug file :
info it worked if it ends with ok verbose cli [ 'node', '/usr/bin/npm', 'install' ] info using npm@1.1.4 info using node@v0.6.12 verbose config file /home/mike/.npmrc verbose config file /usr/etc/npmrc verbose config file /usr/share/npm/npmrc verbose caching /home/mike/.vim/bundle/tern_for_vim/package.json verbose loadDefaults tern_for_vim@0.4.0 verbose readDependencies: using package.json deps verbose where, deps [ '/home/mike/.vim/bundle/tern_for_vim', [ 'tern' ] ] verbose from cache /home/mike/.vim/bundle/tern_for_vim/package.json info preinstall tern_for_vim@0.4.0 verbose from cache /home/mike/.vim/bundle/tern_forvim/package.json verbose readDependencies: using package.json deps verbose cache add [ 'tern@>=0.5', null ] silly cache add: name, spec, args [ undefined, 'tern@>=0.5', [ 'tern@>=0.5', null ] ] verbose parsed url { pathname: 'tern@', path: 'tern@', href: 'tern@' } silly cache add: name, spec, args [ 'tern', '>=0.5', [ 'tern', '>=0.5' ] ] verbose parsed url { pathname: '=0.5', path: '=0.5', href: '=0.5' } verbose addNamed [ 'tern', '>=0.5' ] verbose addNamed [ null, '>=0.5.0-' ] silly name, range, hasData [ 'tern', '>=0.5.0-', false ] verbose raw, before any munging tern verbose url resolving [ 'https://registry.npmjs.org/', './tern' ] verbose url resolved https://registry.npmjs.org/tern verbose etag "4DDUS0EMSN1ZM3J0LD76SJFAY" http GET https://registry.npmjs.org/tern silly get cb [ 304, undefined ] verbose etag tern from cache silly name, range, hasData 2 [ 'tern', '>=0.5.0-', true ] silly versions [ 'tern', [ '0.1.0', '0.2.0', '0.3.0', '0.4.0' ] ] ERR! Error: No compatible version found: tern@'>=0.5.0-' ERR! Valid install targets: ERR! ["0.1.0","0.2.0","0.3.0","0.4.0"] ERR! at installTargetsError (/usr/share/npm/lib/cache.js:488:10) ERR! at next (/usr/share/npm/lib/cache.js:438:17) ERR! at next (/usr/share/npm/lib/cache.js:415:44) ERR! at /usr/share/npm/lib/cache.js:408:5 ERR! at saved (/usr/share/npm/lib/utils/npm-registry-client/get.js:147:7) ERR! at Object.oncomplete (/usr/lib/nodejs/graceful-fs.js:230:7) ERR! You may report this log at: ERR! http://bugs.debian.org/npm ERR! or use ERR! reportbug --attach /home/mike/.vim/bundle/tern_for_vim/npm-debug.log npm ERR! ERR! System Linux 3.5.0-45-generic ERR! command "node" "/usr/bin/npm" "install" ERR! cwd /home/mike/.vim/bundle/tern_for_vim ERR! node -v v0.6.12 ERR! npm -v 1.1.4 ERR! message No compatible version found: tern@'>=0.5.0-' ERR! message Valid install targets: ERR! message ["0.1.0","0.2.0","0.3.0","0.4.0"] verbose exit [ 1, true ] ERR! Valid install targets: ERR! ["0.1.0","0.2.0","0.3.0","0.4.0"]
full npm-debug file :
info it worked if it ends with ok verbose cli [ 'node', '/usr/bin/npm', 'install' ] info using npm@1.1.4 info using node@v0.6.12 verbose config file /home/mike/.npmrc verbose config file /usr/etc/npmrc verbose config file /usr/share/npm/npmrc verbose caching /home/mike/.vim/bundle/tern_for_vim/package.json verbose loadDefaults tern_for_vim@0.4.0 verbose readDependencies: using package.json deps verbose where, deps [ '/home/mike/.vim/bundle/tern_for_vim', [ 'tern' ] ] verbose from cache /home/mike/.vim/bundle/tern_for_vim/package.json info preinstall tern_for_vim@0.4.0 verbose from cache /home/mike/.vim/bundle/tern_forvim/package.json verbose readDependencies: using package.json deps verbose cache add [ 'tern@>=0.5', null ] silly cache add: name, spec, args [ undefined, 'tern@>=0.5', [ 'tern@>=0.5', null ] ] verbose parsed url { pathname: 'tern@', path: 'tern@', href: 'tern@' } silly cache add: name, spec, args [ 'tern', '>=0.5', [ 'tern', '>=0.5' ] ] verbose parsed url { pathname: '=0.5', path: '=0.5', href: '=0.5' } verbose addNamed [ 'tern', '>=0.5' ] verbose addNamed [ null, '>=0.5.0-' ] silly name, range, hasData [ 'tern', '>=0.5.0-', false ] verbose raw, before any munging tern verbose url resolving [ 'https://registry.npmjs.org/', './tern' ] verbose url resolved https://registry.npmjs.org/tern verbose etag "4DDUS0EMSN1ZM3J0LD76SJFAY" http GET https://registry.npmjs.org/tern silly get cb [ 304, undefined ] verbose etag tern from cache silly name, range, hasData 2 [ 'tern', '>=0.5.0-', true ] silly versions [ 'tern', [ '0.1.0', '0.2.0', '0.3.0', '0.4.0' ] ] ERR! Error: No compatible version found: tern@'>=0.5.0-' ERR! Valid install targets: ERR! ["0.1.0","0.2.0","0.3.0","0.4.0"] ERR! at installTargetsError (/usr/share/npm/lib/cache.js:488:10) ERR! at next (/usr/share/npm/lib/cache.js:438:17) ERR! at next (/usr/share/npm/lib/cache.js:415:44) ERR! at /usr/share/npm/lib/cache.js:408:5 ERR! at saved (/usr/share/npm/lib/utils/npm-registry-client/get.js:147:7) ERR! at Object.oncomplete (/usr/lib/nodejs/graceful-fs.js:230:7) ERR! You may report this log at: ERR! http://bugs.debian.org/npm ERR! or use ERR! reportbug --attach /home/mike/.vim/bundle/tern_for_vim/npm-debug.log npm ERR! ERR! System Linux 3.5.0-45-generic ERR! command "node" "/usr/bin/npm" "install" ERR! cwd /home/mike/.vim/bundle/tern_for_vim ERR! node -v v0.6.12 ERR! npm -v 1.1.4 ERR! message No compatible version found: tern@'>=0.5.0-' ERR! message Valid install targets: ERR! message ["0.1.0","0.2.0","0.3.0","0.4.0"] verbose exit [ 1, true ]