Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

500 (Internal Server Error), while following Getting started in Readme #2899

Closed
2 tasks done
driglou opened this issue Sep 3, 2017 · 4 comments
Closed
2 tasks done

Comments

@driglou
Copy link

driglou commented Sep 3, 2017

I have just heard about next.js so I wanted to give it a try, however as I ran npm run dev I get Internal Server Error on localhost:3000 and in console GET http://localhost:3000/ 500 (Internal Server Error)

Same results using zeit/nextgram

  • I have checked Next.js Issues and while my issue seems like a duplicate, there was no solution.
  • Followed everything as in Readme, used Powershell, Git bash, results are always the same.

Error text
{ Error: Cannot find module D:\path\.next\dist\pages\_error at _callee$ (D\path\node_modules\next\dist\server\resolve.j s:220:19) at tryCatch (D:\path\node_modules\regenerator-runtime\runtim e.js:65:40) at Generator.invoke [as _invoke] (D:\path\node_modules\regen erator-runtime\runtime.js:303:22) at Generator.prototype.(anonymous function) [as next] (D:\DEV\ up\node_modules\regenerator-runtime\runtime.js:117:21) at step (D:\path\node_modules\babel-runtime\helpers\asyncToG enerator.js:17:30) at D:\\path\node_modules\babel-runtime\helpers\asyncToGenerat or.js:28:13 code: 'ENOENT' }

Tech Version
next 3.2.1
node 7.5.0
npm 4.1.2
OS Windows 10
@timneutkens
Copy link
Member

Interesting, I can't debug it though cause it's windows. @arunoda could you check it?

@phc5
Copy link

phc5 commented Oct 13, 2017

Simliar issue to #1524.

I was getting Internal Server Error after following the setup steps in the README.

I had my project in ~/c/Users/<username>/Desktop/<project-name> but after moving it down to ~/c/Users/<project-name> I was able to run npm run dev without any issues on Windows 10 (npm v5.3.0 and node v8.5.0).

Try moving your project folder down your file system.

@DanielRSnell
Copy link

Just attempted this with the same error without success

@liweinan0423
Copy link
Contributor

maybe the file path is too long. try move the project directory to the top level of the partition, like d:\<project-name>

@lock lock bot locked as resolved and limited conversation to collaborators Mar 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants