0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【備忘録】Next.jsのアプリを動かしたときにnpm script使用時の警告

0
Posted at

プログラミング勉強日記

2020年10月9日
nodistの環境でアプリを起動したときに警告が出てしまっていたのでそれの解決方法を記録する。

警告の内容

 npm run devで実行すると以下のような警告が出てしまった。警告を無視しても動かすことはできた。

PS C:\Users\myblog> npm run dev
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\12.18.4\node.exe itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.

> myblog@0.1.0 dev C:\Users\myblog
> next dev

解決方法

 警告メッセージのところに--script-prepend-node-pathのオプションを使うとあるように使ったら見事に警告が消えた。

npm config set scripts-prepend-node-path true
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?