我正在尝试创建一个新的Vue.js应用程序,我正在运行命令:
vue create client
接下来我选择默认模板:
default (babel, eslint)
但是,在设置完成之前,它会退出并出现以下错误:
✨ 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
我正在节点12的docker容器中进行开发。
我的问题是:如何解决这个问题?此外,这是与Docker相关的问题吗?
重新安装Node.js,然后尝试安装Vuehttps://nodejs.org/en/