Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Can't seem to install babel... #10333

Closed
rscharfer opened this issue Nov 10, 2015 · 11 comments
Closed

Can't seem to install babel... #10333

rscharfer opened this issue Nov 10, 2015 · 11 comments
Labels

Comments

@rscharfer
Copy link

I would like node to be able to read arrow functions in my js files.

I was told I need to "npm install -g babel". The seemed to work OK. I then tried to run my script "babel-node myscript.js", and instead of reading what I console.log in the script, I got "the CLI has been moved into the package 'babel-cli'". I then "npm install -g babel-cli" as it suggested and I received a large amount of errors and node still cannot read my arrow functions... I will like to add my debug file here somewhere, but I am not sure how...

@kenany
Copy link
Contributor

kenany commented Nov 11, 2015

@rscharfer You can upload the npm-debug.log file to gist.github.com and post the link here.

@rscharfer
Copy link
Author

Thank you. Already something new learned. : )

Here is the link to my npm-debug.log file: https://gist.github.com/rscharfer/7494fa07b9870cb628c0

@rscharfer
Copy link
Author

Hi KenanY,

do you have any ideas as to what my be the problem? I tried completing reinstalling node.js this morning, and I still have the same issue trying to install babel-cli.

@kenany
Copy link
Contributor

kenany commented Nov 20, 2015

@rscharfer Looks like an issue with your internet connection. Maybe there is a proxy or firewall in the way?

@rscharfer
Copy link
Author

Weird.Ok, thanks. That might be due to some configuration on my router I guess. What line of the debug.log tells you there is an issue with my internet connection? Maybe I could Google around some more and fix the problem with my router (if that's it).

@kenany
Copy link
Contributor

kenany commented Nov 20, 2015

@rscharfer Last few lines:

24219 error Windows_NT 6.1.7601
24220 error argv "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "babel-cli"
24221 error node v0.12.7
24222 error npm  v2.11.3
24223 error code ECONNRESET
24224 error errno ECONNRESET
24225 error syscall read
24226 error network read ECONNRESET
24226 error network This is most likely not a problem with npm itself
24226 error network and is related to network connectivity.
24226 error network In most cases you are behind a proxy or have bad network settings.
24226 error network
24226 error network If you are behind a proxy, please make sure that the
24226 error network 'proxy' config is set properly.  See: 'npm help config'

@vickenliu
Copy link

any one can have a look of my error plz, i could not install the babel-cli anyway, i have installed node.js.
the link is https://gist.github.com/vickenliu/68bfe3471986a230b7d2

@kenany
Copy link
Contributor

kenany commented Mar 4, 2016

@vickenliu Your error looks unrelated to that of @rscharfer. To me, it looks like you need to run that command with sudo since you do not have permission to modify /usr/local/.

@vickenliu
Copy link

@kenany thank you so much, it works...

@kenany kenany added the support label Jun 28, 2016
@kenany
Copy link
Contributor

kenany commented Jun 28, 2016

Closing as resolved.

@kenany kenany closed this as completed Jun 28, 2016
@kenany
Copy link
Contributor

kenany commented Jun 28, 2016

Well, @rscharfer's issue was never confirmed to be resolved but it is an issue with their internet connection and not with npm. Can reopen if this is not the case.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants