求解答sudo npm install -g appium --registry=https://registry.npm.taobao.org遇到的問題?
執行sudo npm install -g appium --registry=https://registry.npm.taobao.org命令時出現一下錯誤,有沒有大神有解決辦法?
@[npm ERR! Linux 4.15.0-36-generic
npm ERR! argv “/usr/bin/node” “/usr/bin/npm” “install” “-g” “appium” “–registry=https://registry.npm.taobao.org”
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! path /home/ibo/.npm-packages/lib/node_modules/appium/build/lib/main.js
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod ‘/home/ibo/.npm-packages/lib/node_modules/appium/build/lib/main.js’
npm ERR! enoent ENOENT: no such file or directory, chmod ‘/home/ibo/.npm-packages/lib/node_modules/appium/build/lib/main.js’
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! /home/ibo/npm-debug.log
npm ERR! code 1