me and a friend wanted to make a private server for a game we love. So we got code for it but we are stuck on starting project any clues why? Here is the error and project
/opt/watcher/app-types/node/start.sh: line 51: gulp: command not found
So it looks like npm i fails because fsevents only supports MacOS (darwin)
I found a workaround which is to add this in your package.json:
"devDependencies" : {
"fsevents": "^2.3.2"
},
Then open the Glitch terminal and run npm i -f (npm install --force) to force reinstallation. fsevents is an optional dependency of chokidar for MacOS, and doing this will help npm realise that it doesn’t need to install it on Linux.
After that, gulp should be installed correctly.
If you go back to your Glitch editor and open the logs, you’ll get a new error:
AssertionError [ERR_ASSERTION]: Task function must be specified
at Gulp.set [as _setTask] (/rbd/pnpm-volume/f10daa94-a023-42de-928a-5475fb47550f/node_modules/gulp/node_modules/undertaker/lib/set-task.js:10:3)
at Gulp.task (/rbd/pnpm-volume/f10daa94-a023-42de-928a-5475fb47550f/node_modules/gulp/node_modules/undertaker/lib/task.js:13:8)
at Object.<anonymous> (/app/gulpfile.js:18:6)
This is something to do with how tasks are specified in different versions of gulp. You can fix it yourself using the advice in this SO answer:
Quick follow up: In the original repo, gulp is 3.9.1, I think you should revert to using the package versions from that file, as gulp 4 works differently.
so i forgot to mention something before i added the packages the project loads and started but when I tried to start the game with play button it returned a blank screen then I added the packages and this happend.