30 Replies
This error came after i installed cross-env npm i -g cross-env
because before it was throwing that it didint exist
you are on node v18, so maybe try adding the node option that pterodactyl docs has given
Alright will have a look i tried with node v20 also
anything above node 16 needs that option for rebuilding pterodactyl
@Tonis
Linux :
export NODE_OPTIONS=--openssl-legacy-provider
Windows : set NODE_OPTIONS=--openssl-legacy-provider
DIdin't resolve it
Can you send the log wrapped in β
So it doesnβt ruin formatting and make it ass to read
try
yarn i
Its looking for webpack and cannot find it
This is what ChatGPT is sayingYeah Already checked chatgpt π
root@eugamehost:/var/www/pterodactyl# yarn build:production
yarn run v1.22.19
$ yarn run clean && cross-env NODE_ENV=production ./node_modules/.bin/webpack --mode production
$ cd public/assets && find . \( -name "*.js" -o -name "*.map" \) -type f -delete
node:events:492
throw er; // Unhandled 'error' event
^
Error: spawn ./node_modules/.bin/webpack ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:286:19)
at onErrorNT (node:internal/child_process:484:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Emitted 'error' event on ChildProcess instance at:
at ChildProcess._handle.onexit (node:internal/child_process:292:12)
at onErrorNT (node:internal/child_process:484:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
errno: -2,
code: 'ENOENT',
syscall: 'spawn ./node_modules/.bin/webpack',
path: './node_modules/.bin/webpack',
spawnargs: [ '--mode', 'production' ]
}
Node.js v20.7.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Have you check if webpack is within your node_modules folder?
Its not i tried running yarn add webpack it works but then it starts saying new errors like webpack.config.js not found etc
Might have to try a fresh install
yeah thats with a fresh install
no blueprint installed
in a sense of
rm -r /var/www/pterodactyl
then remaking the dir
and extracting the panel folders?yeah
fresh installs just same .env
tried changing node versions also
going to try node v16 at this point i guess
but doubt will fix anything
have no idea what it could be at this point
anymore
I got the same exact error in the post, my node version is v19.9.0 and my yarn version is 1.22.19
Tried with a fresh install of the panel, but no luck
@Emma Seems like blueprint has become suicidal
I wish I could build pterodactyl files :X
Try manual installing a plugin
its even worse
Well that was my plan xd
uhh
@Tonis Do you perhaps have another modification installed (other than Blueprint)?
No its happening even without any modifications just default pterodactyl installation it doesn't let me build or anything
it does create a node_modules but there is no webpack in it
strange
have you ran
yarn
without any arguments yet?yeah
Followed everything that it was in readme.md and even on ptero docs
yarn runs with no errors
Now am getting a new error at this point ill just install it on a vps π
just for some additional information:
- i've experienced this error once as well, don't know how i fixed it
- it would be really strange if blueprint caused this error, as it only overwrites one react file, where it adds only one line of code
yeah i dont think blueprint does
since it happens on a fresh install of pterodactyl
yeah
i'm confused lmao
what os are you running on your server?
debian 12
should be good
blueprint is tested on debian so yeah
very good os π
Guess can close this ill just install the panel on a vps
hope don't encounter this π
aight
my recommendation is to avoid the latest nodejs versions on your next install, as older ones are more documented if you experience version-specific errors
if you have any more questions, feel free to mention me