ti-unit
ti-unit copied to clipboard
Get permission denied error when installing ti-unit via npm install
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.
Have you tried with sudo ?
Yes, indeed. Same error happens with sudo too.
Using https protocol solves the problem in my case.
npm install git+https://github.com/aca-mobile/ti-unit.git#1.1.1