• 追加された行はこの色です。
  • 削除された行はこの色です。
#author("2020-10-23T21:55:38+09:00","default:ryuichi","ryuichi")
#author("2020-10-23T22:29:52+09:00","default:ryuichi","ryuichi")
* npm-scriptsで使うシェルを指定する [#jd482e95]

** Windowsのデフォルトのシェルを確認 [#o1a3f411]

 > npm config get shell
 C:\WINDOWS\system32\cmd.exe
 > npm config get script-shell
 null

- CMD

** シェルを指定する [#n321a18b]

*** PowerShell [#sfff7fd1]

 npm config set script-shell powershell.exe

*** Git Bash [#k5a8a07f]

 npm config set script-shell "C:\\Program Files\\git\\bin\\bash.exe"



** 参考 [#w3a86242]

- https://stackoverflow.com/questions/23243353/how-to-set-shell-for-npm-run-scripts-in-windows
- https://docs.npmjs.com/misc/config#script-shell


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS