Docker Community Forums

Share and learn in the Docker community.

Vue CLI project setup throws ENOENT: no such file or directory error

I am developing inside a docker container with node 12, and is trying to create a new Vue.js app and I am running the command:

vue create client

Next I am selecting the default template:

default (babel, eslint) 

However, before the setup completes, it exits with the following error:

✨  Creating project in /workspace/client.
⚙️  Installing CLI plugins. This might take a while...

npm ERR! code ENOENT
npm ERR! syscall rename
npm ERR! path /workspace/client/node_modules/.inquirer.DELETE/node_modules/ansi-styles
npm ERR! dest /workspace/client/node_modules/inquirer/node_modules/ansi-styles
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, rename '/workspace/client/node_modules/.inquirer.DELETE/node_modules/ansi-styles' -> '/workspace/client/node_modules/inquirer/node_modul
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-04-29T20_47_33_239Z-debug.log

My question is: how can I fix this issue? Also, is this a Docker-related issue?