Cannot run node.js packages in Virtualbox Shared folders

104 views
Skip to first unread message

Steven Ottz

unread,
Sep 25, 2015, 12:23:02 AM9/25/15
to nodejs
I have setup a development machine on windows using Virtualbox running Ubuntu.

I would like to create all my graphics etc on my windows machine and then keep them synced using shed folders.

When I run NPM in my app folder to install grunt --save-dev and yo webbapp it returns errors.

I know this because it is fine when I don't share the folder. 

How can I make this work? It now seems pointless to use node with Virtual Box thus using Grunt and Yeoman. Why is all this stuff so hard to learn and use it all seems so pointless.

Thanks

Ryan Graham

unread,
Sep 25, 2015, 1:26:13 AM9/25/15
to nodejs

The problem is symlinks, which is what npm uses to create the runnable commands for those modules.

There are a bunch of options involving config tweaks, setting up network file sharing, or some semi-automatic invocation of rsync...

...but you might find it easiest to just keep your image assets working directory separate from your app and just copy them over as needed.

~Ryan


--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/1e4d253a-4899-449e-ae19-2af4778ba03b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

ala...@bonseletrons.com.br

unread,
Sep 25, 2015, 3:15:47 PM9/25/15
to nod...@googlegroups.com

Hei !!!
I run into that once!

There is a CLI command to enable symlinks in VirtualBox. I will post it later

Alain

Enviado via AquaMail para Android
http://www.aqua-mail.com

Alain Mouette

unread,
Sep 25, 2015, 3:15:57 PM9/25/15
to nod...@googlegroups.com
Hi, here it is:

VBoxManage setextradata <VMname> VBoxInternal2/SharedFoldersEnableSymlinksCreate/host 1

That allows links between internal drive and shared folders

PS: I hope that this gets to the list, my las message was not received
PLEASE: confirm that you got it
Alain Mouette
=== Projetos especiais: <http://lnkd.in/dEu8cNq> ===
Reply all
Reply to author
Forward
0 new messages