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

Unable to run the basic example #144

Open
anotherrohit opened this issue Jun 22, 2023 · 2 comments
Open

Unable to run the basic example #144

anotherrohit opened this issue Jun 22, 2023 · 2 comments

Comments

@anotherrohit
Copy link

I found this package and attempted to install it. I immediately was hit by an error as below:
C:\Users\nfc-pcsc-master\nfc-pcsc-master>npm run example

[email protected] example
node -r @babel/register examples/read-write.js

node:internal/modules/cjs/loader:1078
throw err;
^

Error: Cannot find module '@babel/register'
Require stack:

  • internal/preload
    at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
    at Module._load (node:internal/modules/cjs/loader:920:27)
    at internalRequire (node:internal/modules/cjs/loader:174:19)
    at Module._preloadModules (node:internal/modules/cjs/loader:1431:5)
    at loadPreloadModules (node:internal/process/pre_execution:606:5)
    at setupUserModules (node:internal/process/pre_execution:118:3)
    at prepareExecution (node:internal/process/pre_execution:109:5)
    at prepareMainThreadExecution (node:internal/process/pre_execution:37:3)
    at node:internal/main/run_main_module:10:1 {
    code: 'MODULE_NOT_FOUND',
    requireStack: [ 'internal/preload' ]
    }

Node.js v18.15.0

Any luck with this issue?

@newo27
Copy link

newo27 commented Aug 8, 2023

It looks like you just have to install babel

hope this helps!

@newo27
Copy link

newo27 commented Aug 8, 2023

you can do this by using npm
npm i @babel/node

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

2 participants