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

npm fails with Error: Cannot find module 'babel-core'. #73

Open
dreirund opened this issue Mar 7, 2022 · 2 comments
Open

npm fails with Error: Cannot find module 'babel-core'. #73

dreirund opened this issue Mar 7, 2022 · 2 comments

Comments

@dreirund
Copy link

dreirund commented Mar 7, 2022

npm build gives me an error Error: Cannot find module 'babel-core':


> [email protected] build
> rm -rf dist/* && ./node_modules/.bin/babel src --out-dir dist --source-maps

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

Error: Cannot find module 'babel-core'
Require stack:
- /home/felics/.cache/yay/github-wikito-converter-git/src/github-wikito-converter/node_modules/babel/lib/babel/index.js
- /home/felics/.cache/yay/github-wikito-converter-git/src/github-wikito-converter/node_modules/babel/bin/babel.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:999:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/home/felics/.cache/yay/github-wikito-converter-git/src/github-wikito-converter/node_modules/babel/lib/babel/index.js:4:1)
    at Module._compile (node:internal/modules/cjs/loader:1097:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1151:10)
    at Module.load (node:internal/modules/cjs/loader:975:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:999:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home/felics/.cache/yay/github-wikito-converter-git/src/github-wikito-converter/node_modules/babel/lib/babel/index.js',
    '/home/felics/.cache/yay/github-wikito-converter-git/src/github-wikito-converter/node_modules/babel/bin/babel.js'
  ]
}

Node.js v17.6.0

I have no idea how npm works, but a npm install babel-core did not solve this.

@amc1999
Copy link

amc1999 commented Jun 13, 2023

There is a fork and it does work with npm v18.x.x, you can try it:

git clone https://github.com/openmpp/github-wikito-converter gwtc
cd gwtc
npm install
npm run build

Hope this helps

@dreirund
Copy link
Author

There is a fork and it does work with npm v18.x.x, you can try it:

git clone https://github.com/openmpp/github-wikito-converter gwtc
cd gwtc
npm install
npm run build

Hope this helps

Thank you for this.

It has gotten a dependency hell (when I want to make proper GNU/Linux packaging). So I give up on this and I flagged my Arch Linux user repository package for this reason for deletion.

Regards!

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