Nixpacks build failed Error: Error reading package.json as JSON
Anonymous
TRIALOP

2 years ago

Hello i get this error

19 Replies

Anonymous
TRIALOP

2 years ago

6502a46d-04b3-43ae-bc7f-1d11acb1562a


2 years ago

I assume your package.json is not valid json


2 years ago

please send your package.json


Anonymous
TRIALOP

2 years ago

{

"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"

}

}


2 years ago

send it as a file please


Anonymous
TRIALOP

2 years ago

(no markdown available for this content)


2 years ago

yep that's valid, what's the file encoding?


Anonymous
TRIALOP

2 years ago

utf-8


2 years ago

okay that's good, can you share your repo?


Anonymous
TRIALOP

2 years ago

what repo?


2 years ago

your github repo



2 years ago

that is definitely not a valid package.json file


Anonymous
TRIALOP

2 years ago

why?¿


2 years ago

because its not even json


2 years ago

(no markdown available for this content)


2 years ago

(no markdown available for this content)


Anonymous
TRIALOP

2 years ago

oksss


Anonymous
TRIALOP

2 years ago

thanks


Welcome!

Sign in to your Railway account to join the conversation.

Loading...