npm version 8.12.2 の挙動が変なんでダウングレードした。これは、バージョン指定してインストール。
> npm -v npm WARN logfile could not be created: TypeError: fs.withOwnerSync is not a function 8.12.2 > npm install npm@8.12.0 --global npm WARN logfile could not be created: TypeError: fs.withOwnerSync is not a function removed 173 packages, changed 3 packages, and audited 29 packages in 6s found 0 vulnerabilities > npm --version 8.12.0