help 安装出错,帮我看看
-
[123123@localhost NodeBB]$ npm install
npm WARN deprecated [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: support for ECMAScript is superseded byuglify-js
as of v3.13.0
npm WARN deprecated [email protected]: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm ERR! path /usr/bin/git
npm ERR! code ENOENT
npm ERR! errno ENOENT
npm ERR! syscall spawn /usr/bin/git
npm ERR! enoent spawn /usr/bin/git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoentnpm ERR! A complete log of this run can be found in:
npm ERR! /home/123123/.npm/_logs/2021-03-06T22_23_56_894Z-debug.log
[123123@localhost NodeBB]$[123123@localhost NodeBB]$ cat /home/123123/.npm/_logs/2021-03-06T22_23_56_894Z-debug.log
3421 silly saveTree ├── [email protected]
3421 silly saveTree ├── [email protected]
3421 silly saveTree └── [email protected]
3422 verbose stack Error: spawn /usr/bin/git ENOENT
3422 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19)
3422 verbose stack at onErrorNT (internal/child_process.js:407:16)
3422 verbose stack at process._tickCallback (internal/process/next_tick.js:63:19)
3423 verbose cwd /home/123123/NodeBB
3424 verbose Linux 3.10.0-1127.el7.x86_64
3425 verbose argv "/usr/local/node/bin/node" "/usr/local/node/bin/npm" "install"
3426 verbose node v10.14.1
3427 verbose npm v6.4.1
3428 error path /usr/bin/git
3429 error code ENOENT
3430 error errno ENOENT
3431 error syscall spawn /usr/bin/git
3432 error enoent spawn /usr/bin/git ENOENT
3433 error enoent This is related to npm not being able to find a file.
3434 verbose exit [ 1, true ] -
[root@localhost ~]# git --version
git version 1.8.3.1
[root@localhost ~]# -
@qiancsf it's because you're running as root that npm can't kind find the git executable. As I said before, create a new unprivileged user and install and run nodebb under it.
-
-
@qiancsf I deleted your new topic. Please don't make new ones
-
@pitaj try
npm install --production