obsidian-discordrpc
obsidian-discordrpc copied to clipboard
How to compile Locally?
I run npm i
and it gives me this info
npm WARN [email protected] requires a peer of register-scheme@github:devsnek/node-register-scheme but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
audited 271 packages in 2.791s
25 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
and when i load the compiled plugin, it shows
app.js:1 Plugin failure: obsidian-discordrpc Error: Cannot find module 'register-scheme'
Require stack:
- electron/js2c/renderer_init
at Module._resolveFilename (internal/modules/cjs/loader.js:887)
at Function.o._resolveFilename (electron/js2c/renderer_init.js:33)
at Module._load (internal/modules/cjs/loader.js:732)
at Function.f._load (electron/js2c/asar_bundle.js:5)
at Function.o._load (electron/js2c/renderer_init.js:33)
at Module.require (internal/modules/cjs/loader.js:959)
at require (internal/modules/cjs/helpers.js:88)
at pe (app.js:1)
at a (app.js:1)
at anonymous (eval at <anonymous> (app.js:1), <anonymous>:7:20)
I tried manually cloning https://github.com/devsnek/node-register-scheme into node_modules
folder and still its them same.
I am new to npm, njs :(
It would be helpful if you can add some instructions for nubs like me. Thanks.