Managing Packages with NPM Error

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”. ← what I entered to FCC.

Thanks for any help.

Replit link: boilerplate-npm - Replit

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).

I’ll just ignore it for now and keep going.

I actually went down the path as you. I wasted an hour like this. You have to open the webpage and copy the URL and submit that.

It is working now.

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.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.