Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yarn error on resource start (ZAP-Hosting) #1

Closed
Nightwalkersfear opened this issue Oct 15, 2020 · 6 comments
Closed

Yarn error on resource start (ZAP-Hosting) #1

Nightwalkersfear opened this issue Oct 15, 2020 · 6 comments

Comments

@Nightwalkersfear
Copy link

Error on startup. Gameserver version 29.6.7.

I am not familiair with node.js so this seems out of my league. I've been browsing around and I've figured this same issue appears for resources like: live_map and TokoVOIP.

Is this issue related to this resource, or is it something else?

Running build tasks on resource discordroles - it'll restart once completed.
Couldn't start resource discordroles.
yarn install v1.22.5
warning package.json: No license field
info No lockfile found.
warning No license field
[2/4] Fetching packages...
[3/4] Linking dependencies...
error Could not write file "C:\\cygwin\\home\\zapXXXXX\\gXXXXX\\gta5-fivem\\server-data\\resources\\[Discord Synchronizations]\\discordroles\\yarn-error.log": "EPERM: operation not permitted, open 'C:\\cygwin\\home\\zapXXXXXX\\gXXXXXX\\gta5-fivem\\server-data\\resources\\[Discord Synchronizations]\\discordroles\\yarn-error.log'"
error An unexpected error occurred: "EPERM: operation not permitted, mkdir 'C:\\cygwin\\home\\zapXXXXX\\gXXXXXX\\gta5-fivem\\server-data\\resources\\[Discord Synchronizations]\\discordroles\\node_modules'".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Running build tasks on resource discordroles - it'll restart once completed.
Couldn't start resource discordroles.
@logan-mcgee
Copy link
Owner

i guess zap has wrong permissions. nothing i can fix on my end, youd probably have to contact them about such issues maybe.

@Nightwalkersfear
Copy link
Author

So I have managed to find a workaround which I'd like to share for other zap-users with issues.

Locally download and set up the discordroles file and configs. Then inside your folder run node js to afterwards 'npm install' the package.json. (how to: here). Then after you've done that delete package.json and package-lock file and move the files over to your server resources folder and start/ensure it inside the server.cfg.

That made this work for me.

@logan-mcgee
Copy link
Owner

annoying that such a hack is needed when in reality all zap needs to do is fix permissions with yarn or so. thanks for actually mentioning how you fixed it tho :)

@Nightwalkersfear
Copy link
Author

Yes, I agree. I've been in contact for a few times but no support was given, unfortunatly. I hope they realise this is just some updating and fixing their permissions. On the other hand packages of 10G data would be installable aswell. Maybe it's just some sort of security issue they refuse to mention, I don't know. 👍

@urbighomie
Copy link

So I have managed to find a workaround which I'd like to share for other zap-users with issues.

Locally download and set up the discordroles file and configs. Then inside your folder run node js to afterwards 'npm install' the package.json. (how to: here). Then after you've done that delete package.json and package-lock file and move the files over to your server resources folder and start/ensure it inside the server.cfg.

That made this work for me.

how do you do this exactly

@RyanM2777
Copy link

RyanM2777 commented Jan 10, 2024

How to do this:

Open CMD or Visual Studio Code Terminal - MAKE SURE YOUR IN THE FOLDER
then simply type npm i
then once its done delete package.json and package-lock files
then drag the folder into your FTP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants