Skip to content

non-interactive uninstall for the npm package #797

@dsebastien

Description

@dsebastien

What happened?

In our Docker image, a certain steps executes npm prune and npm cache clean.
It seems that DevSpaces asks for user input, which I need to avoid in my scenario.

What did you expect to happen instead?
Silent uninstall

How can we reproduce the bug? (as minimally and precisely as possible)

Check out the logs below:

...
Step 32/83 : RUN npm prune --production && npm cache clean --force
 ---> Running in 88b430bd85d7
...
> devspace@4.2.0-npm preuninstall node_modules/devspace
> node index.js uninstall

? Do you want to remove the global DevSpace config folder ~/.devspace? (Use arro
w keys)
❯ no 
  yes The command '/bin/sh -c npm prune --production && npm cache clean --force' returned a non-zero code: 130

  • Operating System: linux

/kind bug

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions