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

error when launching #3

Open
pillkia opened this issue Mar 2, 2023 · 0 comments
Open

error when launching #3

pillkia opened this issue Mar 2, 2023 · 0 comments

Comments

@pillkia
Copy link

pillkia commented Mar 2, 2023

While run it by following the README,

$ sudo npm install

[sudo] password for oem:

up to date, audited 30 packages in 4s

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

found 0 vulnerabilities

$ node index.js

it says:

import pkg from 'nostr-tools'
       ^^^
SyntaxError: The requested module 'nostr-tools' does not provide an export named 'default'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:123:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:189:5)
    at async Promise.all (index 0)
    at async ESMLoader.import (node:internal/modules/esm/loader:530:24)
    at async loadESM (node:internal/process/esm_loader:91:5)
    at async handleMainPromise (node:internal/modules/run_main:65:12)
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