node js additional packages not working

Posted by palereal in general.

I added Bedrock protocol in the addition packages and saved but I still got an error about not having it and the server crashed [23:26:19]Server marked as offline [23:26:24][Wispbyte]: Checking server disk space usage, this could take a few seconds... [23:26:24][Wispbyte]: Updating process configuration files... [23:26:24][Wispbyte]: Ensuring file permissions are set correctly, this could take a few seconds... [23:26:24]Server marked as starting \ \ / ( ) \ \ /\ / / / ' \ ' \ / \ \ V V / \ \ ) ) / \ /\ / / . / . / \ , \ \ / Your server is currently starting! Enjoy using Wispbyte [23:26:27]Server marked as running [23:26:27]v20.20.2 [23:26:27]:/home/container$ node src/index.js [23:26:27]node:internal/modules/cjs/loader:1210 [23:26:27]throw err; [23:26:27]^ [23:26:27]Error: Cannot find module 'bedrock protocol' [23:26:27]Require stack: [23:26:27] /home/container/src/index.js [23:26:27] at Module. resolveFilename (node:internal/modules/cjs/loader:1207:15) [23:26:27] at Module. load (node:internal/modules/cjs/loader:1038:27) [23:26:27] at Module.require (node:internal/modules/cjs/loader:1289:19) [23:26:27] at require (node:internal/modules/helpers:182:18) [23:26:27]at Object.<anonymous (/home/container/src/index.js:10:17) [23:26:27] at Module. compile (node:internal/modules/cjs/loader:1521:14) [23:26:27] at Module. extensions..js (node:internal/modules/cjs/loader:1623:10) [23:26:27] at Module.load (node:internal/modules/cjs/loader:1266:32) [23:26:27] at Module. load (node:internal/modules/cjs/loader:1091:12) [23:26:27] at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run main:164:12) { [23:26:27]code: 'MODULE NOT FOUND', [23:26:27]requireStack: [ '/home/container/src/index.js' ] [23:26:27]} [23:26:27]Node.js v20.20.2 [23:26:28]Server marked as offline [23:26:28][Wispbyte]: Detected server process in a crashed state! [23:26:29][Wispbyte]: Exit code: 1 [23:26:29][Wispbyte]: Out of memory: false [23:26:29][Wispbyte]: Checking server disk space usage, this could take a few seconds... [23:26:29][Wispbyte]: Updating process configuration files... [23:26:29][Wispbyte]: Ensuring file permissions are set correctly, this could take a few seconds... [23:26:29]Server marked as starting \ \ / ( ) \ \ /\ / / / ' \ ' \ / \ \ V V / \ \ ) ) / \ /\ / / . / . / \ , \ \ / Your server is currently starting! Enjoy using Wispbyte [23:26:31][Wispbyte] : Docker image pulled successfully [23:26:34]v20.20.2 [23:26:34]Server marked as running [23:26:34]:/home/container$ node src/index.js [23:26:34]node:internal/modules/cjs/loader:1210 [23:26:34]throw err; [23:26:34]^ [23:26:34]Error: Cannot find module 'bedrock protocol' [23:26:34]Require stack: [23:26:34] /home/container/src/index.js [23:26:34] at Module. resolveFilename (node:internal/modules/cjs/loader:1207:15) [23:26:34] at Module. load (node:internal/modules/cjs/loader:1038:27) [23:26:34] at Module.require (node:internal/modules/cjs/loader:1289:19) [23:26:34] at require (node:internal/modules/helpers:182:18) [23:26:34]at Object.<anonymous (/home/container/src/index.js:10:17) [23:26:34] at Module. compile (node:internal/modules/cjs/loader:1521:14) [23:26:34] at Module. extensions..js (node:internal/modules/cjs/loader:1623:10) [23:26:34] at Module.load (node:internal/modules/cjs/loader:1266:32) [23:26:34] at Module. load (node:internal/modules/cjs/loader:1091:12) [23:26:34] at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run main:164:12) { [23:26:34]code: 'MODULE NOT FOUND', [23:26:34]requireStack: [ '/home/container/src/index.js' ] [23:26:34]} [23:26:34]Node.js v20.20.2 [23:26:34]Server marked as offline [23:26:35][Wispbyte]: Detected server process in a crashed state!

Replies

reallytyler

Hm.. Have you clicked the 'Save Packages' it should be button after you added the node.js additional packages? If yes, then go back to console and return to the additional packages page and there see if the 'bedrock protocol' shows up.

Wispbyte Community Forum