両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン |
javascript:pnpm [2025/03/08 09:11] – [pnpm env add -g できない😅] ともやん | javascript:pnpm [2025/04/27 08:07] (現在) – [ERROR This project is configured to use yarn が発生する...🤪] ともやん |
---|
</pre></html></WRAP> | </pre></html></WRAP> |
<WRAP color_result><html><pre> | <WRAP color_result><html><pre> |
<font color="#2A7BDE"><b>==></b></font><b> Downloading pnpm binaries 10.6.1</b> | <font color="#2A7BDE"><b>==></b></font><b> Downloading pnpm binaries 10.7.0</b> |
<span style="background-color:#A2734C"><font color="#171421"> WARN </font></span> using --force I sure hope you know what you are doing | <span style="background-color:#A2734C"><font color="#171421"> WARN </font></span> using --force I sure hope you know what you are doing |
Copying pnpm CLI from /tmp/tmp.j7EqhhSusj/pnpm to /home/tomoyan/.local/share/pnpm/pnpm | Copying pnpm CLI from /tmp/tmp.RRyn6TVWxM/pnpm to /home/tomoyan/.local/share/pnpm/pnpm |
Appended new lines to /home/tomoyan/.zshrc | Appended new lines to /home/tomoyan/.zshrc |
| |
</pre></html></WRAP> | </pre></html></WRAP> |
<WRAP color_result><html><pre> | <WRAP color_result><html><pre> |
10.6.1 | 10.7.0 |
</pre></html></WRAP> | </pre></html></WRAP> |
</WRAP> | </WRAP> |
</pre></html></WRAP> | </pre></html></WRAP> |
<WRAP color_result><html><pre> | <WRAP color_result><html><pre> |
Fetching Node.js 20.17.0 ... | Fetching Node.js 22.14.0 ... |
Node.js 20.17.0 was installed | Node.js 22.14.0 was installed |
/home/tomoyan/.local/share/pnpm/nodejs/20.17.0 | /home/tomoyan/.local/share/pnpm/nodejs/22.14.0 |
All specified Node.js versions were installed | All specified Node.js versions were installed |
</pre></html></WRAP> | </pre></html></WRAP> |
</pre></html></WRAP> | </pre></html></WRAP> |
<WRAP color_result><html><pre> | <WRAP color_result><html><pre> |
Node.js 20.17.0 was installed | Node.js 22.14.0 was installed |
/home/tomoyan/.local/share/pnpm/nodejs/20.17.0 | /home/tomoyan/.local/share/pnpm/nodejs/22.14.0 |
Node.js 20.17.0 was activated | Node.js 22.14.0 was activated |
/home/tomoyan/.local/share/pnpm/node -> /home/tomoyan/.local/share/pnpm/nodejs/20.17.0/bin/node | /home/tomoyan/.local/share/pnpm/node -> /home/tomoyan/.local/share/pnpm/nodejs/22.14.0/bin/node |
</pre></html></WRAP> | </pre></html></WRAP> |
</WRAP> | </WRAP> |
</WRAP> | </WRAP> |
===== トラブルシューティング ===== | ===== トラブルシューティング ===== |
| |
| ==== ERR_PNPM_UNEXPECTED_STORE Unexpected store location が発生する...🤪 ==== |
| 参考: [[git>pnpm/pnpm/issues/3584|Can't install dependencies when one of them is linked from global · Issue #3584 · pnpm/pnpm]]\\ |
| <WRAP color_term> |
| <WRAP color_command><html><pre> |
| <font color="#0087FF"><b>$</b></font> <font color="#26A269">pnpm</font> install <font color="#A347BA">-g</font> web-ext |
| </pre></html></WRAP> |
| <WRAP color_result><html><pre> |
| <span style="background-color:#C01C28"><font color="#171421"> ERR_PNPM_UNEXPECTED_STORE </font></span> <font color="#C01C28">Unexpected store location</font> |
| |
| The dependencies at "/home/tomoyan/.local/share/pnpm/global/5/node_modules" are currently linked from the store at "/home/tomoyan/.local/share/pnpm/store/v10". |
| |
| pnpm now wants to use the store at "/home/tomoyan/.pnpm-store/v10" to link dependencies. |
| |
| If you want to use the new store location, reinstall your dependencies with "pnpm install". |
| |
| You may change the global store location by running "pnpm config set store-dir <dir> --global". |
| (This error may happen if the node_modules was installed with a different major version of pnpm) |
| </pre></html></WRAP> |
| </WRAP> |
| |
| <WRAP color_term> |
| <WRAP color_command><html><pre> |
| <font color="#0087FF"><b>$</b></font> <font color="#26A269">pnpm</font> link <font color="#A347BA">--global</font> |
| </pre></html></WRAP> |
| <WRAP color_result><html><pre> |
| <font color="#26A269">✔</font> <b>The modules directory at "/home/tomoyan/.local/share/pnpm/global/5/node_modules" will be removed and reinstalled from scratch. Proceed?</b> (Y/n) · <font color="#26A269">true</font> |
| |
| Recreating /home/tomoyan/.local/share/pnpm/global/5/node_modules |
| Downloading zeromq@6.3.0: <font color="#33C7DE">6.99 MB</font>/<font color="#33C7DE">6.99 MB</font>, done |
| Downloading @tslab/typescript-for-tslab@5.0.4: <font color="#33C7DE">7.05 MB</font>/<font color="#33C7DE">7.05 MB</font>, done |
| <span style="background-color:#A2734C"><font color="#171421"> WARN </font></span> <font color="#C01C28">6 deprecated subdependencies found:</font> are-we-there-yet@3.0.1, gauge@4.0.4, glob@7.2.3, inflight@1.0.6, npmlog@6.0.2, sourcemap-codec@1.4.8 |
| Progress: resolved <font color="#33C7DE">206</font>, reused <font color="#33C7DE">96</font>, downloaded <font color="#33C7DE">109</font>, added <font color="#33C7DE">0</font>, done |
| <span style="background-color:#A2734C"><font color="#171421"> WARN </font></span> paxmod has no binaries |
| |
| <font color="#33C7DE">/home/tomoyan/.local/share/pnpm/global/5:</font> |
| <font color="#26A269">+</font> grunt-cli <font color="#666666">1.5.0</font> |
| <font color="#26A269">+</font> paxmod <font color="#666666"><- ../../../../../my_projects/jupyter-src/paxmod</font> |
| <font color="#26A269">+</font> tslab <font color="#666666">1.0.22</font> |
| </pre></html></WRAP> |
| <WRAP color_command><html><pre> |
| <font color="#0087FF"><b>$</b></font> <font color="#26A269">pnpm</font> install <font color="#A347BA">-g</font> web-ext |
| </pre></html></WRAP> |
| <WRAP color_result><html><pre> |
| <span style="background-color:#A2734C"><font color="#171421"> WARN </font></span> <font color="#C01C28">10 deprecated subdependencies found:</font> @humanwhocodes/config-array@0.13.0, @humanwhocodes/object-schema@2.0.3, are-we-there-yet@3.0.1, eslint@8.57.1, gauge@4.0.4, glob@7.2.3, inflight@1.0.6, npmlog@6.0.2, rimraf@3.0.2, sourcemap-codec@1.4.8 |
| Packages: <font color="#26A269">+309</font> |
| <font color="#26A269">++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++</font> |
| Progress: resolved <font color="#33C7DE">515</font>, reused <font color="#33C7DE">331</font>, downloaded <font color="#33C7DE">183</font>, added <font color="#33C7DE">309</font>, done |
| |
| <font color="#33C7DE">/home/tomoyan/.local/share/pnpm/global/5:</font> |
| <font color="#26A269">+</font> web-ext <font color="#666666">8.6.0</font> |
| |
| <font color="#A2734C">╭ Warning ──────────────────────────────────────────────────────────────────────────────────────╮</font> |
| <font color="#A2734C">│</font> <font color="#A2734C">│</font> |
| <font color="#A2734C">│</font> Ignored build scripts: spawn-sync. <font color="#A2734C">│</font> |
| <font color="#A2734C">│</font> Run "pnpm approve-builds -g" to pick which dependencies should be allowed to run scripts. <font color="#A2734C">│</font> |
| <font color="#A2734C">│</font> <font color="#A2734C">│</font> |
| <font color="#A2734C">╰───────────────────────────────────────────────────────────────────────────────────────────────╯</font> |
| |
| Done in 2m 8.9s using pnpm v10.9.0 |
| </pre></html></WRAP> |
| <WRAP color_command><html><pre> |
| <font color="#0087FF"><b>$</b></font> <font color="#26A269">pnpm</font> approve-builds <font color="#A347BA">-g</font> |
| </pre></html></WRAP> |
| <WRAP color_result><html><pre> |
| ✔ Choose which packages to build (Press <font color="#2AA1B3"><space></font> to select, <font color="#2AA1B3"><a></font> to toggle all, <font color="#2AA1B3"><i></font> to invert selection) · <font color="#A347BA">No items were selected</font> |
| </pre></html></WRAP> |
| </WRAP> |
| |
==== ERROR This project is configured to use yarn が発生する...🤪 ==== | ==== ERROR This project is configured to use yarn が発生する...🤪 ==== |