You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.
Description
"npm install" doesnt work in a container's mounted folder specified using docker run -v /host-folder:/mounted/folder. same project installs and runs fine in an unmounted folder. i am using standard windows toobox setup e.g. windows vbox host => ubuntu guest (also docker host) => ubutnu container.
Steps to reproduce the issue:
clone any node.js project from github into the /mounted/folder specified with docker run -v (see above).
cd /mounted/folder
$/mounted/folder> npm install
observe it fail with message in observed results (below)
clone the exact same node.js project in an unmounted folder
cd /unmounted/folder
$u/nmounted/folder> npm install
observe successful install
$unmounted/folder> npm start
observe successful start
Describe the results you received: [email protected] /home/vs3/public_html/todo
`-- (empty)
npm ERR! rofs EROFS: read-only file system, symlink '../mime/cli.js' -> '/home/vs3/public_html/todo/node_modules/.bin/mime'
npm ERR! rofs This is most likely not a problem with npm itself
npm ERR! rofs and is related to the file system being read-only.
npm ERR! rofs
npm ERR! rofs Often virtualized file systems, or other file systems
npm ERR! rofs that don't support symlinks, give this error.
npm ERR! Please include the following file with any support request:
npm ERR! /root/.npm/_logs/2017-04-05T13_31_52_475Z-debug.log
Describe the results you expected:
npm install to pass.
Additional information you deem important (e.g. issue happens only occasionally):
Description
"npm install" doesnt work in a container's mounted folder specified using docker run -v /host-folder:/mounted/folder. same project installs and runs fine in an unmounted folder. i am using standard windows toobox setup e.g. windows vbox host => ubuntu guest (also docker host) => ubutnu container.
Steps to reproduce the issue:
Describe the results you received:
[email protected] /home/vs3/public_html/todo
`-- (empty)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/acorn):
npm WARN rofs SKIPPING OPTIONAL DEPENDENCY: EROFS: read-only file system, symlink '../acorn/bin/acorn' -> '/home/vs3/public_html/todo/node_modules/.bin/acorn'
npm ERR! Linux 4.4.57-boot2docker
npm ERR! argv "/root/.nvm/versions/node/v7.8.0/bin/node" "/root/.nvm/versions/node/v7.8.0/bin/npm" "install"
npm ERR! node v7.8.0
npm ERR! npm v4.2.0
npm ERR! path ../mime/cli.js
npm ERR! code EROFS
npm ERR! errno -30
npm ERR! syscall symlink
npm ERR! rofs EROFS: read-only file system, symlink '../mime/cli.js' -> '/home/vs3/public_html/todo/node_modules/.bin/mime'
npm ERR! rofs This is most likely not a problem with npm itself
npm ERR! rofs and is related to the file system being read-only.
npm ERR! rofs
npm ERR! rofs Often virtualized file systems, or other file systems
npm ERR! rofs that don't support symlinks, give this error.
npm ERR! Please include the following file with any support request:
npm ERR! /root/.npm/_logs/2017-04-05T13_31_52_475Z-debug.log
Describe the results you expected:
npm install to pass.
Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
windows 10/vbox 5 host running Docker default machine running an ubuntu container.
container npm: v4.2.0
container node: v7.8.0
The text was updated successfully, but these errors were encountered: