I am 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
es/ansi-styles'
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
I am developing inside a docker container with node 12.
My question is: how can I fix this issue? Also, is this a Docker-related issue?
Reinstall Node.js and then try to install Vue https://nodejs.org/en/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.