8000 Installation fails and abort due to nodejs paths too long · Issue #669 · winpython/winpython · GitHub
[go: up one dir, main page]

Skip to content

Installation fails and abort due to nodejs paths too long #669

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

Closed
ypapouin opened this issue Sep 12, 2018 · 3 comments
Closed

Installation fails and abort due to nodejs paths too long #669

ypapouin opened this issue Sep 12, 2018 · 3 comments
Labels

Comments

@ypapouin
Copy link
ypapouin commented Sep 12, 2018

Installation fails and abort due to nodejs long paths

eg:
C:\Users\Yann\Documents\temp\09-Septembre\pyth\wpy\WinPython64-3.7.0.2\t\n\node_modules\npm\node_modules\libnpx\node_modules\yargs\node_modules\os-locale\node_modules\execa\node_modules\cross-spawn\node_modules\shebang-command\node_modules\shebang-regex\index.js

A workaround was to install directly to C:\WPy-3702

By the way, why nodejs is included ? it is a dependency ?

@stonebig
Copy link
Contributor
stonebig commented Sep 13, 2018

yes, it's written at the bottom of https://winpython.github.io/

(**) For best Winpython 2018-01 and later experience, it is recommended to have Winpython base directory path smaller than 37 characters.

example: 
C:\Users\xxxxxxxx\Downloads\WinPython
your example:
C:\Users\Yann\Documents\temp\09-Septembre\pyth\wpy\

You seem at least 13 characters too long.

The limitation comes from nodejs being shipped with WinPython

Shipping nodejs inside WinPython is a pain, but JupyterLab in its current form seems un-maintainable without it.

@ypapouin
Copy link
Author

Thank you @stonebig for the information.

  • I propose to add a path length check in the installer to warn the user about this possible issue before he click install.
  • Maybe adding a checkbox to ignore JupyterLab and NodeJS install if the user choose a path too long:
    • I understand that this install path is technically too long and that JupyterLab/NodeJS will not be installed

I also found that there is now a way to bypass this limit on Windows 10 since Anniversary Update but it seems that the application must be compiled with this support:
https://superuser.com/questions/1119883/windows-10-enable-ntfs-long-paths-policy-option-missing

@stonebig
Copy link
Contributor

I would rather do an nodejs-less binary

@stonebig stonebig closed this as completed May 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants
0