parse 설치시 이슈들 도움을 받으면 좋겠습니다. ^^

virtual box 에 centos 7(64bit) 를 올리고, parse 를 설치하고 있습니다.
nodejs v12.13.1
npm v6.13.1
mongodb 3.4

위와 같이 설치 후에 파서를 설치하면, 아래와 같은 로그가 나오고 있습니다.

이슈) core-js@3 업그레이드
core-js@2 를 core-js@3 으로 npm -g install --save core-js@^3 로 업그레이드를 하였지만, 해결되고 있지 않습니다.

이슈) 퍼미션 거부 및 권한 없음
node-pre-gyp WARN Hit error EACCES: permission denied, mkdir ‘/usr/lib/node_modules/parse-server/node_modules/bcrypt/lib’

root 계정으로 설치중인데요 권한이 거부된 것은 어떻게 해야 할지 모르겠습니다.
EACCES current user (“nobody”) does not have permission to access the dev dir “/root/.cache/node-gyp/12.13.1”
root 계정으로 설치 중이어서, 현재 유저 nobody 라는 것이 이해가 되지를 않습니다.

설치 로그.
[root@localhost ~]# npm install -g parse-server mongodb-runner
npm WARN deprecated [email protected]: core-js@<3.0 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.
/usr/bin/mongodb-runner → /usr/lib/node_modules/mongodb-runner/bin/mongodb-runner.js
/usr/bin/parse-server → /usr/lib/node_modules/parse-server/bin/parse-server

[email protected] install /usr/lib/node_modules/parse-server/node_modules/bcrypt
node-pre-gyp install --fallback-to-build

node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected] (node-v72 ABI, glibc) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error EACCES: permission denied, mkdir ‘/usr/lib/node_modules/parse-server/node_modules/bcrypt/lib’
gyp WARN EACCES current user (“nobody”) does not have permission to access the dev dir “/root/.cache/node-gyp/12.13.1”
gyp WARN EACCES attempting to reinstall using temporary dev dir “/usr/lib/node_modules/parse-server/node_modules/bcrypt/.node-gyp”
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir ‘/usr/lib/node_modules/parse-server/node_modules/bcrypt/.node-gyp’
gyp ERR! System Linux 3.10.0-1062.4.3.el7.x86_64
gyp ERR! command “/usr/bin/node” “/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “configure” “–fallback-to-build” “–module=/usr/lib/node_modules/parse-server/node_modules/bcrypt/lib/binding/bcrypt_lib.node” “–module_name=bcrypt_lib” “–module_path=/usr/lib/node_modules/parse-server/node_modules/bcrypt/lib/binding” “–napi_version=5” “–node_abi_napi=napi” “–napi_build_version=0” “–node_napi_label=node-v72”
gyp ERR! cwd /usr/lib/node_modules/parse-server/node_modules/bcrypt
gyp ERR! node -v v12.13.1
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute ‘/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/lib/node_modules/parse-server/node_modules/bcrypt/lib/binding/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/usr/lib/node_modules/parse-server/node_modules/bcrypt/lib/binding --napi_version=5 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72’ (1)
node-pre-gyp ERR! stack at ChildProcess. (/usr/lib/node_modules/parse-server/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:210:5)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1021:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
node-pre-gyp ERR! System Linux 3.10.0-1062.4.3.el7.x86_64
node-pre-gyp ERR! command “/usr/bin/node” “/usr/lib/node_modules/parse-server/node_modules/.bin/node-pre-gyp” “install” “–fallback-to-build”
node-pre-gyp ERR! cwd /usr/lib/node_modules/parse-server/node_modules/bcrypt
node-pre-gyp ERR! node -v v12.13.1
node-pre-gyp ERR! node-pre-gyp -v v0.12.0
node-pre-gyp ERR! not ok
Failed to execute ‘/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/lib/node_modules/parse-server/node_modules/bcrypt/lib/binding/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/usr/lib/node_modules/parse-server/node_modules/bcrypt/lib/binding --napi_version=5 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72’ (1)

[email protected] postinstall /usr/lib/node_modules/parse-server
node -p ‘require(“./postinstall.js”)()’

              1111111111
           1111111111111111
        1111111111111111111111
      11111111111111111111111111
    111111111111111       11111111
   1111111111111             111111
  1111111111111   111111111   111111
  111111111111   11111111111   111111
 1111111111111   11111111111   111111
 1111111111111   1111111111    111111
 1111111111111111111111111    1111111
 11111111                    11111111
  111111         1111111111111111111
  11111   11111  111111111111111111
   11111         11111111111111111
    111111     111111111111111111
      11111111111111111111111111
        1111111111111111111111
          111111111111111111
              11111111111


    Thanks for installing parse 🙏

Please consider donating to our open collective
to help us maintain this package.

:point_right: https://opencollective.com/parse-server

[ …] / postinstall: sill lifecycle [email protected]~pnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/parse-server/node_modules/bcrypt):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: node-pre-gyp install --fallback-to-build
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

npm -g config set user $USER

하시면 됩니다.

core-js warning은 무시하시면 됩니다.

3개의 좋아요

고맙습니다. 시도해 보겠습니다. :+1:

알려주신 대로 시도해 보니, 무시히 parse-server 가 에러 없이 설치되었습니다.
고맙습니다. :+1:

1개의 좋아요