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

How to install locally and debug? #39

Open
olgabot opened this issue Oct 17, 2022 · 0 comments
Open

How to install locally and debug? #39

olgabot opened this issue Oct 17, 2022 · 0 comments

Comments

@olgabot
Copy link

olgabot commented Oct 17, 2022

Hello,
Hope you are doing well. I would like to install the package locally to add print statements and debug #38, but I am new to node/typescript and am getting stuck.

I cloned this repo to ~/code/jmuchovej--paperpile-notion and ran npm link

(paperpile-notion)
 Mon 17 Oct - 14:28  ~/code/jmuchovej--paperpile-notion   origin ☊ main 3● 
  npm link

up to date, audited 3 packages in 1s

found 0 vulnerabilities

Then in my syncing folder ~/code/sync-paperpile-to-notion which contains the references.bib file, I did npm install @jmuchovej/paperpile-notion:"

(paperpile-notion)
 ✘  Mon 17 Oct - 14:29  ~/code/sync-paperpile-to-notion   origin ☊ main ↓1 3☀ 1● 
  npm install @jmuchovej/paperpile-notion

added 126 packages, changed 1 package, and audited 147 packages in 3s

16 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

But then I get the error that the subcommand authors:sync is not found:

(paperpile-notion)
 Mon 17 Oct - 14:30  ~/code/sync-paperpile-to-notion   origin ☊ main ↓1 3☀ 1● 
  paperpile-notion authors:sync references.bib -c .config/paperpile-notion/config.js
 ›   Error: command authors:sync not found

Some googling led to suggestions of installing typescript, which I did, but didn't seem to help:

(paperpile-notion)
 ✘  Mon 17 Oct - 12:54  ~/code/sync-paperpile-to-notion   origin ☊ main ↓1 2☀ 1● 
  npm install typescript@latest -g

added 1 package, and audited 2 packages in 3s

found 0 vulnerabilities
(paperpile-notion)
 Mon 17 Oct - 12:56  ~/code/sync-paperpile-to-notion   origin ☊ main ↓1 2☀ 1● 
  paperpile-notion authors:sync references.bib -c .config/paperpile-notion/config.js
 ›   Error: command authors:sync not found
(paperpile-notion)
 ✘  Mon 17 Oct - 12:56  ~/code/sync-paperpile-to-notion   origin ☊ main ↓1 2☀ 1● 
  npm install -g ts-node

added 19 packages, and audited 20 packages in 3s

found 0 vulnerabilities
(paperpile-notion)
 Mon 17 Oct - 12:56  ~/code/sync-paperpile-to-notion   origin ☊ main ↓1 2☀ 1● 
  npm install --save-dev ts-node typescript


added 146 packages, and audited 147 packages in 4s

16 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

How can one install this paperpile-notion package locally and run it on local data?
Thank you!
Warmest,
Olga

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

1 participant