aws-samples/aws-modern-application-workshop

sh: 1: ./node_modules/@angular/cli/bin/ng: not found

Opened this issue · 0 comments

  • when running deploy_frontend.sh there's an error
  • Resolved with an npm install in ../frontend
  • I'll work on a pull request for the readme
❯ ./deploy_frontend.sh

> ng-mythical-mysfits@0.0.0 build /home/geoff/work/aws-modern-application-workshop/module-1/frontend
> ./node_modules/@angular/cli/bin/ng build "--prod"

sh: 1: ./node_modules/@angular/cli/bin/ng: not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! ng-mythical-mysfits@0.0.0 build: `./node_modules/@angular/cli/bin/ng build "--prod"`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the ng-mythical-mysfits@0.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/geoff/.npm/_logs/2020-07-17T21_46_01_629Z-debug.log
make_bucket: mythical-mysfits-frontend-208630539490

The user-provided path /home/geoff/work/aws-modern-application-workshop/module-1/deploy-frontend-scripts/../frontend/dist does not exist.
View your project here: http://mythical-mysfits-frontend-208630539490.s3-website.us-east-2.amazonaws.com