search
LoginSignup
2
Help us understand the problem. What are the problem?

More than 1 year has passed since last update.

posted at

updated at

Next.jsの開発サーバーが立ち上がらなかったとき

初めにnextjs-blogディレクトリで
npm run dev を実行すると、

learn-starter@0.1.0 dev /Users/hirosawamasayuki/Desktop/nextjs-blog
next dev
sh: next: command not found
npm ERR! code ELIFECYCLE



とエラーがでた。

解決法:npm upgrade
大量のパッケージが追加され、npm run devも可能になった。

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
What you can do with signing up
2
Help us understand the problem. What are the problem?