Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
amitn16 opened this issue Aug 17, 2018 · 3 comments
Closed

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

amitn16 opened this issue Aug 17, 2018 · 3 comments
Labels

Comments

@amitn16
Copy link

amitn16 commented Aug 17, 2018

[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#

@codetheweb
Copy link
Owner

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.

@amitn16
Copy link
Author

amitn16 commented Aug 23, 2018

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

@amitn16 amitn16 closed this as completed Aug 23, 2018
@codetheweb
Copy link
Owner

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants