Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing a plugin results in 'sha seems to be corrupted' error #17

Closed
ivan-lednev opened this issue May 13, 2021 · 3 comments
Closed

Comments

@ivan-lednev
Copy link

Steps to reproduce

  1. Clone a plugin
  2. Run npm i

Expected

The plugin gets installed

Actual

npm WARN tarball tarball data for obsidian@https://github.com/obsidianmd/obsidian-api/tarball/master (sha512-DZWdNPqkozADT1Mb7MyR+vQi2jE4lFJJG9TRZW/kl6NSuL/OHLiKudBnmythlybeYkWta1YuvAb0LLGUJlfqdg==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for obsidian@https://github.com/obsidianmd/obsidian-api/tarball/master (sha512-DZWdNPqkozADT1Mb7MyR+vQi2jE4lFJJG9TRZW/kl6NSuL/OHLiKudBnmythlybeYkWta1YuvAb0LLGUJlfqdg==) seems to be corrupted. Trying one more time.
npm WARN obsidian-sample-plugin@0.9.7 No repository field.

npm ERR! code EINTEGRITY
npm ERR! Verification failed while extracting obsidian@https://github.com/obsidianmd/obsidian-api/tarball/master:
npm ERR! Verification failed while extracting obsidian@https://github.com/obsidianmd/obsidian-api/tarball/master:
npm ERR! sha512-DZWdNPqkozADT1Mb7MyR+vQi2jE4lFJJG9TRZW/kl6NSuL/OHLiKudBnmythlybeYkWta1YuvAb0LLGUJlfqdg== integrity checksum failed when using sha512: wanted sha512-DZWdNPqkozADT1Mb7MyR+vQi2jE4lFJJG9TRZW/kl6NSuL/OHLiKudBnmythlybeYkWta1YuvAb0LLGUJlfqdg== but got sha512-09/Zpb7sXE264OLk3DDbieU895d6NaNIIL8eyKR+5WpXPSYKeDfwy4yQh3WSb6KHWTJpbyvqUDchh8Yy4lHiRQ==. (15583 bytes)
@Vinzent03
Copy link

Try deleting the package-lock.json and run npm i again.

@lishid
Copy link
Collaborator

lishid commented May 13, 2021

You should update your package.json to use the npm version now that we've acquired the obsidian package.
https://www.npmjs.com/package/obsidian

@lishid lishid closed this as completed Jul 15, 2021
@lishid
Copy link
Collaborator

lishid commented Jul 15, 2021

You can now update the sample plugin to use the official obsidian repo which has the latest API docs, instead of the old tarball method.

tlm2021 added a commit to tlm2021/obsidian-timelines that referenced this issue Jul 25, 2021
## Era Display
Added the "era" data field to the span block. If specified, this will be appended to the date in the timeline display.

For example, this span would display in the timeline as "144-43-49-00 AB".
```
<span
	  class='ob-timelines'
	  data-date='144-43-49-00'
     data-era="AB"
>
```

## Remove `.md` from autofilled titles
When auto-filling the title based on the filename, remove the `.md` from the end. More in line with how other linking/embedding is displayed through obsidian.

Also updated the `package.json` to the latest standard for including the obsidian API. See obsidianmd/obsidian-api#17.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants