#Error deploying Node.js TypeScript starter

20 messages · Page 1 of 1 (latest)

elder drift
#

I'm new here 😉
When I try the template "Node.js TypeScript starter", I get this error:
ERROR: failed to solve: process "/bin/bash -ol pipefail -c pnpm i --frozen-lockfile" did not complete successfully: exit code: 1

I wanted to deploy this to start building a set of API calls build with Typescript.

hoary bronzeBOT
#

Project ID: 6a331d2e-7ef4-4d37-9073-5efc552b8869

sweet radish
#

please provide full build logs please

elder drift
#
Using Nixpacks
==============

context: 436f4ce7fc9fea12c3ccd6dca7d57b05
 
╔═══════════ Nixpacks v1.9.0 ═══════════╗
║ setup      │ nodejs-18_x, pnpm-7_x    ║
║───────────────────────────────────────║
║ install    │ pnpm i --frozen-lockfile ║
║───────────────────────────────────────║
║ build      │ pnpm run build           ║
║───────────────────────────────────────║
║ start      │ pnpm run start           ║
╚═══════════════════════════════════════╝
 
 
#1 [internal] load .dockerignore
#1 transferring context: 2B done
#1 DONE 0.1s
 
 
#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 2.23kB done
#2 DONE 0.1s
 
#3 [internal] load metadata for ghcr.io/railwayapp/nixpacks:ubuntu-1684957838
 
#3 DONE 0.1s
 
#4 [stage-0  1/10] FROM ghcr.io/railwayapp/nixpacks:ubuntu-1684957838@sha256:eb26a5ad60faad269d01ac896a4eefb5e7987040d39549dbe5d8cdfd1a830b75
#4 DONE 0.0s
 
#5 [internal] load build context
 
#10 1.207 Fetching Node.js 18.16.1 ...
 
#10 10.18  WARN  EXDEV: cross-device link not permitted, link '/root/.local/share/pnpm/store/v3/files/files/88/89d8c11a560d1118f6d8a3964cdf4fafa3116dfe546ae9022c8b41d6830a7e0266d8e2e079cc25a847245114ed95dc137a198afde06abc93f48f7b08ea297d' -> '/root/.local/share/pnpm/nodejs/_tmp_1_023f0c1bbb9da858dcaedba62b23c363/share/doc/node/lldb_commands.py'
#10 10.18 Falling back to copying packages from store
 
#10 10.46 Packages are copied from the content-addressable store to the virtual store.
#10 10.46   Content-addressable store is at: /root/.local/share/pnpm/store/v3
#10 10.46   Virtual store is at:             node_modules/.pnpm
#10 10.47  ERR_PNPM_LOCKFILE_CONFIG_MISMATCH  Cannot proceed with the frozen installation. The current "settings.autoInstallPeers" configuration doesn't match the value found in the lockfile
#10 10.47
#10 10.47 Update your lockfile using "pnpm install --no-frozen-lockfile"
#10 ERROR: process "/bin/bash -ol pipefail -c pnpm i --frozen-lockfile" did not complete successfully: exit code: 1
 
-----
> [stage-0  6/10] RUN --mount=type=cache,id=s/6a331d2e-7ef4-4d37-9073-5efc552b8869-/root/local/share/pnpm/store/v3,target=/root/.local/share/pnpm/store/v3 pnpm i --frozen-lockfile:
#10 1.207 Fetching Node.js 18.16.1 ...
#10 10.18  WARN  EXDEV: cross-device link not permitted, link '/root/.local/share/pnpm/store/v3/files/files/88/89d8c11a560d1118f6d8a3964cdf4fafa3116dfe546ae9022c8b41d6830a7e0266d8e2e079cc25a847245114ed95dc137a198afde06abc93f48f7b08ea297d' -> '/root/.local/share/pnpm/nodejs/_tmp_1_023f0c1bbb9da858dcaedba62b23c363/share/doc/node/lldb_commands.py'
#10 10.18 Falling back to copying packages from store
#10 10.46 Packages are copied from the content-addressable store to the virtual store.
#10 10.46   Content-addressable store is at: /root/.local/share/pnpm/store/v3
#10 10.46   Virtual store is at:             node_modules/.pnpm
#10 10.47  ERR_PNPM_LOCKFILE_CONFIG_MISMATCH  Cannot proceed with the frozen installation. The current "settings.autoInstallPeers" configuration doesn't match the value found in the lockfile
#10 10.47
#10 10.47 Update your lockfile using "pnpm install --no-frozen-lockfile"
-----
 
Dockerfile:20
-------------------
18 |     ENV NIXPACKS_PATH /app/node_modules/.bin:$NIXPACKS_PATH
19 |     COPY . /app/.
20 | >>> RUN --mount=type=cache,id=s/6a331d2e-7ef4-4d37-9073-5efc552b8869-/root/local/share/pnpm/store/v3,target=/root/.local/share/pnpm/store/v3 pnpm i --frozen-lockfile
21 |
22 |     # build phase
-------------------
ERROR: failed to solve: process "/bin/bash -ol pipefail -c pnpm i --frozen-lockfile" did not complete successfully: exit code: 1
 
Error: Docker build failed```
sweet radish
#

the solution directly copied from the logs you provided me:

#

Update your lockfile using "pnpm install --no-frozen-lockfile"

elder drift
#

Thanks Brody. I'm new to this so.. where should I run this command?

sweet radish
#

in a terminal open to your local project folder

elder drift
#

Hmm, I thought all this lived in the cloud? Did not realize that these projects are saved on my local disk? Where can I find out where exactly this project is saved on my local disk?

sweet radish
#

they are saved in the "cloud" to fix the project you will need to clone the repo to a local folder and run the given command

#

by the way, this is not your fault, this is the template creators fault

elder drift
#

So, is the template "Node.js TypeScript starter" broken on Railway?

sweet radish
#

yes, but that template is not maintained by railway

elder drift
#

Ok, thanks! Any other template I can use/start to start developing my own API's with TypeScript?

#

I started with railwayapp-templates/fastapi, works fine, but its in Python. I wanted to do the same, but with Typescript

sweet radish
#

well then "Node.js TypeScript starter" is not what you want either, it only prints a console log

elder drift
#

Thanks! This one deploys just fine! 👍

sweet radish
#

perfect, i will see about getting in contact with the maintainer of the broken template, or simply getting it removed