Daw588
July 16, 2022, 4:20am
1
I keep getting this error every time my project wakes up from sleep and as of result my site is offline.
/opt/watcher/app-types/node/start.sh: line 51: next: command not found
Also, when I try to install any NPM package, it gives me an error.
And no matter what I do, it gives me this error (though with different path).
This issue started out of no where even though the project was not updated for almost a month.
I found unreliable fix which I have to apply manually every time the project breaks, which is every time the project wakes up. I can’t go on like this.
The error prevents the project from running, as well as it prevents me from installing NPM packages.
Here is the fixes I applied that worked but failed to fix the problem on the long run:
NPM Won't Install Packages - #3 by ihack2712
NPM Package won't install
tiago
July 16, 2022, 8:30am
2
I think it’s because you deleted an important package (not sure)?
Daw588
July 16, 2022, 7:44pm
3
No package was deleted. The error stating that “eslint” doesn’t exist occurs whenever I try to install any kind of package, even the express package.
1 Like
Daw588
July 16, 2022, 7:51pm
5
It is strange indeed.
Running the following commands somehow fixes the problem:
rm -rf node_modules/ package.json
(this deletes node modules and package.json)
npm init -y
Manually installing packages with pnpm install -/save
command instead of npm
.
However, as soon as my project goes to sleep and wakes up, it breaks again and I am forced to do this all over again.
nobody
July 16, 2022, 8:14pm
6
could you send your package.json file? there might be something there interfering with glitch’s system.
Daw588
July 16, 2022, 8:19pm
7
{
"name": "mysite",
"author": "Daw588",
"description": "my site description",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"next": "^12.2.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-syntax-highlighter": "^15.5.0",
"sass": "^1.53.0",
"sharp": "^0.30.7"
},
"devDependencies": {
"@types/react": "^18.0.14",
"eslint": "8.17.0",
"eslint-config-next": "12.1.6"
},
"engines": {
"node": "16.x"
}
}
Daw588
July 16, 2022, 8:22pm
9
I don’t really want to remix the project since it will be public. Is there a command that can reset the project?
nobody
July 16, 2022, 8:42pm
10
Rewind is an option! You can excess it from Tools > Rewind
(I think).
Daw588
July 16, 2022, 9:28pm
11
Rewind doesn’t work, it only lets me rewind to yesterday.
nobody
July 17, 2022, 12:40am
12
you could try emailing support.glitch.com and see if they have any backups saved that can be loaded.
also why won’t you remix it? you could delete/unboost the old one (archive, unless you email glitch asking for it to be deleted) and boost the other one?
Daw588
July 17, 2022, 5:31am
13
I fixed the issue by deleting the project and creating a new one.
system
Closed
January 13, 2023, 5:31am
14
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.