Programming2015. 4. 14. 06:59

사이트에 가입한후

https://git.popcorntime.io/popcorntime


Public Key를 등록. 이미 있으면 그거 넣어주면 되고

cat ~/.ssh/id_rsa

없으면 만들어서 넣어주면 됨

ssh-keygen -t rsa -C "EMAIL"

https://git.popcorntime.io/popcorntime/desktop

git clone git@git.popcorntime.io:popcorntime/desktop.git


https://git.popcorntime.io/popcorntime/receiver ; chromecast receiver

git clone git@git.popcorntime.io:popcorntime/receiver.git


https://git.popcorntime.io/popcorntime/android

git clone git@git.popcorntime.io:popcorntime/android.git


https://git.popcorntime.io/popcorntime/streamer

git clone git@git.popcorntime.io:popcorntime/streamer.git


https://git.popcorntime.io/popcorntime/pdk

git clone git@git.popcorntime.io:popcorntime/pdk.git


nodejs, npm을 잘못설치하면 아래처럼 엄청난 에러와 싸워야함. 소스받아 compile해서 설치하는게 젤 안전함.

NPM package

sudo apt-get install npm


------------------------------------

여까정 하고 했더니 에러난다. 아씨. 오늘 저녁에 다시.


./make_popcorn.sh

Looks like we are inside a git repository, do you wish to clone inside it? (yes/no) [no]

You appear to be inside of a Popcorn Time repository already, not cloning

Do you wish to install the required dependencies for Popcorn Time and setup for building? (yes/no) [yes]

Switched to /local/mnt2/workspace2/hyosubo/popcorn_time/desktop

Installing global dependencies

npm http GET https://registry.npmjs.org/bower

npm http GET https://registry.npmjs.org/grunt-cli


npm ERR! Error: failed to fetch from registry: bower

npm ERR!     at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12

npm ERR!     at cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9)

npm ERR!     at Request._callback (/usr/share/npm/lib/utils/npm-registry-client/request.js:136:18)

npm ERR!     at Request.callback (/usr/lib/nodejs/request/main.js:119:22)

npm ERR!     at Request.<anonymous> (/usr/lib/nodejs/request/main.js:212:58)

npm ERR!     at Request.emit (events.js:88:20)

npm ERR!     at ClientRequest.<anonymous> (/usr/lib/nodejs/request/main.js:412:12)

npm ERR!     at ClientRequest.emit (events.js:67:17)

npm ERR!     at HTTPParser.onIncoming (http.js:1261:11)

npm ERR!     at HTTPParser.onHeadersComplete (http.js:102:31)

npm ERR! You may report this log at:

npm ERR!     <http://bugs.debian.org/npm>

npm ERR! or use

npm ERR!     reportbug --attach /local/mnt2/workspace2/hyosubo/popcorn_time/desktop/npm-debug.log npm

npm ERR!

npm ERR! System Linux 3.2.0-40-generic

npm ERR! command "node" "/usr/bin/npm" "install" "-g" "bower" "grunt-cli"

npm ERR! cwd /local/mnt2/workspace2/hyosubo/popcorn_time/desktop

npm ERR! node -v v0.6.12

npm ERR! npm -v 1.1.4

npm ERR! message failed to fetch from registry: bower

npm ERR!

npm ERR! Additional logging details can be found in:

npm ERR!     /local/mnt2/workspace2/hyosubo/popcorn_time/desktop/npm-debug.log

npm not ok

---------------------------------

Javascript/JSON

JAVA

이런것들로 이런 거대한 프로젝트를 만들수 있다니, 세상이 왜 이렇게 빨리 변하는건지. 우리 아들은 어떤 언어로 이 세상을 바꿀지 궁금하다.


---------------------------------

http://stackoverflow.com/questions/12913141/message-failed-to-fetch-from-registry-while-trying-to-install-any-module

npm config set registry http://registry.npmjs.org/
sudo apt-get purge nodejs npm
curl -sL https://deb.nodesource.com/setup | sudo bash -
sudo apt-get install -y nodejs

-------------------------------

Installing global dependencies

npm ERR! Error: Attempt to unlock bower, which hasn't been locked

npm ERR!     at unlock (/usr/lib/node_modules/npm/lib/utils/locker.js:44:11)

npm ERR!     at cb (/usr/lib/node_modules/npm/lib/cache/add-local.js:30:5)

npm ERR!     at /usr/lib/node_modules/npm/lib/cache/add-local.js:47:20

npm ERR!     at /usr/lib/node_modules/npm/lib/utils/locker.js:22:20

npm ERR!     at /usr/lib/node_modules/npm/node_modules/inflight/inflight.js:22:7

npm ERR!     at Array.forEach (native)

npm ERR!     at res (/usr/lib/node_modules/npm/node_modules/inflight/inflight.js:21:9)

npm ERR!     at f (/usr/lib/node_modules/npm/node_modules/once/once.js:16:25)

npm ERR!     at afterMkdir (/usr/lib/node_modules/npm/lib/cache/get-stat.js:53:14)

npm ERR!     at /usr/lib/node_modules/npm/node_modules/mkdirp/index.js:46:53

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 3.2.0-40-generic

npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "-g" "bower" "grunt-cli"

npm ERR! cwd /local/mnt2/workspace2/hyosubo/popcorn_time/desktop

npm ERR! node -v v0.10.38

npm ERR! npm -v 1.4.28

npm ERR!

npm ERR! Additional logging details can be found in:

npm ERR!     /local/mnt2/workspace2/hyosubo/popcorn_time/desktop/npm-debug.log

npm ERR! not ok code 0

-----------------------------

https://github.com/npm/npm/issues/4815

https://gist.github.com/isaacs/579814


echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh


-------------------------

https://docs.npmjs.com/getting-started/fixing-npm-permissions

-------------------------

sudo 없이 실행하기, ./make_popcorn.sh


execsudo() {

#       sudo $1

       $1



npm config set prefix ~/npm

export NODE_PATH="$NODE_PATH:$HOME/npm/lib/node_modules"

export PATH=$PATH:$HOME/npm/bin


grunt build --force

grunt start



wget http://get.popcorntime.io/nw/v0.9.2/node-webkit-v0.9.2-linux-x64.tar.gz

--2015-04-23 19:31:51-- http://get.popcorntime.io/nw/v0.9.2/node-webkit-v0.9.2-linux-x64.tar.gz Resolving get.popcorntime.io (get.popcorntime.io)... 62.210.244.59 Connecting to get.popcorntime.io (get.popcorntime.io)|62.210.244.59|:80... connected. HTTP request sent, awaiting response... 403 URLBlocked 2015-04-23 19:31:51 ERROR 403: URLBlocked.

--------------------------
Running "shell:language" (shell) task You need to run this command from the toplevel of the working tree. Warning: Command failed: /bin/sh -c git submodule init&&cd src/app/language/&&git submodule update --init&&git pull origin master --force You need to run this command from the toplevel of the working tree. Use --force to continue. Aborted due to warnings.

-----------------

error가 없다고 가정할때 아래처럼 하면 가장 쉬움. tested with Ubuntu 14.04.

NPM, NodeJS 설치가 안되면 x되는 수가 있어서 아래와 같이 설치하면 됨


sudo apt-get install python g++ make
wget http://nodejs.org/dist/node-latest.tar.gz
tar xvfvz node-latest.tar.gz
cd node-v0.12.0
./configure
make
sudo make install

./make_popcorn.sh

grunt start

'Programming' 카테고리의 다른 글

토렌트, BitTorrent  (0) 2015.04.24
Web Sequence diagram blog에 넣기  (0) 2015.04.16
BAT/CMD windows script to EXE executable converter  (0) 2015.03.17
Bash shell script  (0) 2015.03.14
windows batch file tips  (0) 2015.03.14
Posted by 쁘레드