766 viewsMern Amazona
0 Comments

—–> Building on the Heroku-22 stack
—–> Determining which buildpack to use for this app
—–> Node.js app detected

—–> Creating runtime environment

NPM_CONFIG_LOGLEVEL=error
NODE_VERBOSE=false
NODE_ENV=production
NODE_MODULES_CACHE=true

—–> Installing binaries
engines.node (package.json): 16.x
engines.npm (package.json): unspecified (use default)

Resolving node version 16.x…
Downloading and installing node 16.17.1…
Using default npm version: 8.15.0

—–> Installing dependencies
Installing node modules (package.json)

up to date, audited 1 package in 111ms

found 0 vulnerabilities

—–> Build
Running build

> [email protected] build
> cd server && npm install && cd ../client && npm install && npm run build

up to date, audited 103 packages in 434ms

11 packages are looking for funding
run `npm fund` for details

found 0 vulnerabilities

up to date, audited 1482 packages in 3s

211 packages are looking for funding
run `npm fund` for details

6 high severity vulnerabilities

To address all issues (including breaking changes), run:
npm audit fix –force

Run `npm audit` for details.

> [email protected] build
> react-scripts build

/tmp/build-bfbdda2b.sh: 1: react-scripts: Permission denied
—–> Build failed

We’re sorry this build is failing! You can troubleshoot common issues here:
https://devcenter.heroku.com/articles/troubleshooting-node-deploys

If you’re stuck, please submit a ticket so we can help:
https://help.heroku.com/

Love,
Heroku

! Push rejected, failed to compile Node.js app.
! Push failed

already un installed logger and delete and created a new app still getting the same error

Bassir Answered question October 13, 2022

replace content of package.json in frontend with this file and try again:

https://github.com/basir/mern-amazona/blob/master/frontend/package.json

Bassir Answered question October 13, 2022