node sudo 문제인가요? #312

Open
shin04u opened this Issue Nov 18, 2013 · 7 comments

Projects

None yet

1 participant

@shin04u
shin04u commented Nov 18, 2013

#277
설치만 열댓번 하면서 여기까지 찾긴 했는데 적용해도 같은문제네요.. 증상이 같은걸로 봐서는 node 문제인거 같은데..
일단 sudo chown -R $USER /usr/local 해도 해결이 안되네요;; 위에 알려주신 3가지 방법 모두..ㅜㅜ

@shin04u
shin04u commented Nov 18, 2013

Macintosh:shin04u.github.com Bongoon$ curl http://npmjs.org/install.sh | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 85 0 85 0 0 219 0 --:--:-- --:--:-- --:--:-- 220
sh: line 1: syntax error near unexpected token newline' sh: line 1:Moved: https://npmjs.org/install.sh'
지우고 다시 까는데 여기서 막히네요 마지막에 sudo sh 하면 설치가 되는데 make init 할때도 sudo 가 필요한거 보니 여기가 문제점인듯한데 해결 할 수 있을까요?

@shin04u
shin04u commented Nov 18, 2013

Macintosh:shin04u.github.com Bongoon$ curl https://npmjs.org/install.sh | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 7810 100 7810 0 0 6684 0 0:00:01 0:00:01 --:--:-- 6680
tar=/usr/bin/tar
version:
bsdtar 2.8.3 - libarchive 2.8.3
install npm@latest
curl: (60) SSL certificate problem: Invalid certificate chain
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.
curl: (60) SSL certificate problem: Invalid certificate chain
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.
Failed to get tarball url for npm/latest

내용대로 http 대신에 https로 진행하니 뭔가 진행은 되는데.. npm은 설치가 안됬네요...

@shin04u
shin04u commented Nov 18, 2013

Macintosh:shin04u.github.com Bongoon$ make init
npm install -g node-gyp
npm ERR! Error: EACCES, open '/Users/Bongoon/.npm/c0cd6589-node-gyp.lock'
npm ERR! { [Error: EACCES, open '/Users/Bongoon/.npm/c0cd6589-node-gyp.lock']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/Users/Bongoon/.npm/c0cd6589-node-gyp.lock' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Darwin 13.0.0
npm ERR! command "/Users/Bongoon/.nvm/v0.10.13/bin/node" "/Users/Bongoon/.nvm/v0.10.13/bin/npm" "install" "-g" "node-gyp"
npm ERR! cwd /Users/Bongoon/Documents/blog/shin04u.github.com
npm ERR! node -v v0.10.13
npm ERR! npm -v 1.3.2
npm ERR! path /Users/Bongoon/.npm/c0cd6589-node-gyp.lock
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, open '/Users/Bongoon/.npm/c0cd6589-node-gyp.lock'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/Bongoon/Documents/blog/shin04u.github.com/npm-debug.log
npm ERR! not ok code 0
make: *** [initialize] Error 3

구글링 해보니 이제는 node가 설치되면서 npm이 같이 설치된다기에 ~/.nvm 폴더를 지우고 http://insanehong.kr/post/haroopress-pre/ 참고해서 node 설치 후 npm 설치까지 왔는데 결국 제자리네요.. 휴...포기 해야하나요..

@shin04u
shin04u commented Nov 18, 2013

Macintosh:blog Bongoon$ git clone git@github.com:rhiokim/haroopress.git shin04u.github.com
Cloning into 'shin04u.github.com'...
Warning: Permanently added the RSA host key for IP address '192.30.252.130' to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

혹시 몰라서 기존에 있던 하루프레스를 삭제하고 다시 받으려고 하니 이런 난관이.........ㅜㅜ

@shin04u
shin04u commented Nov 18, 2013

sudo chown -R Bongoon:staff ~/.nvm/
sudo chown -R Bongoon:staff ~/.npm/

이걸 하고 나니까 sudo 없이 make init 되네요...헐.....성공...감사합니다. 닫아주세요.. ㅜ_ㅜ

@shin04u
shin04u commented Nov 19, 2013

사소한 문제가 하나 더 있었는데
make preview 하고 나서
ctrl + c 로 닫지 않으면 포트가 열려있어서 make preview가 두번 안되네요. 감사합니다! ㅎㅎ

@shin04u
shin04u commented Nov 19, 2013

Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.

재부팅 하니 위와같은 메시지가 나오면서 make preview가 안됬는데, xcode실행해서 agree인가 해주니 되네요. 문제가 끊이질 않네요

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment