v0.20.3 docker container npm install issue #3157

Closed
opened 2024-07-22 05:29:56 +00:00 by Steven · 4 comments

We uese node:20-alpine environment in docker. When the app start to insatll packages we met the following issue:

npm error Submodule 'test_files' (https://github.com/SheetJS/test_files) registered for path 'test_files'
npm error Cloning into '/home/runner/.npm/_cacache/tmp/git-cloneO8RpZ3/test_files'...
npm error remote: Support for password authentication was removed on August 13, 2021.
npm error remote: Please see https://docs.github.com/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
npm error fatal: Authentication failed for 'https://github.com/SheetJS/test_files/'
npm error fatal: clone of 'https://github.com/SheetJS/test_files' into submodule path '/home/runner/.npm/_cacache/tmp/git-cloneO8RpZ3/test_files' failed
npm error Failed to clone 'test_files'. Retry scheduled
npm error Cloning into '/home/runner/.npm/_cacache/tmp/git-cloneO8RpZ3/test_files'...
npm error remote: Support for password authentication was removed on August 13, 2021.
npm error remote: Please see https://docs.github.com/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
npm error fatal: Authentication failed for 'https://github.com/SheetJS/test_files/'
npm error fatal: clone of 'https://github.com/SheetJS/test_files' into submodule path '/home/runner/.npm/_cacache/tmp/git-cloneO8RpZ3/test_files' failed
npm error Failed to clone 'test_files' a second time, aborting

We uese node:20-alpine environment in docker. When the app start to insatll packages we met the following issue: npm error Submodule 'test_files' (https://github.com/SheetJS/test_files) registered for path 'test_files' npm error Cloning into '/home/runner/.npm/_cacache/tmp/git-cloneO8RpZ3/test_files'... npm error remote: Support for password authentication was removed on August 13, 2021. npm error remote: Please see https://docs.github.com/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication. npm error fatal: Authentication failed for 'https://github.com/SheetJS/test_files/' npm error fatal: clone of 'https://github.com/SheetJS/test_files' into submodule path '/home/runner/.npm/_cacache/tmp/git-cloneO8RpZ3/test_files' failed npm error Failed to clone 'test_files'. Retry scheduled npm error Cloning into '/home/runner/.npm/_cacache/tmp/git-cloneO8RpZ3/test_files'... npm error remote: Support for password authentication was removed on August 13, 2021. npm error remote: Please see https://docs.github.com/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication. npm error fatal: Authentication failed for 'https://github.com/SheetJS/test_files/' npm error fatal: clone of 'https://github.com/SheetJS/test_files' into submodule path '/home/runner/.npm/_cacache/tmp/git-cloneO8RpZ3/test_files' failed npm error Failed to clone 'test_files' a second time, aborting
Owner

Are you using the tarball https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz ? If you are, can you share more details (a snippet from the Dockerfile so we can try to reproduce)?

Are you using the tarball https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz ? If you are, can you share more details (a snippet from the Dockerfile so we can try to reproduce)?
Author

Thanks for the support!
When we change to https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz this url the install works well!
Before we used "xlsx": "git+https://git.sheetjs.com/sheetjs/sheetjs.git#v0.20.3" this way to install then found the issue.

Thanks for the support! When we change to https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz this url the install works well! Before we used "xlsx": "git+https://git.sheetjs.com/sheetjs/sheetjs.git#v0.20.3" this way to install then found the issue.
sheetjs pinned this 2024-07-22 21:06:27 +00:00
sheetjs unpinned this 2024-07-22 21:10:39 +00:00

@Steven do you change the full content of "xlsx" by " https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz" or "git+ https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz". I have tried both ways but still have errors.

@Steven do you change the full content of "xlsx" by " https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz" or "git+ https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz". I have tried both ways but still have errors.
Author

@PeihPeih After changed to
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.2/xlsx-0.20.2.tgz", this content the npm install succuss.
How about remove the package-lock.json file and clean the npm cache then try the install again?

@PeihPeih After changed to "xlsx": "https://cdn.sheetjs.com/xlsx-0.20.2/xlsx-0.20.2.tgz", this content the npm install succuss. How about remove the package-lock.json file and clean the npm cache then try the install again?
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#3157
No description provided.