question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot find module babel-node

See original GitHub issue

While running the installation instructions, I first ran into an issue where …/lib/cli wasn’t found. Globally installing “nodemon” solved that issue, but now I’m stuck on this one. I’d ask this in a chat but I don’t see any other means of contacting you all for assistance. 😃

PORT=8080 npm run dev

> express-es6-rest-api@0.3.0 dev /Volumes/Xenophoto/Dropbox/src/[redacted] > nodemon -w src --exec "babel-node src --presets es2015,stage-0"

[nodemon] 1.10.0 [nodemon] to restart at any time, enter 'rs' [nodemon] watching: /Volumes/Xenophoto/Dropbox/src/[redacted]/src/**/* [nodemon] starting 'babel-node src --presets es2015,stage-0' module.js:440 throw err; ^ Error: Cannot find module '../lib/babel-node' at Function.Module._resolveFilename (module.js:438:15) at Function.Module._load (module.js:386:25) at Module.require (module.js:466:17) at require (internal/module.js:20:19) at Object.<anonymous> (/Volumes/Xenophoto/Dropbox/src/[redacted]/node_modules/.bin/babel-node:3:1) at Module._compile (module.js:541:32) at Object.Module._extensions..js (module.js:550:10) at Module.load (module.js:456:32) at tryModuleLoad (module.js:415:12) at Function.Module._load (module.js:407:3) [nodemon] app crashed - waiting for file changes before starting...

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
savvymanuelcommented, Oct 5, 2020

deleted the node_modules and reinstalled it using “npm i” , It worked for me.

WORKED FOR MEE TOO

1reaction
developitcommented, Aug 16, 2016

Funky! Might have been a weird clone or something yeah. Glad it worked out 😊

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot find module 'babel-node' - Stack Overflow
Following a tutorial, I am trying to add babel to my node server so that JSX gets transpiled to JS. Delete the node_modules...
Read more >
Cannot find module '@babel/core' error [Solved] | bobbyhadz
To solve the error "Cannot find module '@babel/core'", make sure to install the @babe/core package by opening your terminal in your project's root...
Read more >
Babel Problem : Cannot find module - Big Nerd Ranch Forums
I've got this error: Failed at the chattrbox@1.0.0 build script 'browserify -d app/scripts/src/main.js -o app/scripts/dist/main.js'. npm ERR!
Read more >
@babel/node - npm
Start using @babel/node in your project by running `npm i @babel/node`. There are 712 other projects in the npm registry using @babel/node.
Read more >
I have an error it says Errpr:Cannot find module '@babel/register'
node:internal/modules/cjs/loader:936 throw err; ^ Error: Cannot find module '@babel/register' Require stack: C:\Users\user\Desktop\mflix ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found