<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hitonatsu</author_name>
  <author_url>https://blog.hatena.ne.jp/hitonatsu/</author_url>
  <blog_title>ひと夏の技術</blog_title>
  <blog_url>https://tech-1natsu.hatenablog.com/</blog_url>
  <categories>
    <anon>知見</anon>
    <anon>トラブルシューティング</anon>
  </categories>
  <description>※この情報はpnpm@9時点での情報です tl;dr pnpm i --resolution-only pnpm i --fix-lockfile peer dependenciesで問題が起こったら、どちらかを実行する。 pnpmを使っているプロジェクトで、node_modulesの中に不必要なモジュール（optional peer dependencies）がずっと入っていたりする問題がある。 このことで普通はそんなに問題は起こらないが、稀に問題を引き起こすことがある。 昔入ってしまったpeer dependenciesがnode_modules内に存在することで こういったことが起こる。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech-1natsu.hatenablog.com%2Fentry%2F2024%2F08%2F13%2F140104&quot; title=&quot;pnpmで意図しないpeer dependenciesがあり問題が起こるときの対処 - ひと夏の技術&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-08-13 14:01:04</published>
  <title>pnpmで意図しないpeer dependenciesがあり問題が起こるときの対処</title>
  <type>rich</type>
  <url>https://tech-1natsu.hatenablog.com/entry/2024/08/13/140104</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
