概要
"azurite-https": "azurite --silent --location c:/azurite --debug c:/azurite/debug.log --oauth basic --cert ~/.ssh/mkcert/127.0.0.1.pem --key ~/.ssh/mkcert/127.0.0.1-key.pem"
これだと下記のエラーが出てしまった。
Exit due to unhandled error: ENOENT: no such file or directory, open 'D:\projects\async-ttrpg\apps\api\~\.ssh\mkcert\127.0.0.1.pem'
パス変換が予期せぬ場合の記事で対策として書かれているexport MSYS_NO_PATHCONV=1
も~/.bashrc
に設定している。
おそらく、CドライブではなくDドライブで実行していることが問題だと思われる。 gitbashで実行してもnpm scriptはcmd.exeで動いていることが問題の模様。
Copilotに聞いたところ、下記で解決した。
~/.ssh/mkcert/127.0.0.1.pem
→ %USERPROFILE%/.ssh/mkcert/127.0.0.1.pem
2025.01.27追記 npm script が動作するshellを確認
コメントでいただいた下記の記事を参考に確認
https://zenn.dev/unsoluble_sugar/articles/96c3e32ac4e723
たしかに、cmdが動いている。cmdでは ~
を解釈できていない