B
Blueprint•11mo ago
Dragon Sam

Constant Reapting Errors

Error 1:
node:internal/modules/cjs/loader:1228
throw err;
^

Error: Cannot find module '..'
Require stack:
- /var/www/pterodactyl/node_modules/.bin/cross-env
at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
at Module._load (node:internal/modules/cjs/loader:1051:27)
at Module.require (node:internal/modules/cjs/loader:1311:19)
at require (node:internal/modules/helpers:179:18)
at Object.<anonymous> (/var/www/pterodactyl/node_modules/.bin/cross-env:3:18)
at Module._compile (node:internal/modules/cjs/loader:1469:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
at Module.load (node:internal/modules/cjs/loader:1288:32)
at Module._load (node:internal/modules/cjs/loader:1104:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/var/www/pterodactyl/node_modules/.bin/cross-env' ]
}

Node.js v20.18.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
node:internal/modules/cjs/loader:1228
throw err;
^

Error: Cannot find module '..'
Require stack:
- /var/www/pterodactyl/node_modules/.bin/cross-env
at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
at Module._load (node:internal/modules/cjs/loader:1051:27)
at Module.require (node:internal/modules/cjs/loader:1311:19)
at require (node:internal/modules/helpers:179:18)
at Object.<anonymous> (/var/www/pterodactyl/node_modules/.bin/cross-env:3:18)
at Module._compile (node:internal/modules/cjs/loader:1469:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
at Module.load (node:internal/modules/cjs/loader:1288:32)
at Module._load (node:internal/modules/cjs/loader:1104:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/var/www/pterodactyl/node_modules/.bin/cross-env' ]
}

Node.js v20.18.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Fix 1: (What I was told would fix it)
rm -rf node_modules && yarn install && export NODE_OPTIONS=--openssl-legacy-provider && yarn build:production
rm -rf node_modules && yarn install && export NODE_OPTIONS=--openssl-legacy-provider && yarn build:production
22 Replies
Dragon Sam
Dragon SamOP•11mo ago
Error 2:
ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:41:79
TS2339: Property 'BlueprintFramework' does not exist on type 'Server'.
39 | export const NavigationLinks = () => {
40 | const rootAdmin = useStoreState((state) => state.user.data!.rootAdmin);
> 41 | const serverEgg = ServerContext.useStoreState((state) => state.server.data?.BlueprintFramework.eggId);
| ^^^^^^^^^^^^^^^^^^
42 | const match = useRouteMatch<{ id: string }>();
43 | const to = (value: string, url = false) => {
44 | if (value === '/') {

ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:99:79
TS2339: Property 'BlueprintFramework' does not exist on type 'Server'.
97 | export const NavigationRouter = () => {
98 | const rootAdmin = useStoreState((state) => state.user.data!.rootAdmin);
> 99 | const serverEgg = ServerContext.useStoreState((state) => state.server.data?.BlueprintFramework.eggId);
| ^^^^^^^^^^^^^^^^^^
100 | const match = useRouteMatch<{ id: string }>();
101 | const to = (value: string, url = false) => {
102 | if (value === '/') {
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:41:79
TS2339: Property 'BlueprintFramework' does not exist on type 'Server'.
39 | export const NavigationLinks = () => {
40 | const rootAdmin = useStoreState((state) => state.user.data!.rootAdmin);
> 41 | const serverEgg = ServerContext.useStoreState((state) => state.server.data?.BlueprintFramework.eggId);
| ^^^^^^^^^^^^^^^^^^
42 | const match = useRouteMatch<{ id: string }>();
43 | const to = (value: string, url = false) => {
44 | if (value === '/') {

ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:99:79
TS2339: Property 'BlueprintFramework' does not exist on type 'Server'.
97 | export const NavigationRouter = () => {
98 | const rootAdmin = useStoreState((state) => state.user.data!.rootAdmin);
> 99 | const serverEgg = ServerContext.useStoreState((state) => state.server.data?.BlueprintFramework.eggId);
| ^^^^^^^^^^^^^^^^^^
100 | const match = useRouteMatch<{ id: string }>();
101 | const to = (value: string, url = false) => {
102 | if (value === '/') {
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Fix 2: (What I was told would fix it)
blueprint -upgrade && blueprint -i *.blueprint
blueprint -upgrade && blueprint -i *.blueprint
Then it just loops back to error 1 (Ping me when replying please)
virusgaming
virusgaming•11mo ago
Do you by chance have any modifications to your panel? @Dragon Sam - Taking Break
Dragon Sam
Dragon SamOP•11mo ago
Not that I know of Only blueprint
virusgaming
virusgaming•11mo ago
did you run these?
yarn
yarn add cross-env
yarn
yarn add cross-env
Dragon Sam
Dragon SamOP•11mo ago
Now I have IDK if I have before
virusgaming
virusgaming•11mo ago
is this fist install or updating blueprint?
Dragon Sam
Dragon SamOP•11mo ago
YES Sorry caplock
virusgaming
virusgaming•11mo ago
so fisrt? sry
virusgaming
virusgaming•11mo ago
do you by chance follow this
blueprint.zip
Powerful, fast and developer-friendly extension framework for Pterodactyl. Utilize extension APIs, inject HTML, modify stylesheets, package extensions and so much more.
Dragon Sam
Dragon SamOP•11mo ago
Yes
virusgaming
virusgaming•11mo ago
hmm can you try rerunning
chmod +x blueprint.sh
bash blueprint.sh
chmod +x blueprint.sh
bash blueprint.sh
@Dragon Sam - Taking Break
Dragon Sam
Dragon SamOP•11mo ago
11:55:31 INFO: Running database migrations.. PHP Warning: require(/root/vendor/autoload.php): Failed to open stream: No such file or directory in /root/artisan on line 18 PHP Fatal error: Uncaught Error: Failed opening required '/root/vendor/autoload.php' (include_path='.:/usr/share/php') in /root/artisan:18 Still running but I got this
ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:41:79
TS2339: Property 'BlueprintFramework' does not exist on type 'Server'.
39 | export const NavigationLinks = () => {
40 | const rootAdmin = useStoreState((state) => state.user.data!.rootAdmin);
> 41 | const serverEgg = ServerContext.useStoreState((state) => state.server.data?.BlueprintFramework.eggId);
| ^^^^^^^^^^^^^^^^^^
42 | const match = useRouteMatch<{ id: string }>();
43 | const to = (value: string, url = false) => {
44 | if (value === '/') {

ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:99:79
TS2339: Property 'BlueprintFramework' does not exist on type 'Server'.
97 | export const NavigationRouter = () => {
98 | const rootAdmin = useStoreState((state) => state.user.data!.rootAdmin);
> 99 | const serverEgg = ServerContext.useStoreState((state) => state.server.data?.BlueprintFramework.eggId);
| ^^^^^^^^^^^^^^^^^^
100 | const match = useRouteMatch<{ id: string }>();
101 | const to = (value: string, url = false) => {
102 | if (value === '/') {
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
11:56:35 INFO: Syncing Blueprint-related database values..
PHP Warning: require(/root/vendor/autoload.php): Failed to open stream: No such file or directory in /root/artisan on line 18
PHP Fatal error: Uncaught Error: Failed opening required '/root/vendor/autoload.php' (include_path='.:/usr/share/php') in /root/artisan:18
Stack trace:
#0 {main}
thrown in /root/artisan on line 18
11:56:35 INFO: Put application into production.
11:56:35 SUCCESS: Blueprint has completed its installation process.
ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:41:79
TS2339: Property 'BlueprintFramework' does not exist on type 'Server'.
39 | export const NavigationLinks = () => {
40 | const rootAdmin = useStoreState((state) => state.user.data!.rootAdmin);
> 41 | const serverEgg = ServerContext.useStoreState((state) => state.server.data?.BlueprintFramework.eggId);
| ^^^^^^^^^^^^^^^^^^
42 | const match = useRouteMatch<{ id: string }>();
43 | const to = (value: string, url = false) => {
44 | if (value === '/') {

ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:99:79
TS2339: Property 'BlueprintFramework' does not exist on type 'Server'.
97 | export const NavigationRouter = () => {
98 | const rootAdmin = useStoreState((state) => state.user.data!.rootAdmin);
> 99 | const serverEgg = ServerContext.useStoreState((state) => state.server.data?.BlueprintFramework.eggId);
| ^^^^^^^^^^^^^^^^^^
100 | const match = useRouteMatch<{ id: string }>();
101 | const to = (value: string, url = false) => {
102 | if (value === '/') {
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
11:56:35 INFO: Syncing Blueprint-related database values..
PHP Warning: require(/root/vendor/autoload.php): Failed to open stream: No such file or directory in /root/artisan on line 18
PHP Fatal error: Uncaught Error: Failed opening required '/root/vendor/autoload.php' (include_path='.:/usr/share/php') in /root/artisan:18
Stack trace:
#0 {main}
thrown in /root/artisan on line 18
11:56:35 INFO: Put application into production.
11:56:35 SUCCESS: Blueprint has completed its installation process.
virusgaming
virusgaming•11mo ago
are you in the same directory as pterodactyl?
Dragon Sam
Dragon SamOP•11mo ago
yes I should be I wasnt... I feel dumb af
virusgaming
virusgaming•11mo ago
its ok we all do it XD
Dragon Sam
Dragon SamOP•11mo ago
now what do I run? In the directory?
virusgaming
virusgaming•11mo ago
npm i -g yarn
npm i -g yarn
yarn
yarn add cross-env
yarn
yarn add cross-env
apt install -y zip unzip git curl wget
apt install -y zip unzip git curl wget
wget "$(curl -s https://api.github.com/repos/BlueprintFramework/framework/releases/latest | grep 'browser_download_url' | cut -d '"' -f 4)" -O release.zip
wget "$(curl -s https://api.github.com/repos/BlueprintFramework/framework/releases/latest | grep 'browser_download_url' | cut -d '"' -f 4)" -O release.zip
unzip release.zip
unzip release.zip
chmod +x blueprint.sh
bash blueprint.sh
chmod +x blueprint.sh
bash blueprint.sh
@Dragon Sam - Taking Break did that work?
Dragon Sam
Dragon SamOP•11mo ago
Kinda No errors with installing or anything but...
root@vmi2221039:/var/www/pterodactyl# blueprint -i *.blueprint
scripts/libraries/grabenv.sh: line 27: .env: No such file or directory
12:16:12 INFO: Searching and validating framework dependencies..
12:16:13 INFO: Installing loader.blueprint... (1/5)
12:16:13 FATAL: loader.blueprint could not be found or detected.
12:16:13 INFO: Installing nebula.blueprint... (2/5)
12:16:13 FATAL: nebula.blueprint could not be found or detected.
12:16:13 INFO: Installing shownodeids.blueprint... (3/5)
12:16:13 FATAL: shownodeids.blueprint could not be found or detected.
12:16:13 INFO: Installing simplefavicons.blueprint... (4/5)
12:16:13 FATAL: simplefavicons.blueprint could not be found or detected.
12:16:13 INFO: Installing versionchanger.blueprint... (5/5)
12:16:13 FATAL: versionchanger.blueprint could not be found or detected.
root@vmi2221039:/var/www/pterodactyl# blueprint -r *.blueprint
scripts/libraries/grabenv.sh: line 27: .env: No such file or directory
12:16:35 INPUT: Do you want to proceed with this transaction? Some files might not be removed properly. (y/N)
Y
12:16:39 INFO: Removing loader.blueprint... (1/5)
12:16:39 FATAL: 'loader.blueprint' is not installed or detected.
12:16:39 INFO: Removing nebula.blueprint... (2/5)
12:16:39 FATAL: 'nebula.blueprint' is not installed or detected.
12:16:39 INFO: Removing shownodeids.blueprint... (3/5)
12:16:39 FATAL: 'shownodeids.blueprint' is not installed or detected.
12:16:39 INFO: Removing simplefavicons.blueprint... (4/5)
12:16:39 FATAL: 'simplefavicons.blueprint' is not installed or detected.
12:16:39 INFO: Removing versionchanger.blueprint... (5/5)
12:16:39 FATAL: 'versionchanger.blueprint' is not installed or detected.
root@vmi2221039:/var/www/pterodactyl# blueprint -i *.blueprint
scripts/libraries/grabenv.sh: line 27: .env: No such file or directory
12:16:12 INFO: Searching and validating framework dependencies..
12:16:13 INFO: Installing loader.blueprint... (1/5)
12:16:13 FATAL: loader.blueprint could not be found or detected.
12:16:13 INFO: Installing nebula.blueprint... (2/5)
12:16:13 FATAL: nebula.blueprint could not be found or detected.
12:16:13 INFO: Installing shownodeids.blueprint... (3/5)
12:16:13 FATAL: shownodeids.blueprint could not be found or detected.
12:16:13 INFO: Installing simplefavicons.blueprint... (4/5)
12:16:13 FATAL: simplefavicons.blueprint could not be found or detected.
12:16:13 INFO: Installing versionchanger.blueprint... (5/5)
12:16:13 FATAL: versionchanger.blueprint could not be found or detected.
root@vmi2221039:/var/www/pterodactyl# blueprint -r *.blueprint
scripts/libraries/grabenv.sh: line 27: .env: No such file or directory
12:16:35 INPUT: Do you want to proceed with this transaction? Some files might not be removed properly. (y/N)
Y
12:16:39 INFO: Removing loader.blueprint... (1/5)
12:16:39 FATAL: 'loader.blueprint' is not installed or detected.
12:16:39 INFO: Removing nebula.blueprint... (2/5)
12:16:39 FATAL: 'nebula.blueprint' is not installed or detected.
12:16:39 INFO: Removing shownodeids.blueprint... (3/5)
12:16:39 FATAL: 'shownodeids.blueprint' is not installed or detected.
12:16:39 INFO: Removing simplefavicons.blueprint... (4/5)
12:16:39 FATAL: 'simplefavicons.blueprint' is not installed or detected.
12:16:39 INFO: Removing versionchanger.blueprint... (5/5)
12:16:39 FATAL: 'versionchanger.blueprint' is not installed or detected.
root@vmi2221039:/var/www/pterodactyl# blueprint -i *.blueprint
scripts/libraries/grabenv.sh: line 27: .env: No such file or directory
12:16:43 INFO: Searching and validating framework dependencies..
12:16:43 INFO: Installing loader.blueprint... (1/5)
12:16:43 FATAL: loader.blueprint could not be found or detected.
12:16:43 INFO: Installing nebula.blueprint... (2/5)
12:16:43 FATAL: nebula.blueprint could not be found or detected.
12:16:43 INFO: Installing shownodeids.blueprint... (3/5)
12:16:43 FATAL: shownodeids.blueprint could not be found or detected.
12:16:43 INFO: Installing simplefavicons.blueprint... (4/5)
12:16:43 FATAL: simplefavicons.blueprint could not be found or detected.
12:16:43 INFO: Installing versionchanger.blueprint... (5/5)
12:16:43 FATAL: versionchanger.blueprint could not be found or detected.
root@vmi2221039:/var/www/pterodactyl# blueprint -i *.blueprint
scripts/libraries/grabenv.sh: line 27: .env: No such file or directory
12:16:43 INFO: Searching and validating framework dependencies..
12:16:43 INFO: Installing loader.blueprint... (1/5)
12:16:43 FATAL: loader.blueprint could not be found or detected.
12:16:43 INFO: Installing nebula.blueprint... (2/5)
12:16:43 FATAL: nebula.blueprint could not be found or detected.
12:16:43 INFO: Installing shownodeids.blueprint... (3/5)
12:16:43 FATAL: shownodeids.blueprint could not be found or detected.
12:16:43 INFO: Installing simplefavicons.blueprint... (4/5)
12:16:43 FATAL: simplefavicons.blueprint could not be found or detected.
12:16:43 INFO: Installing versionchanger.blueprint... (5/5)
12:16:43 FATAL: versionchanger.blueprint could not be found or detected.
virusgaming
virusgaming•11mo ago
hmm idk this one sry
Dragon Sam
Dragon SamOP•11mo ago
ok I will wait for someone else Thanks for helping me out tho
virusgaming
virusgaming•11mo ago
np 🙂
Luke
Luke•11mo ago
these errors are occurring due to it not being able to find the extensions in the pterodactyl directory

Did you find this page helpful?