我想在ubuntu中安装botium-cli。但出现拒绝访问错误。
尝试使用以下命令
sudo npm install -g botium-cli
typechecker@2.0.8预安装/ usr / lib / node_modules / botium-cli / node_modules / watchr / node_modules / extract-opts / node_modules / typechecker 节点./cyclic.js
typechecker@2.0.8预安装/ usr / lib / node_modules / botium-cli / node_modules / extendr / node_modules / typechecker 节点./cyclic.js
/ usr / bin / botium-cli-> /usr/lib/node_modules/botium-cli/bin/botium-cli.js
dtrace-provider@0.8.7安装/ usr / lib / node_modules / botium-cli / node_modules / dtrace-provider node-gyp重建||节点prevent-error.js
gyp WARN EACCES user "root" does not have permission to access the dev dir "/home/mtech/.node-gyp/10.16.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/botium-cli/node_modules/dtrace-provider/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/botium-cli/node_modules/dtrace-provider/.node-gyp'
gyp ERR! System Linux 4.8.0-36-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/lib/node_modules/botium-cli/node_modules/dtrace-provider
gyp ERR! node -v v10.16.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok