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

nodejs - specified path is too long #737

Closed
stphnlwlsh opened this issue Mar 12, 2016 · 7 comments
Closed

nodejs - specified path is too long #737

stphnlwlsh opened this issue Mar 12, 2016 · 7 comments

Comments

@stphnlwlsh
Copy link

I tried to install nodejs with:

scoop install nodejs

and got this error in my log file:

=== Logging started: 2016-03-11  23:36:53 ===
Error 1320. The specified path is too long: C:\Users\StephenWalsh\AppData\Local\scoop\apps\nodejs\5.7.0\_scoop_extract\nodejs\node_modules\npm\node_modules\node-gyp\node_modules\npmlog\node_modules\gauge\node_modules\lodash.padright\node_modules\lodash._createpadding\node_modules\lodash.repeat
=== Logging stopped: 2016-03-11  23:37:06 ===

Any thoughts on how to resolve?

@neoeinstein
Copy link
Contributor

This is because node uses nested dependency folders. That makes Windows sad if the dependency tree is too deep because Windows has a max path length of 260 characters. Directory names have to be shorter, and have a max of 248.

EDIT: I see that this is happening for you during install, so the below may not be as helpful, but may lead to some insights that could help out.

You can set the cache location to be somewhere closer to the root by using:

npm config set cache /SOMEWHERE/ELSE

There is also a recommendation in the post_install after installing node that recommends deleting the npmrc file, which (based on your path above) I presume would have been:

rm C:\Users\StephenWalsh\AppData\Local\scoop\apps\nodejs\5.7.0\nodejs\node_modules\npm\npmrc

@stphnlwlsh
Copy link
Author

I figured out how to resolve but it probably wasn't the ideal way. I did through the cached until I found the install file and just ran it through the GUI. Since then one of my .NET projects threw back the same error, so as you noted about the character limit, this isn't Scoop specific.

@rashil2000
Copy link
Member

What command have you used to install Node?

@rashil2000
Copy link
Member

Sorry, I'm not sure I understand the question. Are you looking to use Scoop in your team for development?

If so, you can find a brief introduction on the website https://scoop.sh and the Readme. For detailed information, you can refer to the Scoop Wiki.

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

4 participants
@neoeinstein @stphnlwlsh @rashil2000 and others