Amplify: print node/npm versions; install npm@8 before install to avoid npm resolve bug
This commit is contained in:
@@ -4,6 +4,10 @@ applications:
|
||||
phases:
|
||||
preBuild:
|
||||
commands:
|
||||
- node -v
|
||||
- npm -v
|
||||
- npm i -g npm@8
|
||||
- npm -v
|
||||
- npm install --legacy-peer-deps
|
||||
- npm run optimize-images
|
||||
build:
|
||||
|
||||
Reference in New Issue
Block a user