如何使用vue.js安装解决问题 [英] How to fix the problem with vue.js instalation

查看:52
本文介绍了如何使用vue.js安装解决问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家晚上好!我正在尝试使用npm在我的Linux Mint上安装vue.js.当我运行vue教程中给出的简单命令时:

Good evening everybody! I'm trying to install vue.js on my linux mint using npm. When I run the simple command given in vue tutorial:

npm install -g @vue/cli

警告后,终端中会出现以下错误:

After some warnings the following errors appear in terminal:

 npm ERR! code EACCES
npm ERR! syscall access
npm ERR! path /usr/local/lib
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib'
npm ERR!  { [Error: EACCES: permission denied, access '/usr/local/lib']
npm ERR!   stack:
npm ERR!    'Error: EACCES: permission denied, access \'/usr/local/lib\'',
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/usr/local/lib' }
npm ERR! 
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR! 
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     and path to error log here

我了解到,该操作被我的操作系统拒绝"但是我不知道如何解决它.如果有人帮助我,我将不胜感激,因为我想这是简单的问题

I understand, that "the operation was rejected by my operation system" But I have no idea, how to fix it. I will be grateful if someone helps me with this, as I suppose simple problem

推荐答案

尝试 sudo npm install -g @ vue/cli

这篇关于如何使用vue.js安装解决问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆