node.js - 无法在 Linux 终端中安装 Vue CLI
问题描述
我正在尝试全局安装 Vue CLI,但运行命令后出现以下错误sudo npm i -g @vue/cli
错误:
npm ERR! code EROFS
npm ERR! syscall open
npm ERR! path /home/<system_user_name>/.npm/_cacache/tmp/aa05074f
npm ERR! errno EROFS
npm ERR! rofs Invalid response body while trying to fetch https://registry.npmjs.org/@vue%2fcli-service: EROFS: read-only file system, open '/home/ravinder/.npm/_cacache/tmp/aa05074f'
npm ERR! rofs Often virtualized file systems, or other file systems
npm ERR! rofs that don't support symlinks, give this error.
我也检查/usr/local/lib/node_modules
过,这里@vue 文件夹已经可用。
请帮我解决上述问题。此外,我对拼写错误感到抱歉。提前致谢
解决方案
推荐阅读
- linkedin - 可以从 API 调用返回 LinkedIn 连接度吗?
- wordpress - 来自 API 的 Coinbase Commerce Woocommerce 错误响应:缺少必需参数:pricing_type
- r - nsprcomp():对 R 中的主成分分析强制执行非负性
- asp.net-core - 渲染不带字体的 PDF
- html - 关键帧动画无法正常工作 - CSS
- python - 如何将这两个图像与 python numpy 和 opencv 合并?
- tomcat7 - 带有版本化部署的 Tomcat docBase
- javascript - 有没有办法使用 React-Native 创建和调度/触发自定义事件?
- django - Django 2.0.5 使用 CBV 列表视图显示不同的查询集结果
- html - flexbox 中的对齐内容在 IE 11 中不起作用