Problem deploying a node express typescript project

When I try to make a new deploy on the platform I get this error. But it doesn't make sense, because I commit the package-lock.json and I didn't change any nixpacks configuration
20 Replies
.rodrigosouza
.rodrigosouza2y ago
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
angelo
angelo2y ago
Project IDs please? Also these builds are all after 1 am EST right?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
angelo
angelo2y ago
Cool going to pull out my laptop one sec
.rodrigosouza
.rodrigosouza2y ago
Project ID: 23ed7b4e-b37f-4a66-a054-3082e166e453
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
.rodrigosouza
.rodrigosouza2y ago
.rodrigosouza
.rodrigosouza2y ago
Not working..
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
.rodrigosouza
.rodrigosouza2y ago
==============
Using Nixpacks
==============


╔═════════ Nixpacks v0.5.3 ═════════╗
║ setup │ nodejs-16_x, npm-8_x ║
║───────────────────────────────────║
║ install │ ls && npm ci ║
║───────────────────────────────────║
║ build │ npm run build ║
║───────────────────────────────────║
║ start │ npm run start ║
╚═══════════════════════════════════╝


#1 [internal] load build definition from Dockerfile
#1 sha256:81aa1932d4dd261c67f19efb8bcc9f578c0f6be6bc6e193d3c23922414074d39
#1 transferring dockerfile: 1.94kB done
#1 DONE 0.1s

#2 [internal] load .dockerignore
#2 sha256:a5949a085be38b8030e97661e1011b20aa75b171b31ad504e62613a40ccdfa7e

#2 transferring context: 2B done
#2 DONE 0.1s


#3 [internal] load metadata for ghcr.io/railwayapp/nixpacks:debian-1663027579
#3 sha256:49c2edd60dba5278a5861abd6bb7d74a42bb70e3d260835646a4c0ae2c968579

#3 DONE 0.2s


#4 [stage-0 1/9] FROM ghcr.io/railwayapp/nixpacks:debian-1663027579@sha256:d177f86fcade15d72ddb61f518403a414e1a01c16c17002b9bb0a8b19ee5fc2d
#4 sha256:d0c2bd844a19412264e4f2f93356ce0d651cf4368ed991c8f92a6a93016cbf76
#4 DONE 0.0s

#6 [internal] load build context
==============
Using Nixpacks
==============


╔═════════ Nixpacks v0.5.3 ═════════╗
║ setup │ nodejs-16_x, npm-8_x ║
║───────────────────────────────────║
║ install │ ls && npm ci ║
║───────────────────────────────────║
║ build │ npm run build ║
║───────────────────────────────────║
║ start │ npm run start ║
╚═══════════════════════════════════╝


#1 [internal] load build definition from Dockerfile
#1 sha256:81aa1932d4dd261c67f19efb8bcc9f578c0f6be6bc6e193d3c23922414074d39
#1 transferring dockerfile: 1.94kB done
#1 DONE 0.1s

#2 [internal] load .dockerignore
#2 sha256:a5949a085be38b8030e97661e1011b20aa75b171b31ad504e62613a40ccdfa7e

#2 transferring context: 2B done
#2 DONE 0.1s


#3 [internal] load metadata for ghcr.io/railwayapp/nixpacks:debian-1663027579
#3 sha256:49c2edd60dba5278a5861abd6bb7d74a42bb70e3d260835646a4c0ae2c968579

#3 DONE 0.2s


#4 [stage-0 1/9] FROM ghcr.io/railwayapp/nixpacks:debian-1663027579@sha256:d177f86fcade15d72ddb61f518403a414e1a01c16c17002b9bb0a8b19ee5fc2d
#4 sha256:d0c2bd844a19412264e4f2f93356ce0d651cf4368ed991c8f92a6a93016cbf76
#4 DONE 0.0s

#6 [internal] load build context
#6 sha256:1cd3fa9b8d53aa815804990355323aa97aa8f33dd681597233310b3a00aea858
#6 transferring context: 53.73kB 0.0s done
#6 DONE 0.1s

#5 [stage-0 2/9] WORKDIR /app/
#5 sha256:4208877867238ad218fa52b6ec2d2e5b5dc59f25f0af05f925e8749d9acfe551
#5 CACHED

#7 [stage-0 3/9] COPY .nixpacks/setup.nix .nixpacks/setup.nix
#7 sha256:e2e3a1dbac704aacaa5253cf79aade089d829d361950d8a7e807fd9787108592
#7 CACHED

#8 [stage-0 4/9] RUN nix-env -if .nixpacks/setup.nix && nix-collect-garbage -d
#8 sha256:e465741f70372e7fdbf749b3e2020a0eb35c3759011540a659b2841cb06c18f3
#8 CACHED

#9 [stage-0 5/9] RUN printf '\nPATH=/app/node_modules/.bin:$PATH' >> /root/.profile
#9 sha256:2eb38637fb9d545deb67d3e00ed579e585bf613e9402ff3260569686083f77b0

#9 DONE 0.7s


#10 [stage-0 6/9] COPY . /app/
#10 sha256:0c9485d0e832a37e4012cb500ee0638880fb1d5e66307bb1597c4f7e787bf6a2

#10 DONE 0.2s

#11 [stage-0 7/9] RUN --mount=type=cache,id=s/1f174399-345e-461d-8ca5-b688c0ccb288-/root/npm,target=/root/.npm ls && npm ci
#11 sha256:724f01ae2c7a986cd33ef9d7e88c070d874da1121567b1f59a39e12d31be534e

#11 0.775 README.md
#11 0.775 package.json
#11 0.775 prisma
#11 0.775 src
#11 0.775 tsconfig.json
#11 0.775 vite.config.ts

#11 1.489 npm WARN config production Use `--omit=dev` instead.
#11 1.608 npm ERR!
code EUSAGE
#11 1.612 npm ERR!
#11 1.612 npm ERR! The `npm ci` command can only install with an existing package-lock.json or
#11 1.612 npm ERR! npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or
#11 1.612 npm ERR! later to generate a package-lock.json file, then try again.
#11 1.612 npm ERR!
#11 1.613 npm ERR! Clean install a project
#11 1.613 npm ERR!
#6 sha256:1cd3fa9b8d53aa815804990355323aa97aa8f33dd681597233310b3a00aea858
#6 transferring context: 53.73kB 0.0s done
#6 DONE 0.1s

#5 [stage-0 2/9] WORKDIR /app/
#5 sha256:4208877867238ad218fa52b6ec2d2e5b5dc59f25f0af05f925e8749d9acfe551
#5 CACHED

#7 [stage-0 3/9] COPY .nixpacks/setup.nix .nixpacks/setup.nix
#7 sha256:e2e3a1dbac704aacaa5253cf79aade089d829d361950d8a7e807fd9787108592
#7 CACHED

#8 [stage-0 4/9] RUN nix-env -if .nixpacks/setup.nix && nix-collect-garbage -d
#8 sha256:e465741f70372e7fdbf749b3e2020a0eb35c3759011540a659b2841cb06c18f3
#8 CACHED

#9 [stage-0 5/9] RUN printf '\nPATH=/app/node_modules/.bin:$PATH' >> /root/.profile
#9 sha256:2eb38637fb9d545deb67d3e00ed579e585bf613e9402ff3260569686083f77b0

#9 DONE 0.7s


#10 [stage-0 6/9] COPY . /app/
#10 sha256:0c9485d0e832a37e4012cb500ee0638880fb1d5e66307bb1597c4f7e787bf6a2

#10 DONE 0.2s

#11 [stage-0 7/9] RUN --mount=type=cache,id=s/1f174399-345e-461d-8ca5-b688c0ccb288-/root/npm,target=/root/.npm ls && npm ci
#11 sha256:724f01ae2c7a986cd33ef9d7e88c070d874da1121567b1f59a39e12d31be534e

#11 0.775 README.md
#11 0.775 package.json
#11 0.775 prisma
#11 0.775 src
#11 0.775 tsconfig.json
#11 0.775 vite.config.ts

#11 1.489 npm WARN config production Use `--omit=dev` instead.
#11 1.608 npm ERR!
code EUSAGE
#11 1.612 npm ERR!
#11 1.612 npm ERR! The `npm ci` command can only install with an existing package-lock.json or
#11 1.612 npm ERR! npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or
#11 1.612 npm ERR! later to generate a package-lock.json file, then try again.
#11 1.612 npm ERR!
#11 1.613 npm ERR! Clean install a project
#11 1.613 npm ERR!
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
.rodrigosouza
.rodrigosouza2y ago
In my code base has package-lock.json
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
.rodrigosouza
.rodrigosouza2y ago
I Change the NIXPACKS_INSTALL_CMD works for me 😄
jr
jr2y ago
on railway or locally?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
jr
jr2y ago
hmm me too. But I can't repro locally with cli version of nixpacks Even this example https://github.com/railwayapp/nixpacks/tree/main/examples/node
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
jr
jr2y ago
We reverted to an earlier version while we debug the issue. All should be good now
Want results from more Discord servers?
Add your server
More Posts