Describe the bug
When created instance of Ubuntu 20.x and mount a folder to be shared - cannot install npm packages:
npm WARN tar TAR_ENTRY_ERROR EPERM: operation not permitted, open '/server/node_modules/tiny-lru/package.json'
npm WARN tar TAR_ENTRY_ERROR EPERM: operation not permitted, open '/server/node_modules/through/readme.markdown'
npm WARN tar TAR_ENTRY_ERROR EPERM: operation not permitted, open '/server/node_modules/typescript/LICENSE.txt'
npm WARN tar TAR_ENTRY_ERROR EPERM: operation not permitted, open '/server/node_modules/vscode-typescript-languageservice/out/services/codeAction.js'
npm WARN tar TAR_ENTRY_ERROR EPERM: operation not permitted, open '/server/node_modules/string.prototype.padend/.nycrc
I cannot install the packages on the host and run on Ubuntu because it seems like the installed packages are not compatible with Ubuntu (my host is MacOS), so it needs to install packages itself.
Am I mounting the folder wrongly that leaves the instance with lack of permissions or is there something else that might be missing?
To Reproduce
How, and what happened?
multipass mount ./project-folder-on-host instance-name:/name-alias
- make sure npm and nodejs are installed
npm install inside the mounted folder
Expected behavior
Packages to be able to install with sufficient permissions for the created instance to write / read files
Logs
Above
Additional info
- OS: MacOS monterey 12.3.1
multipass version - 1.8.1
multipass info --all
Name: delighted-stoat
State: Running
IPv4: 192.168.64.4
Release: Ubuntu 20.04.4 LTS
Image hash: ccc11e625acd (Ubuntu 20.04 LTS)
Load: 0.00 0.03 0.03
Disk usage: 1.7G out of 4.7G
Memory usage: 163.4M out of 970.0M
Mounts: /Users/**/Desktop/altv-dayz => /server
UID map: 501:default
GID map: 20:default
Additional context
Add any other context about the problem here.
Describe the bug
When created instance of Ubuntu 20.x and mount a folder to be shared - cannot install
npmpackages:I cannot install the packages on the host and run on Ubuntu because it seems like the installed packages are not compatible with Ubuntu (my host is MacOS), so it needs to install packages itself.
Am I mounting the folder wrongly that leaves the instance with lack of permissions or is there something else that might be missing?
To Reproduce
How, and what happened?
multipass mount ./project-folder-on-host instance-name:/name-aliasnpm installinside the mounted folderExpected behavior
Packages to be able to install with sufficient permissions for the created instance to write / read files
Logs
Above
Additional info
multipass version- 1.8.1multipass info --allAdditional context
Add any other context about the problem here.