I recently forked and modified the g-sheets-api
module. Here is my version: https://github.com/lpares12/g-sheets-api
After making the modifications, I installed it in my web project using the following command:
npm install git+https://github.com/lpares12/g-sheets-api.git --save-dev
However, upon uploading the project to Netlify, it fails with errors like:
8:30:02 PM: Installing npm packages using npm version 8.19.3
8:30:02 PM: npm WARN old lockfile
8:30:02 PM: npm WARN old lockfile The package-lock.json file was created with an old version of npm,
...
Furthermore, I am encountering several other errors such as:
8:30:19 PM: npm WARN old lockfile 'sh: 1: tsc: not found\n' +
8:30:19 PM: npm WARN old lockfile 'npm ERR! code 127\n' +
...
This issue is puzzling, especially since running npm run dev
or npm run build
within the project works correctly. When inspecting the package-lock.json
of the deployed app, I can see the following:
"g-sheets-api": {
"version": "git+https://github.com/lpares12/g-sheets-api.git#4e8ec12a4654d29421b131ddfe4bcff540589cc8",
"from": "git+https://github.com/lpares12/g-sheets-api.git",
"dev": true,
"requires": {
"cross-fetch": "^3.1.5"
}
}
It appears that the commit exists and is public, yet the deployment issue persists. Any assistance on this matter would be greatly appreciated.
For context, I am utilizing Netlify, Vite, and Typescript in this project.