λ¬Έμ
μμ€μμ μ€μΉνλ κ²½μ° npm μ€μΉμ μ€λ₯κ° λ°μν©λλ€.
npm μ€μΉλ‘ μμ± λ λλ²κ·Έ λ‘κ·Έλ 첨λΆνμ΅λλ€.
λ€μ ν΄κ²° λ°©λ²μ μλνμ΅λλ€.
1) githubμμ SSH pub / priv ν€ μ μμ±
κ·Έλ° λ€μ npmμμ μ€ν¨ν λͺ
λ Ήμ λ¬Έμ μμ΄ μλμΌλ‘ μ€νν μ μμ΅λλ€.
/usr/bin/git ls-remote -h -t ssh://[email protected]/seonim-ryu/Squire.git
2) gitμ΄ git λμ httpsλ₯Ό μ¬μ©νλλ‘ κ°μ νμμμ€.
git config --global url."https://github.com/".insteadOf [email protected]:
git config --global url."https://".insteadOf git://
λ¬Έμ λ₯Ό μ¬ννλ λ°©λ²
λ€μμ μ€ννλ μ€ν¬λ¦½νΈλ₯Ό λ§λ€μμ΅λλ€.
yum install rh-python36* -y
yum install rh-nodejs12* -y
yum install gcc-c++ -y
yum groupinstall "Development tools" -y
source scl_source enable rh-nodejs12 rh-python36
git clone https://github.com/chakki-works/doccano.git
cd doccano
virtualenv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
cd frontend
npm install
μλ¬ λ©μμ§
[root]# npm i
npm WARN deprecated [email protected]: use String.prototype.padStart()
npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://[email protected]/seonim-ryu/Squire.git
npm ERR!
npm ERR! fatal: failed to stat '.': Permission denied
npm ERR!
npm ERR! exited with error code: 128
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-01-17T14_05_41_472Z-debug.log
[root]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.7 (Maipo)
[root]# yum list installed | grep rh-python
rh-python36.x86_64 2.0-1.el7 @rhel-server-rhscl-7-rpms
[root]# python --version
Python 3.6.9
[root]# yum list installed | grep pip
rh-python36-python-pip.noarch 9.0.1-2.el7 @rhel-server-rhscl-7-rpms
[root]# pip --version
pip 9.0.1 from /opt/rh/rh-python36/root/usr/lib/python3.6/site-packages (python 3.6)
[root]# yum list installed | grep -A 2 virtualenv
rh-python36-python-virtualenv.noarch 15.1.0-2.el7 @rhel-server-rhscl-7-rpms
[root]# virtualenv --version
15.1.0
[root]# yum list installed | grep npm
rh-nodejs12-npm.x86_64 6.10.3-12.10.0.4.el7 @rhel-server-rhscl-7-rpms
[root]# npm --version
6.10.3
[root]# yum list installed | grep rh-node
rh-nodejs12.x86_64 3.4-1.el7 @rhel-server-rhscl-7-rpms
[root]# node --version
v12.10.0
[root]# yum list installed | grep git
git.x86_64 1.8.3.1-20.el7 @rhel-7-server-rpms
[root]# git --version
git version 1.8.3.1
[root]# gcc --version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
μ΄κ²μ μ΅κ·Όμ λͺ λͺ
λ§ μ€ν¨νμ΅λλ€.
2020-01-17T16_49_58_359Z-debug.log
μ΄ μ€λ₯λ doccanoκ° μλλΌ λ€νΈμν¬ μ€μ λλ¬ΈμΈ κ² κ°μ΅λλ€. λ¨Όμ gitμμ npm install
ν μ μλμ§ νμΈνμμμ€.
gitμμ npm μ€μΉλ₯Ό μλ―Ένλ κ²μ΄ μ νν 무μμΈμ§ λͺ ννμ§ μμ΅λλ€. μμΈν μ€λͺ ν΄ μ£Όμκ² μ΅λκΉ? μ΄λ€ λ€νΈμν¬ μ€μ μ λν΄ μ΄μΌκΈ°νκ³ μμ΅λκΉ?
λ¬Έμ μμ΄ λ€μ λͺ λ Ήμ μ€νν μ μλ€κ³ μΈκΈνμ΅λλ€.
/usr/bin/git ls-remote -h -t ssh://[email protected]/seonim-ryu/Squire.git
κ·Έλ¬λ npmμ ν΅ν΄ μ€νλ λ μ€ν¨ ν λμ λλ€. μ΄ νΉμ μ μ₯μκ° λ€λ₯Έ λ§μ μ μ₯μμ λ§μ°¬κ°μ§λ‘ https λμ git (ssh νλ‘ν μ½) λ§ν¬λ₯Ό μ¬μ©νλ μ΄μ λ₯Ό μ λͺ¨λ₯΄κ² μ΅λλ€.
μ’μμ, μ§κΈ μλνλ κ²μ μ°Ύμμ΅λλ€.
λΆλͺ
ν μ΄κ²μ npmμ sudo-ed μΈμ
μΌλ‘ μ€νν λ λ°μν©λλ€.
νμΌ / ν΄λμ λν κΆνμ λ³κ²½νκ³ λμ νμ€ μ¬μ©μλ‘ μ€νν΄μΌνμ΅λλ€.
κ°μ₯ μ μ©ν λκΈ
μ’μμ, μ§κΈ μλνλ κ²μ μ°Ύμμ΅λλ€.
λΆλͺ ν μ΄κ²μ npmμ sudo-ed μΈμ μΌλ‘ μ€νν λ λ°μν©λλ€.
νμΌ / ν΄λμ λν κΆνμ λ³κ²½νκ³ λμ νμ€ μ¬μ©μλ‘ μ€νν΄μΌνμ΅λλ€.