use npm instead of pnpm
Some checks failed
ci / build (push) Failing after 0s
ci / Tests & Checks (push) Failing after 1s

This commit is contained in:
CJ_Clippy 2025-07-14 05:22:49 -08:00
parent 4584997931
commit dc311073a3
5 changed files with 12943 additions and 8455 deletions

View File

@ -1,5 +1,4 @@
# Don't upgrade node! pnpm is broken on 22
FROM node:20
FROM node:22
# Set working directory
WORKDIR /app
@ -16,21 +15,19 @@ RUN apt-get update -y && \
python3-pip \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# Enable corepack
RUN corepack enable && corepack prepare pnpm@latest --activate
# Copy and install dependencies
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile --prod
COPY package.json package-lock.json ./
RUN npm install --ignore-scripts=false --foreground-scripts --verbose
# Copy the rest of the code
COPY . .
# Build the app
RUN pnpm run build
RUN npm run build
# Expose the port
EXPOSE 5000
# Start the app
CMD ["pnpm", "start"]
CMD ["npm", "run", "start:server"]

View File

@ -94,6 +94,65 @@ Actually, better advice is to probably **remove libvips from the system**. This
Annoyingly, it might be necessary to re-install sharp after every new npm package, even if said package is unrelated to sharp.
#### edgesOut??
```
npm http fetch GET 200 https://registry.npmjs.org/typescript 32ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/@hapi%2fbourne 67ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@hapi%2fbounce 104ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@hapi%2fboom 142ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@hapi%2fvalidate 225ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@hapi%2ftopo 81ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@types%2fnode 21ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/@humanfs%2ftest 480ms (cache revalidated)
npm verbose stack TypeError: Cannot read properties of null (reading 'edgesOut')
npm verbose stack at #loadPeerSet (/home/cj/.nvm/versions/node/v20.19.3/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:1286:38)
npm verbose stack at async #buildDepStep (/home/cj/.nvm/versions/node/v20.19.3/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:901:11)
npm verbose stack at async Arborist.buildIdealTree (/home/cj/.nvm/versions/node/v20.19.3/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:181:7)
npm verbose stack at async Promise.all (index 1)
npm verbose stack at async Arborist.reify (/home/cj/.nvm/versions/node/v20.19.3/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:131:5)
npm verbose stack at async Install.exec (/home/cj/.nvm/versions/node/v20.19.3/lib/node_modules/npm/lib/commands/install.js:150:5)
npm verbose stack at async Npm.exec (/home/cj/.nvm/versions/node/v20.19.3/lib/node_modules/npm/lib/npm.js:207:9)
npm verbose stack at async module.exports (/home/cj/.nvm/versions/node/v20.19.3/lib/node_modules/npm/lib/cli/entry.js:74:5)
npm error Cannot read properties of null (reading 'edgesOut')
npm verbose cwd /home/cj/Documents/futureporn-monorepo/services/our
npm verbose os Linux 6.14.6-2-MANJARO
npm verbose node v20.19.3
npm verbose npm v10.8.2
npm verbose exit 1
npm verbose code 1
```
solution: use npm instead of pnpm. (maybe this is monorepo related?)
#### matches??
```
npm http fetch GET 200 https://registry.npmjs.org/babel-jest 196ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/typedoc 229ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/wait-on 83ms (cache miss)
npm verbose stack TypeError: Cannot read properties of null (reading 'matches')
npm verbose stack at Link.matches (/home/cj/.nvm/versions/node/v20.19.1/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/node.js:1160:41)
npm verbose stack at Link.canDedupe (/home/cj/.nvm/versions/node/v20.19.1/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/node.js:1104:15)
npm verbose stack at PlaceDep.pruneDedupable (/home/cj/.nvm/versions/node/v20.19.1/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/place-dep.js:426:14)
npm verbose stack at new PlaceDep (/home/cj/.nvm/versions/node/v20.19.1/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/place-dep.js:278:14)
npm verbose stack at new PlaceDep (/home/cj/.nvm/versions/node/v20.19.1/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/place-dep.js:314:26)
npm verbose stack at #buildDepStep (/home/cj/.nvm/versions/node/v20.19.1/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:931:18)
npm verbose stack at async Arborist.buildIdealTree (/home/cj/.nvm/versions/node/v20.19.1/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:182:7)
npm verbose stack at async Promise.all (index 1)
npm verbose stack at async Arborist.reify (/home/cj/.nvm/versions/node/v20.19.1/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:131:5)
npm verbose stack at async Install.exec (/home/cj/.nvm/versions/node/v20.19.1/lib/node_modules/npm/lib/commands/install.js:149:5)
npm error Cannot read properties of null (reading 'matches')
npm verbose cwd /home/cj/Documents/futureporn-monorepo/services/our
npm verbose os Linux 6.14.6-2-MANJARO
npm verbose node v20.19.1
npm verbose npm v11.4.2
npm verbose exit 1
npm verbose code 1
npm error A complete log of this run can be found in: /home/cj/.npm/_logs/2025-07-14T12_49_09_670Z-debug-0.log
```
## Deployments

12877
services/our/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -19,7 +19,8 @@
"dev:worker": "GRAPHILE_LOGGER_DEBUG=1 tsx watch ./src/worker.ts",
"dev:build": "chokidar 'src/**/*.{js,ts}' -c tsup --clean",
"build": "tsup --clean",
"lint": "eslint ."
"lint": "eslint .",
"clean": "rm -rf node_modules && rm -rf pnpm-lock.yaml"
},
"devDependencies": {
"@eslint/compat": "^1.3.1",

File diff suppressed because it is too large Load Diff