Next.jsでError: error:0308010C:digital envelope routines::unsupportedを直す方法

 

Next.jsで下記のようなエラーが発生した場合、Nodeのバージョンが高すぎるのが原因です。

 

Error: error:0308010C:digital envelope routines::unsupported

 

これを解決するには、最低でもnodeのバージョンを v14.18.1まで下げる必要がある。

 

nodebrewを使っていれば、下記の記事でそのやり方は分かります。

 

参考にした記事は下記の通り

 

To Solve Failed to construct transformer: Error: error:0308010C:digital envelope routines::unsupported Error Simplest and easiest solution is Just downgrade node to v14.18.1 . And then Just delete node_modules and then try to rebuild your project and your error must be solved.

 

藤沢瞭介(Ryosuke Hujisawa)
  • りょすけと申します。18歳からプログラミングをはじめ、今はフロントエンドでReactを書いたり、AIの勉強を頑張っています。off.tokyoでは、ハイテクやガジェット、それからプログラミングに関する情報まで、エンジニアに役立つ情報を日々発信しています!

gitプログラミング言語

コメントする

メールアドレスが公開されることはありません。 が付いている欄は必須項目です