ti-unit icon indicating copy to clipboard operation
ti-unit copied to clipboard

Get permission denied error when installing ti-unit via npm install

Open qasim90 opened this issue 5 years ago • 3 comments

Following the installation guide I've installed jasmine but when I try to install ti-unit with the command npm install git+ssh://github.com/aca-mobile/ti-unit.git#1.0.0 --save-dev as mentioned in the guide I get the following error:

npm ERR! code 1
npm ERR! Command failed: /usr/bin/git clone --depth=1 -q -b 1.1.0 ssh://[email protected]/aca-mobile/ti-unit.git /Users/macbook/.npm/_cacache/tmp/git-clone-27368418
npm ERR! /Users/macbook/.npm/_cacache/tmp/git-clone-27368418/.git: Permission denied

I then manually downloaded the repo from github and placed inside /usr/local/lib/node_modules/ but not sure how to verify its successfully installed.

qasim90 avatar Aug 07 '19 05:08 qasim90

Have you tried with sudo ?

davidcyp avatar Aug 07 '19 07:08 davidcyp

Yes, indeed. Same error happens with sudo too.

qasim90 avatar Aug 08 '19 04:08 qasim90

Using https protocol solves the problem in my case. npm install git+https://github.com/aca-mobile/ti-unit.git#1.1.1

j3t avatar Sep 10 '19 13:09 j3t