help 安装失败
-
[root@localhost 111]# cd NodeBB/
[root@localhost NodeBB]# ./nodebb setup
package.json not found.
Populating package.json...
OK
Dependencies outdated or not yet installed.
Installing them now...npm notice
npm notice New patch version of npm available! 7.6.0 -> 7.6.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v7.6.1
npm notice Run npm install -g [email protected] to update!
npm notice
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/textcomplete
npm ERR! textcomplete@"^0.17.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer textcomplete@"^0.14.2" from [email protected]
npm ERR! node_modules/textcomplete.contenteditable
npm ERR! textcomplete.contenteditable@"^0.1.1" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /root/.npm/eresolve-report.txt for a full report.npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-03-06T19_02_48_301Z-debug.log
Error installing dependencies!
message: Command failed: npm install --production
stdout: null
stderr: null
/root/111/NodeBB/src/cli/package-install.js:81
throw e;
^Error: Command failed: npm install --production
at checkExecSyncError (node:child_process:690:11)
at Object.execSync (node:child_process:727:15)
at Object.installAll (/root/111/NodeBB/src/cli/package-install.js:72:9)
at Object.<anonymous> (/root/111/NodeBB/src/cli/index.js:62:18)
at Module._compile (node:internal/modules/cjs/loader:1092:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1121:10)
at Module.load (node:internal/modules/cjs/loader:972:32)
at Function.Module._load (node:internal/modules/cjs/loader:813:14)
at Module.require (node:internal/modules/cjs/loader:996:19)
at require (node:internal/modules/cjs/helpers:92:18) {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 36915,
stdout: null,
stderr: null
}
[root@localhost NodeBB]# Error: Command failed: npm install --production
-bash: Error:: command not found
[root@localhost NodeBB]# at checkExecSyncError (node:child_process:690:11)
-bash: syntax error near unexpected token(' [root@localhost NodeBB]# at Object.execSync (node:child_process:727:15) -bash: syntax error near unexpected token
('
[root@localhost NodeBB]# at Object.installAll (/root/111/NodeBB/src/cli/package-install.js:72:9)
-bash: syntax error near unexpected token(' [root@localhost NodeBB]# at Object.<anonymous> (/root/111/NodeBB/src/cli/index.js:62:18) -bash: syntax error near unexpected token
('
[root@localhost NodeBB]# at Module._compile (node:internal/modules/cjs/loader:1092:14)
-bash: syntax error near unexpected token(' [root@localhost NodeBB]# at Object.Module._extensions..js (node:internal/modules/cjs/loader:1121:10) -bash: syntax error near unexpected token
('
[root@localhost NodeBB]# at Module.load (node:internal/modules/cjs/loader:972:32)
-bash: syntax error near unexpected token(' [root@localhost NodeBB]# at Function.Module._load (node:internal/modules/cjs/loader:813:14) -bash: syntax error near unexpected token
('
[root@localhost NodeBB]# at Module.require (node:internal/modules/cjs/loader:996:19)
-bash: syntax error near unexpected token(' [root@localhost NodeBB]# at require (node:internal/modules/cjs/helpers:92:18){ -bash: syntax error near unexpected token
('
[root@localhost NodeBB]# Error: Command failed: npm install --production
-bash: Error:: command not found
[root@localhost NodeBB]# at checkExecSyncError (node:child_process:690:11)
-bash: syntax error near unexpected token(' [root@localhost NodeBB]# at Object.execSync (node:child_process:727:15) -bash: syntax error near unexpected token
('
[root@localhost NodeBB]# at Object.installAll (/root/111/NodeBB/src/cli/package-install.js:72:9)
-bash: syntax error near unexpected token(' [root@localhost NodeBB]# at Object.<anonymous> (/root/111/NodeBB/src/cli/index.js:62:18) -bash: syntax error near unexpected token
('
[root@localhost NodeBB]# at Module._compile (node:internal/modules/cjs/loader:1092:14)
-bash: syntax error near unexpected token(' [root@localhost NodeBB]# at Object.Module._extensions..js (node:internal/modules/cjs/loader:1121:10) -bash: syntax error near unexpected token
('
[root@localhost NodeBB]# at Module.load (node:internal/modules/cjs/loader:972:32)
-bash: syntax error near unexpected token(' [root@localhost NodeBB]# at Function.Module._load (node:internal/modules/cjs/loader:813:14) -bash: syntax error near unexpected token
('
[root@localhost NodeBB]# at Module.require (node:internal/modules/cjs/loader:996:19)
-bash: syntax error near unexpected token(' [root@localhost NodeBB]# at require (node:internal/modules/cjs/helpers:92:18){ -bash: syntax error near unexpected token
('
[root@localhost NodeBB]# -
@qiancsf Node 15 is not supported yet, please downgrade to Node 14
-
[root@localhost NodeBB]# npm install npm WARN deprecated [email protected]: request-promise-native has beendeprecated 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 by `uglify-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 havea 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! enoent npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2021-03-06T20_51_19_788Z-debug.log [root@localhost NodeBB]#
-
@qiancsf don't install NodeBB as root. Create an unprivileged user to install and run NodeBB under.
You need to install
git
.