![](/img/trans.png)
[英]zapier-platform-cli init Error! ENOENT: no such file or directory
[英]Vue CLI project setup throws ENOENT: no such file or directory error
我正在尝试创建一个新的 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 然后尝试安装 Vue https://nodejs.org/en/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.