Cloudflare DevelopersCD
Cloudflare Developers3y ago
27 replies
apz

How do I disable npm install @ start`Installing project dependencies: npm install --progress=false`

How do I disable npm install on start (Installing project dependencies: npm install --progress=false)?

Here's my build command:

npm install -g bun && bun install --production && bun run build

Env Variable:

NODE_VERSION=production
NPM_FLAGS=--version


^ borrowed npm_flags from Sveltekit's documentation, it had worked to run pnpm installs in build v1. I've also tried with it removed. No dice.

Build/Deployment: d2a8f3d8-c26d-4b4e-8f83-8fa07155b161
Project: 0bfc5f1dffb216bf662974bd213bdf82

Logs:

19:34:55.589    Success: Finished cloning repository files
19:34:57.567    Detected the following tools from environment: nodejs@20.5.1, npm@9.5.1
19:34:57.568    Installing nodejs 20.5.1
19:34:58.272    Trying to update node-build... ok
19:34:58.543    Downloading node-v20.5.1-linux-x64.tar.gz...
19:34:58.543    -> https://nodejs.org/dist/v20.5.1/node-v20.5.1-linux-x64.tar.gz
19:35:00.413    Installing node-v20.5.1-linux-x64...
19:35:01.990    Installed node-v20.5.1-linux-x64 to /opt/buildhome/.asdf/installs/nodejs/20.5.1
19:35:01.991    
19:35:03.420    Installing project dependencies: npm install --progress=false
19:35:23.888    
19:35:23.889    added 452 packages, and audited 453 packages in 20s
19:35:23.889    
19:35:23.889    173 packages are looking for funding
19:35:23.890      run `npm fund` for details
19:35:23.891    
19:35:23.891    found 0 vulnerabilities
19:35:23.916    Executing user command: npm install -g bun && bun install --production && bun run build
19:35:28.173    
19:35:28.173    added 3 packages in 4s
19:35:28.184    Reshimming asdf nodejs...
19:35:32.119    bun install v0.8.0 (c6038571)
19:35:32.121    error: lockfile had changes, but lockfile is frozen
19:35:32.123    Failed: Error while executing user command. Exited with error code: 1
19:35:32.134    Failed: build command exited with code: 1
19:35:34.694    Failed: error occurred while running build command
Was this page helpful?