nb icon indicating copy to clipboard operation
nb copied to clipboard

unable to run on windows

Open verajosemanuel opened this issue 1 year ago • 5 comments

installed with no issue in windows gitbash (MYSYS) when running nb i get an error

$ nb
bash: C:\Users\joe\Anaconda3\Library\c\Users\joe\AppData\Roaming\npm/node_modules/nb.sh/nb: No such file or directory

verajosemanuel avatar May 31 '24 09:05 verajosemanuel

Do you have Node.js installed? Have you try using WSL?

Rooyca avatar Jun 04 '24 01:06 Rooyca

Yes. Node.js is installed. WSL is out of the available options

verajosemanuel avatar Jun 04 '24 08:06 verajosemanuel

@verajosemanuel The path separators switch from backslashes to forward slashes in the path to the executable. Is that a factor?

xwmx avatar Jun 04 '24 18:06 xwmx

Not sure. It is just the message when installing and trying to execute nb

verajosemanuel avatar Jun 04 '24 18:06 verajosemanuel

@verajosemanuel I don't currently have access to a windows machine so I'm going off memory and googling.

It's not yet clear to me where the path is coming from exactly. That path might be generated in your npm configuration. The first part is a Windows path, C:\Users\joe\Anaconda3\Library\c\Users\joe\AppData\Roaming\npm, which appears to be a standard location for locally-installed modules on Windows. The rest of the path, /node_modules/nb.sh/nb, is a unix-style path to the executable in a subfolder. This suggests there is code somewhere that is combining a Windows-style path with a unix-style path, then attempting to use it in Bash which expects unix-style paths, causing it to not work.

This path might be generated in an npm configuration file either in Windows or the unix environment running Bash. I recommend looking into that and seeing if you can identify the cause and a resolution. Let me know if this helps!

xwmx avatar Jun 05 '24 23:06 xwmx