node_modules以下の.binをパスに加えるPowerShell$env:path = ".\node_modules\.bin;" + $env:path # 一時的に設定する notepad.exe $profile # 常にパスの設定を有効にするなら、上の内容をプロファイルに記述する パスが通っているか確認するnpm install foo # 適当なパッケージをインストールして、 get-command foo # node_modules\.binにインストールされたコマンドのパスを確認する 環境変数 - Windows
参考https://stackoverflow.com/questions/573817/where-are-environment-variables-stored-in-registry 参考https://superuser.com/questions/392271/prepend-to-path-variable-windows |
|