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:
|
phases:
|
||||||
preBuild:
|
preBuild:
|
||||||
commands:
|
commands:
|
||||||
|
- node -v
|
||||||
|
- npm -v
|
||||||
|
- npm i -g npm@8
|
||||||
|
- npm -v
|
||||||
- npm install --legacy-peer-deps
|
- npm install --legacy-peer-deps
|
||||||
- npm run optimize-images
|
- npm run optimize-images
|
||||||
build:
|
build:
|
||||||
|
|||||||
Reference in New Issue
Block a user