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.

nodeenv try to download non existing tar.gz prebuilt under Cygwin

See original GitHub issue

Hi,

Strange issue: I suspect a recent change broke this as it used to work last week, on another Windows computer with Cygwin.

Bug reproduction: pre-commit run using e.g. https://github.com/Lucas-C/pre-commit-hooks-html v1.1.0

pre-commit execute the following command under the hood, a command that also fails if I execute it manually:

nodeenv --prebuilt /cygdrive/c/Users/admin/.pre-commit/repoYHJ85q/node_env-default

The error is the following:

urllib2.HTTPError: HTTP Error 404: Not Found

The tar.gz it tries to install is https://nodejs.org/dist/v7.2.1/node-v7.2.1-cygwin_nt-6.1-x64.tar.gz, which does not exist. My guess is that nodeenv should use the Windows prebuilts instead: https://nodejs.org/dist/v7.2.1/node-v7.2.1-win-x64.zip This is because platform.system() is used: https://github.com/ekalinin/nodeenv/blob/master/nodeenv.py#L503

I’m going to ask for help on the https://github.com/ekalinin/nodeenv project, but do you have any hint at what the root cause could be here ?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
Lucas-Ccommented, Jul 30, 2017

You’re right, I must have mixed up things, it probably never worked.

I think there’s no need to keep this ticket open, I’m tracking this in https://github.com/ekalinin/nodeenv/issues/178

0reactions
Lucas-Ccommented, Sep 6, 2017

There is still an issue with this. I think I took a shortcut when I tested the previous PR (I must have skipped testing a full repo reinstall), and it definitively still does not work. Sorry about that 😦

This time it is because the NPM_CONFIG_PREFIX/npm_config_prefix env variables must be Windows-like paths for the npm install -g to pick the right path with Cygwin.

I just sent a PR to fix it: https://github.com/pre-commit/pre-commit/pull/612

Read more comments on GitHub >

github_iconTop Results From Across the Web

nodeenv try to download non existing tar.gz prebuilt under ...
Hi, I think this project used to support Cygwin, is this still the case ? I'm having an issue with the following command:...
Read more >
nodeenv · PyPI
nodeenv (node.js virtual environment) is a tool to create isolated node.js environments. ... Fixed UnicodeDecodeError at build on non UTF-8 environment.
Read more >
https://raw.githubusercontent.com/ekalinin/nodeenv...
if not text or is_PY3: return text try: # unicode or pure ascii return ... the given files in reverse order, if they...
Read more >
tar xvfz and -xvfc both didn't worked in Cygwin on Windows
When combining 'short' options (hyphen and single letter) 'f' must be last: tar -xzvf sshpass-1.0.5.tar.gz . For 'old-style' options (no hyphen) ...
Read more >
scons-user.txt
Acknowledgements SCons would not exist without a lot of help from a lot of people, ... The first step is to download either...
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