This is for the first challenge in Back-End Development.
I imported the boilerplate-npm from github to replit.
I could not run it immediately without an error, I believe because the server.js was not loading. I ran “npm i” in the shell which fixed this. I found that advice in a thread here.
After that it worked, but when I copy the link (the correct ‘run’ link) FCC says “package.json should have a valid “author” key”.
I did as you said but still have the same the same error. I made 3 versions initially to be sure and they all had the same problem so it must be happening on all imports. It loads correctly within replit (image 1) but not in its own tab (image 2).
It failed at first, but after 30s it suddenly began working and also worked in the FCC submission. I have repeated it a few more times and it is now working consistently and immediately.
The first time I tried to repeat it, however, I got the following error message initially:
nix error: building nix env: exit status 1
error: executing SQLite statement ‘pragma synchronous = normal’: file is not a database (in ‘/nix/var/nix/db/db.sqlite’)
and the npm install command resulted in 4 different options to select a file (“nodejs-xxx”). I selected randomly and it didn’t work, so just started fresh and subsequent attempts have worked.