Node.js with Shared folders

Discussions related to using VirtualBox on Windows hosts.
Post Reply
ottz0
Posts: 2
Joined: 25. Sep 2015, 05:03

Node.js with Shared folders

Post 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.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: Node.js with Shared folders

Post 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.
nbyloff
Posts: 2
Joined: 15. Oct 2015, 16:50

Re: Node.js with Shared folders

Post 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.
Post Reply