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

lineman install can't connect to git for cscodegen #351

Closed
aspergillusOryzae opened this issue Feb 26, 2015 · 6 comments
Closed

lineman install can't connect to git for cscodegen #351

aspergillusOryzae opened this issue Feb 26, 2015 · 6 comments

Comments

@aspergillusOryzae
Copy link

I am having trouble installing lineman - first I tried with the apt-get version of node and npm, then with node 0.10.32, 0.12.X, and now 0.10.36 (because cscodegen requests node 0.8.x through 0.10.x).
npm WARN engine coffee-script-redux@2.0.0-beta8: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"0.12.0","npm":"2.5.1"})

I am running into the same issue across all node/npm version when the script is attempting to grab cscodegen from git.

me@ubuntu:~$ sudo npm install -g lineman
> js2coffee@0.3.3 preinstall /usr/lib/node_modules/lineman/node_modules/js2coffee
> node ./cyclic.js

> ws@0.4.32 install /usr/lib/node_modules/lineman/node_modules/testem/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory `/usr/lib/node_modules/lineman/node_modules/testem/node_modules    /socket.io/node_modules/socket.io-client/node_modules/ws/build'
  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished
  COPY Release/bufferutil.node
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/obj.target/validation.node
  SOLINK_MODULE(target) Release/obj.target/validation.node: Finished
  COPY Release/validation.node
make: Leaving directory `/usr/lib/node_modules/lineman/node_modules/testem/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build'
npm ERR! git clone git://github.com/michaelficarra/cscodegen.git Cloning into bare repository '/home/me/.npm/_git-remotes/git-github-com-michaelficarra-cscodegen-git-c4b567f3'...
npm ERR! git clone git://github.com/michaelficarra/cscodegen.git fatal: unable to connect to github.com:
npm ERR! git clone git://github.com/michaelficarra/cscodegen.git github.com[0: 192.30.252.128]: errno=Connection refused
npm WARN optional dep failed, continuing cscodegen@git://github.com/michaelficarra/cscodegen.git#73fd7202ac086c26f18c9d56f025b18b3c6f5383
@searls
Copy link
Member

searls commented Feb 26, 2015

Sounds like a connectivity issue. Not able to replicate over here and that repo is still live.

On Wed, Feb 25, 2015 at 9:55 PM, aspergillusOryzae
notifications@github.com wrote:

I am having trouble installing lineman - first I tried with the apt-get version of node and npm, then with node 0.10.32, 0.12.X, and now 0.10.36 (because cscodegen requests node 0.8.x through 0.10.x).
npm WARN engine coffee-script-redux@2.0.0-beta8: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"0.12.0","npm":"2.5.1"})
I am running into the same issue across all node/npm version when the script is attempting to grab cscodegen from git.
me@ubuntu:~$ sudo npm install -g lineman

js2coffee@0.3.3 preinstall /usr/lib/node_modules/lineman/node_modules/js2coffee
node ./cyclic.js

ws@0.4.32 install /usr/lib/node_modules/lineman/node_modules/testem/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
(node-gyp rebuild 2> builderror.log) || (exit 0)
make: Entering directory /usr/lib/node_modules/lineman/node_modules/testem/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build' CXX(target) Release/obj.target/bufferutil/src/bufferutil.o SOLINK_MODULE(target) Release/obj.target/bufferutil.node SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished COPY Release/bufferutil.node CXX(target) Release/obj.target/validation/src/validation.o SOLINK_MODULE(target) Release/obj.target/validation.node SOLINK_MODULE(target) Release/obj.target/validation.node: Finished COPY Release/validation.node make: Leaving directory/usr/lib/node_modules/lineman/node_modules/testem/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build'
npm ERR! git clone git://github.com/michaelficarra/cscodegen.git Cloning into bare repository '/home/me/.npm/_git-remotes/git-github-com-michaelficarra-cscodegen-git-c4b567f3'...
npm ERR! git clone git://github.com/michaelficarra/cscodegen.git fatal: unable to connect to github.com:
npm ERR! git clone git://github.com/michaelficarra/cscodegen.git github.com[0: 192.30.252.128]: errno=Connection refused

npm WARN optional dep failed, continuing cscodegen@git://github.com/michaelficarra/cscodegen.git#73fd7202ac086c26f18c9d56f025b18b3c6f5383

Reply to this email directly or view it on GitHub:
#351

@aspergillusOryzae
Copy link
Author

I am behind a proxy, but was able to do the following commands (as well as set this up on another computer a few months ago in the same conditions):

npm config set proxy http://proxy.company.com:80
npm config set https-proxy http://proxy.company.com:80
npm config set strict-ssl false

@aspergillusOryzae
Copy link
Author

I also did npm cache clean

@aspergillusOryzae
Copy link
Author

Interestingly using the versions of npm and nodejs from apt-get provide the most success, and it also seems to only be that one repos - though yes I could see its still up, but I had trouble cloning it behind the proxy or with the http url:

me@ubuntu:/usr/bin$ node --version
v0.10.25
me@ubuntu:/usr/bin$ npm --version
1.3.10
me@ubuntu:/usr/bin$ sudo npm install -g lineman
npm ERR! not a package /home/me/tmp/npm-68817-htiICuqH   /1424914317147-0.11728683928959072/tmp.tgz
npm http GET https://registry.npmjs.org/lineman
...
npm http GET https://registry.npmjs.org/zeparser/0.0.5
npm http GET https://registry.npmjs.org/tinycolor
npm http GET https://registry.npmjs.org/commander
npm http GET https://registry.npmjs.org/nan
npm http GET https://registry.npmjs.org/options
npm http 304 https://registry.npmjs.org/uglify-js
npm http 304 https://registry.npmjs.org/zeparser/0.0.5
npm http 304 https://registry.npmjs.org/tinycolor
npm http 304 https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/commander
npm http 304 https://registry.npmjs.org/options

> ws@0.4.32 install /usr/local/lib/node_modules/lineman/node_modules/testem/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory `/usr/local/lib/node_modules/lineman/node_modules/testem/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build'
  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished
  COPY Release/bufferutil.node
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/obj.target/validation.node
  SOLINK_MODULE(target) Release/obj.target/validation.node: Finished
  COPY Release/validation.node
make: Leaving directory `/usr/local/lib/node_modules/lineman/node_modules/testem/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build'
npm ERR! git clone git://github.com/michaelficarra/cscodegen.git Cloning into bare repository '/home/me/.npm/_git-remotes/git-github-com-michaelficarra-cscodegen-git-c4b567f3'
npm ERR! git clone git://github.com/michaelficarra/cscodegen.git fatal: unable to connect to github.com:
npm ERR! git clone git://github.com/michaelficarra/cscodegen.git github.com[0: 192.30.252.129]: errno=Connection refused
npm WARN optional dep failed, continuing cscodegen@git://github.com/michaelficarra/cscodegen.git#73fd7202ac086c26f18c9d56f025b18b3c6f5383
npm http GET https://registry.npmjs.org/abbrev
npm http GET https://registry.npmjs.org/esprima
npm http GET https://registry.npmjs.org/estraverse
npm http GET https://registry.npmjs.org/amdefine
...

@aspergillusOryzae
Copy link
Author

sudo chown -R me:me ~/tmp/ seems to allow me to successfully perform a mvn clean install after using the apt-get versions of node and npm and installing as in the previous comment, but it still complains about not connecting to the library missing dependency:
npm WARN optional dep failed, continuing cscodegen@git://github.com/michaelficarra/cscodegen.git#73fd7202ac086c26f18c9d56f025b18b3c6f5383

-- update --
Pulling the machine out of the proxy env and deleting the npm config proxy and https-proxy allowed the install to complete without issues. If I wasn't developing on a laptop that would be hard though. It is strange that the issue is limited to that one repository.

@davemo
Copy link
Member

davemo commented Feb 26, 2015

This is a pretty common symptom of being behind a firewall; we've seen this at some clients with network restrictions in place. Given you've already done npm config set strict-ssl false, my best advice is to speak with your IT department and get them to relax the firewall rules in place or setup an exemption for npm traffic.

My experience with any other method, including proxies, local caches or mirrors of the npm repo has been fraught with nothing but headaches :(

@davemo davemo closed this as completed Feb 26, 2015
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

3 participants