-
Notifications
You must be signed in to change notification settings - Fork 912
babel-node not recognized as internal or external command #30
Comments
Have you run npm install? What version of node and npm are your running? What OS? |
Yes, I have run I got all this information using the built-in terminal in Visual Studio Code from inside the project folder -- except Windows 10 build. Also if I run |
Like you, npm list babel-node returns nothing for me, but it works because it's bundled with babel. If you look in node_modules/.bin, you should see a babel-node folder. Do you? |
Same problem for me with Windows 10... |
Ditto for me. No babel-node in the bin directory. I sort of got it to work by installing babel-cli globally but now it doesn't recognize anything in the package.json, so that's not a fix. |
That's bizarre. I've just tried it in the terminal in the latest version of Visual Studio Code and on the native terminal in Windows 10. It works just fine in both. Are you all using the project completely unchanged? I simply cloned this repo on Windows 10 and it worked. I'm using Node 6.3 as well. |
I didn't clone the project. I'm creating the files/folders as I go through the PluralSight video. The only difference is that instead of using WebStorm, I'm using Visual Studio Code. |
node v6.5, npm v3.10.3, Atom... Windows 10. I just deleted and recloned the directory, npm installed, npm started, same deal. |
I downgraded node to 5.14 and it works! Thanks. That was actually in the readme. Windows has a problem with Node 6. |
Good to hear you're rolling Paul. The frustrating thing is Node 6 works fine on some Windows machines. I'd like to figure out why some Windows machines are failing, but I haven't been able to reproduce on any of my Windows boxes. |
@imsam67 Have you tried running Node 5 instead? That has resolved the issue for some others on Windows. |
It didn't work for me. See the image below I don't know how Paul was able to go down to 5.14. I don't see that version even listed here: |
Interestingly, if I download the whole project from GitHub and run Not sure why when I was simply following the video and created things step by step, it didn't work. Possibly skipping something unintentionally |
Interesting. I recommend avoiding paths with a space. Also, if downloading this project from github works fine, then I'd be interested to know what's different with your hand built version. Did you perform a diff? Alternatively, can you post it on Github? |
Sorry about the late response. I tried to figure out what's causing the issue but couldn't. Here's the repo for what I have in my project folder. |
@imsam67 I just cloned your project and it fails on npm start because you haven't created testSetup.js, which is being called by the start script. |
Very strange. I can't reproduce. Can you show me what's in your node_modules? |
Try the following: npm install -g babel-cli |
@imsam67 - Can you show me what's in your node_modules folder? A screenshot of the folders that fit on screen would suffice. |
That screenshot looks good. And if you see babel-node in node_modules/.bin then you should be working fine now. |
I am not sure if you have the same issue but I was getting the same problem until I realised I had saved my .babelrc file under src instead of the project root at the same level as package.json. I must have had src as the active folder when I saved. As a side note, I used Intellij a lot in the past but now I have been using Atom before where it is more obvious where you are saving I find Webstorm a little clunky in file manipulation and editing compared to Atom/Sublime et. al. @coryhouse do you have any suggestions on how to make Webstorm more like Atom or Sublime for editing? |
Oh and as another tip, you can see if babel-node is working but adding another script in your package.json
then run |
Hi all, same issue, windows 10, following on pluralsight and just setting up the project. I have managed to resolve but i did this by reinstalling every version of babel i could.. babel-cli, babel-node etc and eventually it worked.. |
One other thing to try for anyone who gets bit by this: Delete node_modules and reinstall. |
@coryhouse I tried to delete node_modules like you said. No change. 'babel-node' is not recognized as an internal or external command, operable program or batch file. Do you have any other ideas? I copied srcServer.js, package.json, webpack.config.dev.js and .babelrc directly from the github. |
@xenoxsis - Have you checked this list? https://github.com/coryhouse/pluralsight-redux-starter#having-issues-try-these-things-first |
As per BaReinhard above, I also had to upgrade nodejs 7.x.x to 8.1.2 (which upgraded npm to 5.4.0 too) and that fixed the problem for me. I had assumed that since I was on node > 6 I wouldn't have a problem, but it turned out that was an incorrect assumption. Wasted a good couple of hours trying to sort that out which is frustrating as the course is very good so far! |
Hi @spettifer - Sorry to hear that - What issue were you seeing before you upgraded Node? |
Hi @coryhouse, thanks for the reply! It was very odd. The output of npm start was this:
And the npm-debug.log file didn't really add any more info than that. I tried messing about with babel-node, I deleted node_modules and did a cache clean and reinstall all to no avail. I also tried with verbose output from npm start, but that didn't reveal much either (at least not to me - maybe someone with more experience would see something I can't). It was sheer desperation that made me try upgrading from node 7 to node 8 (which brings npm 5.4.0 with it) and suddenly it burst into life. I have no idea why. The most curious thing was that if I cloned your repo it worked perfectly well, even with the scripts section pared down to just the start script (which is where I was in the course). I can only assume it was some quick of npm but quite why it worked on the cloned repo but not the project I was building up from scratch is a mystery. |
@mohamed-ismat : Thanks for your useful tip ;) |
Hi, I launched npm install from the cmd windows instead of the atom command line and it solved the problem |
Run |
I reinstalled node, ran npm install again, and it added a bunch more babel folders in the node directory, and afterward I was able to run it just fine. After having similar problems to everyone else. |
Hello @coryhouse I start following your tutorials in pluralsigth when I try to run npm run it gives me following error I am using windows7 , Webstrom C:\Users\User\WebstormProjects\React>npm start
'bable-node' is not recognized as an internal or external command, npm ERR! Exit status 1 npm ERR! A complete log of this run can be found in: C:\Users\User\WebstormProjects\React>node -v C:\Users\User\WebstormProjects\React>npm -v |
@prudhvinani - Looks like you have a typo. bable-node should be babel-node |
oops thanks@coryhouse |
Had the same babel problem as the rest of Windows 10 folks. I am using Node 8.9.1. Tried reinstalling everything outside of VSCode environment, tried deleting node_modules, etc. Finally, replacing "latest" with "env" in .babelrc fixed it. Thanks to @ppremk user. |
@alernerdev glad it worked for you! 👍 |
resolved problem :) |
if node_modules/.bin/babel-node not found if in window os: p/s: in my mac os is: |
Hi @coryhouse I'm on WIN10, using WebStorms 30-d trial. Here is the message when I run npm start -s
I have uninstalled all nodejs, installed nvm, installed node v5.12.0, v6.1.0, v8.11.1. node -v = 8.11.1. npm - v = 5.6.0 Thank you for your assistance. --Scott-- |
@avprod1 - I just replied on your repo via an issue. You had a typo. It should say babel-node in start. |
I even know about the tower of Babel and how to spell it. Thanks for the personal reply.
Sent from my iPhone Scott Davis.
… On Apr 22, 2018, at 7:40 PM, Cory House ***@***.***> wrote:
@avprod1 - I just replied on your repo via an issue. You had a typo. It should say babel-node in start.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Cory,
I've been stuck for several days, removing and reentering the content.
Would you please take a look again? I'm in Instantiate Store and Provider.
I just wrapped the <Provider> component around the <Router> component and
got these error messages
Warning: Failed propType: Invalid prop `store` of type `function` supplied
to `Provider`, expected `object`.
Warning: Failed Context Types: Invalid child context `store` of type
`function` supplied to `Provider`, expected `object`.
I continued on a little farther to Connect Container.
Warning: Failed propType: Invalid prop `store` of type `function` supplied
to `Provider`, expected `object`.
Warning: Failed Context Types: Invalid child context `store` of type
`function` supplied to `Provider`, expected `object`.
Warning: Failed Context Types: Invalid context `store` of type `function`
supplied to `Connect(CoursesPage)`, expected `object`. Check the render
Uncaught TypeError: _this.store.getState is not a function
Your help is very valuable.
…--Scott--
On Tue, Apr 24, 2018 at 6:04 PM, Scott Davis <[email protected]>
wrote:
I even know about the tower of Babel and how to spell it. Thanks for the
personal reply.
Sent from my iPhone Scott Davis.
On Apr 22, 2018, at 7:40 PM, Cory House ***@***.***> wrote:
@avprod1 <https://github.com/avprod1> - I just replied on your repo via
an issue. You had a typo. It should say babel-node in start.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#30 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACKY8vUq5TBAgQjoUe7sb8G2HIoh2wa1ks5trSLugaJpZM4KeUml>
.
|
@avprod1 - Please don't reply here since your request is unrelated to this issue. Can you please post this on the course discussion board instead? That's where I handle course related questions so others can easily find answers if they're stuck in similar ways. |
@coryhouse I am getting the same issue in window 10 with node v8.11.1 npm start
module.js:549 Error: Cannot find module 'D:\react-redux\demo\tools\srcServer.js' npm ERR! A complete log of this run can be found in: i think there is something messing |
|
@coryhouse I clone starter-kit and when i run it it works fine . I was following the setup from the course and I thing i was messing something |
@mazinbabo - Great to hear you're running now! Would you be willing to put your course project on GitHub so I can understand what typo you might have made to cause this issue? |
I had similar issue 'babel-node' is not recognized as an internal......... |
Just delete node_modules folder and try again: That worked for me! |
I run npm install from Atom terminal and got |
npm start or npm start -s
C:\Users\DELL_Home\forReact\nodejs\my-app>npm start -s C:\Users\DELL_Home\forReact\nodejs\my-app> |
Worked for me after installing @babel/node, my node version is 8.11.3 try to install @babel/node instead of @babel/cli: and then you could use it according to the README: babel-node [options] [ -e script | script.js ] [arguments] |
Delete node_modules and reinstall worked for me! Thank you Cory |
I'm following along the tutorial on PluralSight for React with ES6 and Redux. I'm using Visual Studio Code as my editoe. When I add
babel-node
in the start script, I getAny idea why?
The text was updated successfully, but these errors were encountered: