Skip to content

Instantly share code, notes, and snippets.

@mufasa71
Created July 1, 2017 13:34
Show Gist options
  • Save mufasa71/0c53d039aa8f9d8eb880876c338cca89 to your computer and use it in GitHub Desktop.
Save mufasa71/0c53d039aa8f9d8eb880876c338cca89 to your computer and use it in GitHub Desktop.
npm shared folders
# if running inside VirtualBox on a shared folder
# you must enable symlinks on the shared folder
$ VBoxManage setextradata "<vm name>" VBoxInternal2/SharedFoldersEnableSymlinksCreate/<shared folder> 1

# verify with
$ VBoxManage getextradata "<vm name>" enumerate

npm install --no-bin-links

  • On the host machine (assuming Windows), but some variation of this will work in any OS: cd C:\Program Files\Oracle\VirtualBox

  • Run the following command:

    VBoxManage setextradata VM_NAME VBoxInternal2/SharedFoldersEnableSymlinksCreate/SHARE_NAME 1
    

    replacing VM_NAME with your Virtual Machine's name (if you don't know this, in VBox go to Machine > Settings > General > Basic > Name --- also replace SHARE_NAME with the name of your shared folder, if you don't remember this, go to Machine > Settings > Shared Folders.

  • Restart your VM AND VirtualBox, but run it as administrator. On Windows hosts, just right click the icon for VirtualBox and select Run as Administrator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment