Tech: Angular 7, Angular Cli, Firebase and Firebase Functions (for server side rendering), Node V8 and Webpack.

Error Name: gen_package_lock.

Issue: When I deploy to my Firebase hosting I get the error below: This error only just started occuring. I've not coded for a week and I've only done a text change since my last release. Now I get this weird error out of the blue.

I've seen a previous question about this, and they say delete the package.lock file, but I dont have this file to delete.

I've tried to do a release a few times now and have no idea.

Has anyone recently had the same issue?

Full terminal error:

functions: updating Node.js 8 function ssr(us-central1)... functions[ssr(us-central1)]: Deployment error. Build failed: {"error": {"canonicalCode": "INVALID_ARGUMENT", "errorMessage": "gen_package_lock had stderr output:\nnpm WARN deprecated [email protected]: CircularJSON is in maintenance only, flatted is its successor.\nnpm ERR! code ETARGET\nnpm ERR! notarget No matching version found for [email protected]^3.0.0\nnpm ERR! notarget In most cases you or one of your dependencies are requesting\nnpm ERR! notarget a package version that doesn't exist.\nnpm ERR! notarget \nnpm ERR! notarget It was specified as a dependency of 'http-server'\nnpm ERR! notarget \n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR!
/builder/home/.npm/_logs/2019-05-03T12_56_50_959Z-debug.log\n\nerror: gen_package_lock returned code: 1", "errorType": "InternalError", "errorId": "4DE95FE7"}}

0 Answers