I just uploaded my discord bot to Glitch today. I used to work with Atom IDE.
At first, it was giving this error:
/opt/watcher/app-types/node/start.sh: line 51: nodemon: command not found
I fixed it with adding this to package.json
}, "scripts": { "start": "node server.js" }
Now it’s giving this error:
SyntaxError: Invalid regular expression: missing /
9:37 PM
at new Script (vm.js:80:7)
9:37 PM
at createScript (vm.js:274:10)
9:37 PM
at Object.runInThisContext (vm.js:326:10)
9:37 PM
at Module._compile (internal/modules/cjs/loader.js:664:28)
9:37 PM
at Object.Module._extensions…js (internal/modules/cjs/loader.js:712:10)
9:37 PM
at Module.load (internal/modules/cjs/loader.js:600:32)
9:37 PM
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
9:37 PM
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
9:37 PM
at Function.Module.runMain (internal/modules/cjs/loader.js:754:12)
9:37 PM
at startup (internal/bootstrap/node.js:283:19)
Now, every time I’m needing to run node index.js
at the terminal, even if Glitch is on.