メインコンテンツまでスキップ
バージョン: 11.x

エラーコード

ERR_PNPM_UNEXPECTED_STORE​

モジュールディレクトリが存在し、別のストアディレクトリにリンクされています。

If you changed the store directory intentionally, run pnpm install and pnpm will reinstall the dependencies using the new store.

ERR_PNPM_NO_MATCHING_VERSION_INSIDE_WORKSPACE​

ワークスペースに存在しないワークスペース依存関係がプロジェクトに含まれています。

For instance, package foo has bar@1.0.0 in the dependencies:

{
"name": "foo",
"version": "1.0.0",
"dependencies": {
"bar": "workspace:1.0.0"
}
}

However, there is only bar@2.0.0 in the workspace, so pnpm install will fail.

To fix this error, all dependencies that use the workspace protocol should be updated to use versions of packages that are present in the workspace. This can be done either manually or using the pnpm -r update command.

ERR_PNPM_PEER_DEP_ISSUES​

pnpm install will fail if the project has unresolved peer dependencies or the peer dependencies are not matching the wanted ranges. この問題を解決するには、不足している peer dependencies をインストールします。

You may also selectively ignore these errors using the peerDependencyRules.ignoreMissing and peerDependencyRules.allowedVersions settings.

ERR_PNPM_OUTDATED_LOCKFILE​

このエラーは、ロックファイルを変更しないとインストールを実行できない場合に発生します。 This might happen in a CI environment if someone has changed a package.json file in the repository without running pnpm install afterwards. あるいは、誰かがロックファイルへの変更をコミットするのを忘れたかです。

To fix this error, just run pnpm install and commit the changes to the lockfile.

ERR_PNPM_TARBALL_INTEGRITY​

このエラーは、ダウンロードされたパッケージの tarball が整合性チェックサムの期待値と一致しなかったことを示します。

If you use the npm registry (registry.npmjs.org), then this probably means that the integrity in your lockfile is incorrect. これは、ロックファイルのマージ競合を正常に解決しなかった場合に発生する可能性があります。

パッケージの既存のバージョンを上書きできるレジストリを使用している場合、あなたのローカルのメタデータキャッシュに、パッケージの古いバージョンの整合性チェックサムがキャッシュされているのかもしれません。 In this case, you should run pnpm store prune. このコマンドは、あなたのローカルのメタデータキャッシュを削除します。その後、失敗したコマンドを再試行してください。

しかし、パッケージが正しいURLからダウンロードされていることも注意して確認してください。 URLはエラーメッセージに表示されています。

ERR_PNPM_MISMATCHED_RELEASE_CHANNEL​

The config field use-node-version defines a release channel different from version suffix.

例:

  • rc/20.0.0 defines an rc channel but the version is that of a stable release.
  • release/20.0.0-rc.0 defines a release channel but the version is that of an RC release.

To fix this error, either remove the release channel prefix or correct the version suffix.

Note that it is not allowed to specify node versions like lts/Jod. The correct syntax for stable release is strictly X.Y.Z or release/X.Y.Z.

ERR_PNPM_INVALID_NODE_VERSION​

The value of config field use-node-version has an invalid syntax.

Below are the valid forms of use-node-version:

  • Stable release:
    • X.Y.Z (X, Y, Z are integers)
    • release/X.Y.Z (X, Y, Z are integers)
  • RC release:
    • X.Y.Z-rc.W (X, Y, Z, W are integers)
    • rc/X.Y.Z-rc.W (X, Y, Z, W are integers)