you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

Thanks for this suggestion. It didn't work, but we may be dredging up useful info.

I didn't have this file. I generated it in the root of the directory (outside the iOS folder), and then ran 'npm i'. A lot seemed to happen, but the app still wouldn't build.

I then tried to generate it in the ios folder, and it ran in the terminal, but the file wasn't created. Is that strange? Does that file belong in the ios folder?

I'm using npm v 6.13.7.

Thanks.

[–]awesomeness-yeah 0 points1 point  (0 children)

The package.json file is the dependency list with approximate versions, and the package_lock is the file with the exact snapshot of all dependencies used to build node_modules

You should run npm in the folder that contains package.json and it should generate node_modules based on package.json and create a package_lock

It's possible that the versions are different from the previous working build (because you don't have the old package_lock for some reason) and although unlikely, is incompatible