esnext / es6-module-transpiler

Tomorrow’s JavaScript module syntax today
http://esnext.github.io/es6-module-transpiler/
Other
1.21k stars 85 forks source link

Unable to get started #104

Closed amatiasq closed 10 years ago

amatiasq commented 10 years ago

I'm trying to follow README step to install the transpiler

$ npm install -g https://git.squareup.com/javascript/es6-module-transpiler

But it outputs:

npm http GET https://git.squareup.com/javascript/es6-module-transpiler
npm ERR! fetch failed https://git.squareup.com/javascript/es6-module-transpiler
npm http GET https://git.squareup.com/javascript/es6-module-transpiler
npm ERR! fetch failed https://git.squareup.com/javascript/es6-module-transpiler
npm http GET https://git.squareup.com/javascript/es6-module-transpiler
npm ERR! fetch failed https://git.squareup.com/javascript/es6-module-transpiler
npm ERR! network connect ETIMEDOUT
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

npm ERR! System Darwin 13.0.2
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "https://git.squareup.com/javascript/es6-module-transpiler"
npm ERR! cwd XXXXXXXX
npm ERR! node -v v0.10.22
npm ERR! npm -v 1.3.14
npm ERR! syscall connect
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     XXXXXXXXXX/npm-debug.log
npm ERR! not ok code 0

Is the server ok? I've tried this 12 hours ago from another network and the same issue occurred.

caridy commented 10 years ago

@amatiasq, that step in the README should probably be updated to use the pkg from npm directly. Just use npm install -g es6-module-transpiler and you should be fine.

thomasboyt commented 10 years ago

Updated with the correct package!

amatiasq commented 10 years ago

I'm trying es6-module-transpiler but I get another error:

$ sudo npm install -g es6-module-transpiler
npm http GET https://registry.npmjs.org/es6-module-transpiler
npm http 304 https://registry.npmjs.org/es6-module-transpiler
npm http GET https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/through
npm http 304 https://registry.npmjs.org/through
npm http 304 https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/wordwrap
npm http 304 https://registry.npmjs.org/wordwrap
npm ERR! Error: ENOENT, chmod '/usr/local/lib/node_modules/es6-module-transpiler/bin/compile-modules'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Darwin 13.0.2
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "es6-module-transpiler"
npm ERR! cwd XXXXXXXXX
npm ERR! node -v v0.10.22
npm ERR! npm -v 1.3.14
npm ERR! path /usr/local/lib/node_modules/es6-module-transpiler/bin/compile-modules
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     XXXXXXXXX/npm-debug.log
npm ERR! not ok code 0

In the readme the module is es6-modules-transpiler (note the s in modules) but it throws 404 so I think it's a typo.

$ sudo npm install -g es6-modules-transpiler
npm http GET https://registry.npmjs.org/es6-modules-transpiler
npm http 404 https://registry.npmjs.org/es6-modules-transpiler
npm ERR! 404 'es6-modules-transpiler' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.

npm ERR! System Darwin 13.0.2
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "es6-modules-transpiler"
npm ERR! cwd XXXXXXXXX
npm ERR! node -v v0.10.22
npm ERR! npm -v 1.3.14
npm ERR! code E404
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     XXXXXXXXX/npm-debug.log
npm ERR! not ok code 0