Closed amitn16 closed 6 years ago
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.
after following new readme, it is resolved. as i also did fresh npm installation.
👍
[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 git@github.com:tuyapi/cli Cloning into bare repository '/root/.npm/_git-remotes/git-github-com-tuyapi-cli-3083bead'... npm ERR! git clone git@github.com: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 git@github.com:tuyapi/cli Permission denied (publickey). npm ERR! git clone git@github.com:tuyapi/cli fatal: Could not read from remote repository. npm ERR! git clone git@github.com:tuyapi/cli npm ERR! git clone git@github.com:tuyapi/cli Please make sure you have the correct access rights npm ERR! git clone git@github.com: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#