Nixpacks build failed Error: Error reading package.json as JSON
Hello i get this error
17 Replies
Project ID:
6502a46d-04b3-43ae-bc7f-1d11acb1562a
6502a46d-04b3-43ae-bc7f-1d11acb1562a
I assume your package.json is not valid json
please send your package.json
{
"name": "backend",
"version": "1.0.0",
"description": "Backend afiliatesweb",
"main": "app.js",
"type": "module",
"scripts": {
"dev": "node --watch app.js",
"test": "echo "Error: no test specified" && exit 1",
"start": "node index.js",
"create:localfile": "node localfile.js",
"create:localfile:dev": "node --watch localfile.js",
"create:postgres": "node postgres.js",
"create:postgres:dev": "node --watch postgres.js",
"create:mongo": "node index.js",
"create:mongo:dev": "node --watch index.js"
},
"author": "Jorge Daza",
"license": "ISC",
"dependencies": {
"adm-zip": "0.5.10",
"csvtojson": "2.0.10",
"dotenv": "16.3.1",
"express": "4.18.2",
"mongodb": "6.3.0",
"node-cron": "3.0.3",
"node-fetch": "3.3.2",
"pg": "8.11.3",
"xml-js": "1.6.11"
},
"devDependencies": {
"standard": "17.1.0"
},
"eslintConfig": {
"extends": "standard"
}
}
send it as a file please
yep that's valid, what's the file encoding?
utf-8
okay that's good, can you share your repo?
what repo?
your github repo
GitHub
GitHub - Jorgesdr/PreciosRebajadosBack
Contribute to Jorgesdr/PreciosRebajadosBack development by creating an account on GitHub.
that is definitely not a valid package.json file
why?¿
because its not even json
oksss
thanks