Support Forums

Error deployment

Netlify site : https://blissful-easley-5af03f.netlify.app/

I have an issue with the deployment, firt attempt, it showed that my package-lock.json file was out dated, so, I deleted the json file and clear cache and redeploy, but then I receive another issue as per below:

`2:18:19 PM: Waiting for other deploys from your team to complete. Check the queue: Netlify App

2:18:29 PM: Build ready to start

2:18:31 PM: build-image version: 081db65c3e4ce8423fedb40e7689a87de6f84667

2:18:31 PM: build-image tag: v4.3.1

2:18:31 PM: buildbot version: b39181dd1c0d3adcb7b5f8e99f3059512848225c

2:18:31 PM: Building without cache

2:18:31 PM: Starting to prepare the repo for build

2:18:32 PM: No cached dependencies found. Cloning fresh repo

2:18:32 PM: git clone https://github.com/tengkuzulfadli/updated_redsbaby---test

2:18:33 PM: Preparing Git Reference refs/heads/main

2:18:35 PM: Parsing package.json dependencies

2:18:35 PM: Starting build script

2:18:35 PM: Installing dependencies

2:18:35 PM: Python version set to 2.7

2:18:36 PM: Downloading and installing node v16.10.0…

2:18:36 PM: Downloading https://nodejs.org/dist/v16.10.0/node-v16.10.0-linux-x64.tar.xz

2:18:37 PM: Computing checksum with sha256sum

2:18:37 PM: Checksums matched!

2:18:40 PM: Now using node v16.10.0 (npm v7.24.0)

2:18:40 PM: Started restoring cached build plugins

2:18:40 PM: Finished restoring cached build plugins

2:18:40 PM: Attempting ruby version 2.7.2, read from environment

2:18:42 PM: Using ruby version 2.7.2

2:18:42 PM: Using PHP version 8.0

2:18:42 PM: Started restoring cached node modules

2:18:42 PM: Finished restoring cached node modules

2:18:42 PM: Installing NPM modules using NPM version 7.24.0

2:18:47 PM: npm ERR! code EBADPLATFORM

2:18:47 PM: npm ERR! notsup Unsupported platform for win-node-env@0.4.0: wanted {“os”:“win32”} (current: {“os”:“linux”,“arch”:“x64”})

2:18:47 PM: npm ERR! notsup Valid OS: win32

2:18:47 PM: npm ERR! notsup Valid Arch: undefined

2:18:47 PM: npm ERR! notsup Actual OS: linux

2:18:47 PM: npm ERR! notsup Actual Arch: x64

2:18:47 PM: npm ERR! A complete log of this run can be found in:

2:18:47 PM: npm ERR! /opt/buildhome/.npm/_logs/2021-09-24T04_18_47_639Z-debug.log

2:18:47 PM: Error during NPM install

2:18:47 PM: Build was terminated: Build script returned non-zero exit code: 1

2:18:47 PM: Creating deploy upload records

2:18:47 PM: Failing build: Failed to build site

2:18:47 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 1

2:18:47 PM: Finished processing build request in 16.239057095s`

How can I resolve this issue?

I don’t think that’s an issue, npm fixes it itself.

Regardless, I think the problem is that you’ve committed the node_modules folder to your repo. If you remove that, it should work fine.

I fixed it by updating my local node, npm and I added NODE_ENV to the package.json file. Now, it’s working via this link : https://boring-minsky-54c400.netlify.app/ but Netlify cannot read the app.js file that developed using Alpinejs. I did check all my code directories, everything looks fine. Or maybe I missed something?

That URL doesn’t seem to exist. Is it deleted?