Error in test_files to install dependencies #3159

Closed
opened 2024-07-22 21:05:36 +00:00 by Omarjcp · 2 comments

This error stems from a project dependency on the source repo. The recommended fix is to switch to the tarballs on the SheetJS CDN:

  1. Directly install the package from the root of your project. The instructions are included in "NodeJS" in the SheetJS docs
npm rm --save xlsx
npm i --save https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz
  1. Add an override in every package.json file in your project. The override is covered in "Legacy Endpoints":
{
  "overrides": {
    "xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz"
  },
  // ...
}

I execute npm install and I get this error. I deleted the package xlsx, files node_modules and package-lock.json and i'm trying install again the dependences, but I'm getting this error. This has been happening since friday 19 july 2024. How I can resolve this problem?

npm ERR! code 1
npm ERR! Command failed: git submodule update -q --init --recursive
npm ERR! warning: templates not found in /var/folders/fg/8g7rcpg95jl9cv1dqsrkwr_00000gn/T/pacote-git-template-tmp/git-clone-2ac4b2f0
npm ERR! remote: Access to this repository has been disabled by GitHub staff due to excessive resource use.
npm ERR! remote: Please contact support via https://support.github.com/contact to restore access to this repository.
npm ERR! remote: Read about how to decrease the size of your repository:
npm ERR! remote: https://docs.github.com/articles/what-is-my-disk-quota
npm ERR! fatal: unable to access 'https://github.com/SheetJS/test_files/': The requested URL returned error: 403
npm ERR! fatal: clone of 'https://github.com/SheetJS/test_files' into submodule path '/Users/omarcastillo/.npm/_cacache/tmp/git-clone-beaf6027/test_files' failed
npm ERR! Failed to clone 'test_files'. Retry scheduled
npm ERR! warning: templates not found in /var/folders/fg/8g7rcpg95jl9cv1dqsrkwr_00000gn/T/pacote-git-template-tmp/git-clone-2ac4b2f0
npm ERR! remote: Access to this repository has been disabled by GitHub staff due to excessive resource use.
npm ERR! remote: Please contact support via https://support.github.com/contact to restore access to this repository.
npm ERR! remote: Read about how to decrease the size of your repository:
npm ERR! remote: https://docs.github.com/articles/what-is-my-disk-quota
npm ERR! fatal: unable to access 'https://github.com/SheetJS/test_files/': The requested URL returned error: 403
npm ERR! fatal: clone of 'https://github.com/SheetJS/test_files' into submodule path '/Users/omarcastillo/.npm/_cacache/tmp/git-clone-beaf6027/test_files' failed
npm ERR! Failed to clone 'test_files' a second time, aborting
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/omarcastillo/.npm/_logs/2024-07-22T20_57_03_438Z-debug.log

**This error stems from a project dependency on the source repo.** The recommended fix is to [switch to the tarballs on the SheetJS CDN](https://docs.sheetjs.com/docs/getting-started/installation/nodejs): 1) Directly install the package from the root of your project. The instructions are included in ["NodeJS" in the SheetJS docs](https://docs.sheetjs.com/docs/getting-started/installation/nodejs) ```bash npm rm --save xlsx npm i --save https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz ``` 2) Add an override in every `package.json` file in your project. The override is covered in ["Legacy Endpoints"](https://docs.sheetjs.com/docs/getting-started/installation/nodejs#legacy-endpoints): ```json { "overrides": { "xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz" }, // ... } ``` --- I execute npm install and I get this error. I deleted the package xlsx, files node_modules and package-lock.json and i'm trying install again the dependences, but I'm getting this error. This has been happening since friday 19 july 2024. How I can resolve this problem? npm ERR! code 1 npm ERR! Command failed: git submodule update -q --init --recursive npm ERR! warning: templates not found in /var/folders/fg/8g7rcpg95jl9cv1dqsrkwr_00000gn/T/pacote-git-template-tmp/git-clone-2ac4b2f0 npm ERR! remote: Access to this repository has been disabled by GitHub staff due to excessive resource use. npm ERR! remote: Please contact support via https://support.github.com/contact to restore access to this repository. npm ERR! remote: Read about how to decrease the size of your repository: npm ERR! remote: https://docs.github.com/articles/what-is-my-disk-quota npm ERR! fatal: unable to access 'https://github.com/SheetJS/test_files/': The requested URL returned error: 403 npm ERR! fatal: clone of 'https://github.com/SheetJS/test_files' into submodule path '/Users/omarcastillo/.npm/_cacache/tmp/git-clone-beaf6027/test_files' failed npm ERR! Failed to clone 'test_files'. Retry scheduled npm ERR! warning: templates not found in /var/folders/fg/8g7rcpg95jl9cv1dqsrkwr_00000gn/T/pacote-git-template-tmp/git-clone-2ac4b2f0 npm ERR! remote: Access to this repository has been disabled by GitHub staff due to excessive resource use. npm ERR! remote: Please contact support via https://support.github.com/contact to restore access to this repository. npm ERR! remote: Read about how to decrease the size of your repository: npm ERR! remote: https://docs.github.com/articles/what-is-my-disk-quota npm ERR! fatal: unable to access 'https://github.com/SheetJS/test_files/': The requested URL returned error: 403 npm ERR! fatal: clone of 'https://github.com/SheetJS/test_files' into submodule path '/Users/omarcastillo/.npm/_cacache/tmp/git-clone-beaf6027/test_files' failed npm ERR! Failed to clone 'test_files' a second time, aborting npm ERR! npm ERR! A complete log of this run can be found in: npm ERR! /Users/omarcastillo/.npm/_logs/2024-07-22T20_57_03_438Z-debug.log
Owner

See issue #3157 .

If your project uses this git repo, please follow the instructions in https://docs.sheetjs.com/docs/getting-started/installation/nodejs -- you should be using the tarballs on https://cdn.sheetjs.com or https://sheet.lol .

See issue #3157 . If your project uses this git repo, please follow the instructions in https://docs.sheetjs.com/docs/getting-started/installation/nodejs -- you should be using the tarballs on https://cdn.sheetjs.com or https://sheet.lol .
sheetjs pinned this 2024-07-22 21:10:31 +00:00

Hey, thanks for solution. Same problem here with the dependencie https://github.com/SheetJS/test_files/

When I try the issue in the recommandation, I have an error of permission denied (publickey).

SheetJS please find a solution and let me know. Thanks a lot !

Hey, thanks for solution. Same problem here with the dependencie https://github.com/SheetJS/test_files/ When I try the issue in the [recommandation](https://docs.sheetjs.com/docs/getting-started/installation/nodejs/#vendoring), I have an error of permission denied (publickey). SheetJS please find a solution and let me know. Thanks a lot !
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sheetjs/sheetjs#3159
No description provided.