0

Ubuntu 12.03 LTSにhemをインストールしようとしていますが、次のようになります。

0.16以降がレジストリにないようですか?困惑..

sudo npm link
[sudo] password for tim: 
npm http GET https://registry.npmjs.org/http-proxy
npm http GET https://registry.npmjs.org/testacular
npm http GET https://registry.npmjs.org/jade
npm http GET https://registry.npmjs.org/eco/1.1.0-rc-3
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/less
npm http GET https://registry.npmjs.org/hem-less
npm http GET https://registry.npmjs.org/fast-detective
npm http GET https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/coffee-script
npm http GET https://registry.npmjs.org/watch
npm http GET https://registry.npmjs.org/stylus
npm http GET https://registry.npmjs.org/strata
npm http GET https://registry.npmjs.org/uglify-js
npm http 304 https://registry.npmjs.org/eco/1.1.0-rc-3
npm http GET https://registry.npmjs.org/eco/-/eco-1.1.0-rc-3.tgz
npm http 200 https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/underscore/-/underscore-1.4.4.tgz
npm http 200 https://registry.npmjs.org/less
npm http GET https://registry.npmjs.org/less/-/less-1.3.3.tgz
npm http 304 https://registry.npmjs.org/fast-detective
npm http GET https://registry.npmjs.org/fast-detective/-/fast-detective-0.0.2.tgz
npm http 200 https://registry.npmjs.org/hem-less
npm http GET https://registry.npmjs.org/hem-less/-/hem-less-0.0.4.tgz
npm http 304 https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/optimist/-/optimist-0.3.5.tgz
npm http 200 https://registry.npmjs.org/http-proxy
npm http GET https://registry.npmjs.org/http-proxy/-/http-proxy-0.8.7.tgz
npm http 304 https://registry.npmjs.org/coffee-script
npm http GET https://registry.npmjs.org/coffee-script/-/coffee-script-1.4.0.tgz
npm http 304 https://registry.npmjs.org/watch
npm http GET https://registry.npmjs.org/watch/-/watch-0.5.1.tgz
npm http 304 https://registry.npmjs.org/stylus
npm http GET https://registry.npmjs.org/stylus/-/stylus-0.32.0.tgz
npm http 304 https://registry.npmjs.org/strata

npm ERR! Error: No compatible version found: strata@'>=0.16.1'
npm ERR! Valid install targets:
npm ERR! ["0.8.0","0.8.1","0.8.2","0.9.0","0.9.1","0.10.0","0.10.1","0.11.0","0.12.0","0.12.1","0.12.2","0.12.3","0.12.4","0.12.5","0.13.0","0.14.0","0.15.0","0.15.1"]
npm ERR!     at installTargetsError (/usr/share/npm/lib/cache.js:488:10)
npm ERR!     at next_ (/usr/share/npm/lib/cache.js:438:17)
npm ERR!     at next (/usr/share/npm/lib/cache.js:415:44)
npm ERR!     at /usr/share/npm/lib/cache.js:408:5
npm ERR!     at saved (/usr/share/npm/lib/utils/npm-registry-client/get.js:147:7)
npm ERR!     at Object.oncomplete (/usr/lib/nodejs/graceful-fs.js:230:7)
npm ERR! You may report this log at:
npm ERR!     <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR!     reportbug --attach /home/tim/work/hem/npm-debug.log npm
npm ERR! 
npm ERR! System Linux 3.2.0-38-generic
npm ERR! command "node" "/usr/bin/npm" "link"
npm ERR! cwd /home/tim/work/hem
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
npm ERR! message No compatible version found: strata@'>=0.16.1'
npm ERR! message Valid install targets:
npm ERR! message ["0.8.0","0.8.1","0.8.2","0.9.0","0.9.1","0.10.0","0.10.1","0.11.0","0.12.0","0.12.1","0.12.2","0.12.3","0.12.4","0.12.5","0.13.0","0.14.0","0.15.0","0.15.1"]
npm http 304 https://registry.npmjs.org/uglify-js
npm http GET https://registry.npmjs.org/uglify-js/-/uglify-js-1.3.4.tgz
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/tim/work/hem/npm-debug.log
npm not ok
4

2 に答える 2

2

これらの問題は主に、古いバージョンのノードとのストラタの非互換性に起因すると思います。

かなり古いバージョンの Ubuntu のパッケージ マネージャーからノードをインストールしないでください。次の手順に従ってください:パッケージ マネージャーを使用して、またはソースから Ubuntu に node.js をインストールする必要がありますか?

次に、パッケージ マネージャーではなく、npm インストール スクリプトを使用して npm をインストールします。

curl https://npmjs.org/install.sh | sudo sh

最後に、npm を使用するのではなく、git リポジトリから hem をインストールすることをお勧めします。hem の元の開発者は、もはやそれを実際にはサポートしておらず、hem の一連の新機能が別のブランチで開発されており、git リポジトリで最新のものになっています。

git clone https://github.com/spine/hem.git
cd hem
git checkout version0_2 (or version0_3)
sudo npm install -g .

参考までに、Linux 環境での背骨、裾、その他の設定に関する投稿を書きました。

于 2013-02-16T05:42:48.123 に答える
0

最新のNode.jsとnpmを入手するために、ubuntuhttps://launchpad.net/~chris-lea/+archive/node.js/でうまく機能するppaがあります。

npmのヘムは最近大丈夫なはずなので、version0_3ブランチでもっと抜本的なものが必要な場合を除いて、githubソースを使用する必要はありませんが、version0_2ブランチはマスターにマージされ、すぐにプルーニングされるため、今後は使用しないでください。

于 2013-02-21T20:04:49.703 に答える