Page 1 of 1

Node.js with Shared folders

Posted: 25. Sep 2015, 05:07
by ottz0
I have a windows host running VB with Ubuntu as my development machine.

I have install node.js globally and have setup my web app folder. This folder is shared in Virtualbox with host and guest.

When I try to run npm install grunt --save-dev and yo webapp I get errors (I think due to the symlink). These commands work fine when the folder is not shared.

How can I fixed this issue? I have looked everywhere and can't find an answer.

Re: Node.js with Shared folders

Posted: 25. Sep 2015, 13:07
by scottgus1
Virtualbox's Guest-Additions-based shared folders aren't a full "shared folder". They're a file-transfer scheme that is made to look like a shared folder in the guest OS when Guest Additions are installed. Not all of the real Windows/Samba shared folder routines are implemented - it's just for getting files into & out of a guest easily.

You're probably going to have to implement a real shared folder, like you would do if you had two separate real PCs networked together.

Re: Node.js with Shared folders

Posted: 15. Oct 2015, 17:17
by nbyloff
I know this is an old post, but it's related to Windows 250 character limit on paths, and node/npm have deep folder structure.

My solution to this was create my node_modules folder outside of the shared folder, and symlink to it from inside the shared folder since Windows won't pick up on it. Hope that helps.