Constant Reapting Errors
Error 1:
Fix 1: (What I was told would fix it)
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.
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
Error 2:
Fix 2: (What I was told would fix it)
Then it just loops back to error 1
(Ping me when replying please)
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.
blueprint -upgrade && blueprint -i *.blueprint
blueprint -upgrade && blueprint -i *.blueprint
Do you by chance have any modifications to your panel?
@Dragon Sam - Taking Break
Not that I know of
Only blueprint
did you run these?
yarn
yarn add cross-env
yarn
yarn add cross-env
Now I have
IDK if I have before
is this fist install or updating blueprint?
YES
Sorry caplock
so fisrt?
sry
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.
Yes
hmm can you try rerunning
@Dragon Sam - Taking Break
chmod +x blueprint.sh
bash blueprint.sh
chmod +x blueprint.sh
bash blueprint.sh
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.
are you in the same directory as pterodactyl?
yes I should be
I wasnt...
I feel dumb
af
its ok we all do it XD
now what do I run?
In the directory?
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
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.
hmm idk this one sry
ok
I will wait for someone else
Thanks for helping me out tho
np π
these errors are occurring due to it not being able to find the extensions in the pterodactyl directory