nodist 環境下で npm script 使用時にエラー

nodist 環境下で npm script を使ってパスを省略しようとすると下記エラーが吐き出された。

C:\hogehoge>npm run start
npm WARN lifecycle The node binary used for scripts is C:\Program Files (x86)\Nodist\bin\node.exe but npm is using C:\Program Files (x86)\Nodist\v-x64\9.7.1\node.exe itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.

Google で検索した結果下記おまじないで解決するとのこと

npm config set scripts-prepend-node-path true

 

tagTimeLog Lite

Simple time tracking tool
Developed by Namu Works