Skip to content

Docker run throws Error: EPERM: operation not permitted, mkdir '/app/node_modules' #118

@moorthi07

Description

@moorthi07

While running
sudo docker run docker-android
cd app
npm install

throws this following error. By default it supposed to be root user. any idea why permission is still denied?!
Docker os : Ubuntu


errno -1
npm ERR! Error: EPERM: operation not permitted, mkdir '/app/node_modules'
npm ERR!  [OperationalError: EPERM: operation not permitted, mkdir '/app/node_modules'] {
npm ERR!   cause: [Error: EPERM: operation not permitted, mkdir '/app/node_modules'] {
npm ERR!     errno: -1,
npm ERR!     code: 'EPERM',
npm ERR!     syscall: 'mkdir',
npm ERR!     path: '/app/node_modules'
npm ERR!   },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions