play-co / devkit

HTML 5 game platform for browser and mobile
http://docs.gameclosure.com
627 stars 126 forks source link

Install instructions Linux #200

Closed jwilm closed 9 years ago

jwilm commented 9 years ago

Originally posted by @jishnu7 before the devkit2 repo merge

Asking users to change ownership of a system folder is a bad advice.

Instead ask to create npmrc, point npm global to a folder in user's home directory and add this location to PATH.

~/.npmrc

prefix = /home/user_name/.npm-bin

.bashrc or .zshrc

PATH=$PATH:/home/user_name/.npm-bin

now npm install -g devkit will work without root permission.

collingreen commented 9 years ago

Updated the wiki with this as the first installation option