Jump to content

Node.js error that i can't fix

Hello everybody, i am trying to use this guide to install a web interface for a banning plugin for an mc server. I keep having the same error (see bellow) and  i have no clue on how to fix it.

? Email address for push notification registration (Coming Soon) -----------------------------
? Database Host --------
? Database Port 3306
? Database User -------
? Database Password [hidden]
? Database Name bans_local
Attempting to connect to database
Connected to Server@192.168.1.3:3306/bans_local successfully
    TypeError: changes[varname].replace is not a function
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! bm-ui@1.0.0 setup: `node bin/run setup`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bm-ui@1.0.0 setup script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\George\AppData\Roaming\npm-cache\_logs\2020-08-23T22_21_27_631Z-debug.log

 

Link to comment
Share on other sites

Link to post
Share on other sites

Well it tells you to check the logs for more details. What does the logs says?

After you clones the project, did you do: 

npm ci --production

in the root directory of the git project?

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

15 hours ago, GoodBytes said:

Well it tells you to check the logs for more details. What does the logs says?

After you clones the project, did you do: 


npm ci --production

in the root directory of the git project?

 

 

Yes i did cd into the root dir of the git clone, here is the log that cmd pointed me to:

0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli   'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'run',
1 verbose cli   'setup'
1 verbose cli ]
2 info using npm@6.14.6
3 info using node@v12.18.3
4 verbose run-script [ 'presetup', 'setup', 'postsetup' ]
5 info lifecycle bm-ui@1.0.0~presetup: bm-ui@1.0.0
6 info lifecycle bm-ui@1.0.0~setup: bm-ui@1.0.0
7 verbose lifecycle bm-ui@1.0.0~setup: unsafe-perm in lifecycle true
8 verbose lifecycle bm-ui@1.0.0~setup: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\George\Desktop\Ban manager\BanManager-WebUI\node_modules\.bin;C:\Python38\Scripts\;C:\Python38\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Git\cmd;C:\ProgramData\chocolatey\bin;C:\Program Files\nodejs\;C:\Users\George\AppData\Local\Microsoft\WindowsApps;C:\Users\George\AppData\Roaming\npm
9 verbose lifecycle bm-ui@1.0.0~setup: CWD: C:\Users\George\Desktop\Ban manager\BanManager-WebUI
10 silly lifecycle bm-ui@1.0.0~setup: Args: [ '/d /s /c', 'node bin/run setup' ]
11 silly lifecycle bm-ui@1.0.0~setup: Returned: code: 1  signal: null
12 info lifecycle bm-ui@1.0.0~setup: Failed to exec setup script
13 verbose stack Error: bm-ui@1.0.0 setup: `node bin/run setup`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack     at EventEmitter.emit (events.js:315:20)
13 verbose stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:315:20)
13 verbose stack     at maybeClose (internal/child_process.js:1021:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
14 verbose pkgid bm-ui@1.0.0
15 verbose cwd C:\Users\George\Desktop\Ban manager\BanManager-WebUI
16 verbose Windows_NT 10.0.18363
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "setup"
18 verbose node v12.18.3
19 verbose npm  v6.14.6
20 error code ELIFECYCLE
21 error errno 1
22 error bm-ui@1.0.0 setup: `node bin/run setup`
22 error Exit status 1
23 error Failed at the bm-ui@1.0.0 setup script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
Link to comment
Share on other sites

Link to post
Share on other sites

Ok well the error is with the script. It returned to you: 

ELIFECYCLE

in the logs.

The person responsible for the project merged his code without testing it.

You can post it as a bug report in his open source project, and hopefully he still cares about it to fix it. Don't have your hopes up, his last build was 2 years and half ago. Try an older build?

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×