首页 > 解决方案 > 无法在 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 文件夹已经可用。

请帮我解决上述问题。此外,我对拼写错误感到抱歉。提前致谢

标签: node.jslinuxvue.jsnpm

解决方案


推荐阅读