无法在Ubuntu

时间:2018-02-16 18:57:36

标签: linux selenium appium appium-ios appium-android

我正在尝试在ubuntu上安装appium,但它显示以下错误。请帮忙。

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
npm ERR! path /usr/local/lib/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR!  { Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR!   stack: 'Error: EACCES: permission denied, access \'/usr/local/lib/node_modules\'',
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/usr/local/lib/node_modules' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/anubhavjain/.npm/_logs/2018-02-16T18_51_42_881Z-debug.log

1 个答案:

答案 0 :(得分:2)

错误消息“请尝试以root / Administrator身份再次运行此命令”。可以包含答案。试试这个:sudo npm install -g appium