0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ヴァージョン指定してnpm i libxmljs2 でエラーになる

Last updated at Posted at 2024-06-18

libxmljs2のinstallでエラー

Node v20.9.0の環境で

npm i libxmljs2@0.29.0

をすると、以下のようなエラーが出て詰まったのでメモ。

~ 前略 ~
npm error node-pre-gyp http GET https://github.com/marudor/libxmljs2/releases/download/v0.29.0/node-v115-darwin-arm64-unknown.tar.gz
npm error node-pre-gyp ERR! install response status 404 Not Found on https://github.com/marudor/libxmljs2/releases/download/v0.29.0/node-v115-darwin-arm64-unknown.tar.gz 
npm error node-pre-gyp WARN Pre-built binaries not installable for libxmljs2@0.29.0 and node@20.14.0 (node-v115 ABI, unknown) (falling back to source compile with node-gyp) 
npm error node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/marudor/libxmljs2/releases/download/v0.29.0/node-v115-darwin-arm64-unknown.tar.gz 

~ 後略 ~

github.comからパッケージのtar.gzをダウンロードしようとして、404になってるらしい。

リリースノートで、Node versionを見直しましょう

libxmljs2のリリースノートを見てみると、単純にサポートしてる Node versionが合ってないだけ。。

今回は、Node v20.9.0の環境なので、

npm i libxmljs2@0.32.0

でインストールできた。

それにしても、結構頻繁にNodeのヴァージョンサポート切れるライブラリなんですね。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?