tuyapi icon indicating copy to clipboard operation
tuyapi copied to clipboard

npm i @tuyapi/cli -g is throwing error of permission denied

Open amitn16 opened this issue 8 years ago • 3 comments

[13:56:33] root@smarthome:~/node_modules/cli-master# npm i @tuyapi/cli -g (node:17491) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead. npm ERR! git clone [email protected]:tuyapi/cli Cloning into bare repository '/root/.npm/_git-remotes/git-github-com-tuyapi-cli-3083bead'... npm ERR! git clone [email protected]:tuyapi/cli Warning: Permanently added the RSA host key for IP address '192.30.253.112' to the list of known hosts. npm ERR! git clone [email protected]:tuyapi/cli Permission denied (publickey). npm ERR! git clone [email protected]:tuyapi/cli fatal: Could not read from remote repository. npm ERR! git clone [email protected]:tuyapi/cli npm ERR! git clone [email protected]:tuyapi/cli Please make sure you have the correct access rights npm ERR! git clone [email protected]:tuyapi/cli and the repository exists. npm ERR! addLocal Could not install tuyapi/cli npm ERR! Error: ENOENT: no such file or directory, stat 'tuyapi/cli' npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues

npm ERR! System Linux 4.14.52-v7+ npm ERR! command "/usr/bin/node" "/usr/bin/npm" "i" "@tuyapi/cli" "-g" npm ERR! cwd /root/node_modules/cli-master npm ERR! node -v v8.11.1 npm ERR! npm -v 1.4.21 npm ERR! path tuyapi/cli npm ERR! syscall stat npm ERR! code ENOENT npm ERR! errno -2 npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /root/node_modules/cli-master/npm-debug.log npm ERR! not ok code 0 [14:07:44] root@smarthome:~/node_modules/cli-master#

amitn16 avatar Aug 17 '18 12:08 amitn16

Looks like that's an issue with your NPM configuration, not tuyapi/cli. If you're ok with resetting your NPM configuration to default values, see this Stack Overflow answer.

NPM shouldn't be cloning from master unless told to, it should be pulling a zipped package from the NPM repository.

codetheweb avatar Aug 18 '18 01:08 codetheweb

after following new readme, it is resolved. as i also did fresh npm installation.

amitn16 avatar Aug 23 '18 09:08 amitn16

👍

codetheweb avatar Aug 23 '18 22:08 codetheweb