Azurite icon indicating copy to clipboard operation
Azurite copied to clipboard

[Task] Need fix the build error with latest npm version

Open blueww opened this issue 3 years ago • 0 comments

Currently there's 2 PR check errors:

  1. in "npm ci" with latest npm version like "8.12.2".

npm WARN config global --global, --local are deprecated. Use --location=global instead. npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: [email protected] npm ERR! Found: [email protected] npm ERR! node_modules/prettier npm ERR! dev prettier@"^2.2.1" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer prettier@"^1.7.4" from [email protected] npm ERR! node_modules/prettier-tslint npm ERR! dev prettier-tslint@"^0.4.2" from the root project npm ERR! npm ERR! Conflicting peer dependency: [email protected] npm ERR! node_modules/prettier npm ERR! peer prettier@"^1.7.4" from [email protected] npm ERR! node_modules/prettier-tslint npm ERR! dev prettier-tslint@"^0.4.2" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! See C:\npm\cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in: npm ERR! C:\npm\cache_logs\2022-06-14T18_02_47_141Z-debug-0.log ##[error]Cmd.exe exited with code '1'.

Currently we workaround it by use npm ci --legacy-peer-deps instead of npm ci. A PR is filed to workaround the build failures in PR check: https://github.com/Azure/Azurite/pull/1545

We should fix this by remove the old dependency [email protected] later.

  1. in Azurite Linux node 14 step "Validate npm global installation from GitHub code base", "npm install --location=global" or "sudo npm install -g" failed with

[email protected] build /home/vsts/work/1/s tsc

npm WARN config global --global, --local are deprecated. Use --location=global instead. npm ERR! code 243 npm ERR! path /home/vsts/work/1/s npm ERR! command failed npm ERR! command sh -c npm run build npm ERR!

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2022-06-17T08_35_20_484Z-debug-0.log /home/vsts/work/_temp/f42125b2-7a6b-41e1-91c9-1850baa0461b.sh: line 4: azurite: command not found /home/vsts/work/_temp/f42125b2-7a6b-41e1-91c9-1850baa0461b.sh: line 5: azurite-blob: command not found /home/vsts/work/_temp/f42125b2-7a6b-41e1-91c9-1850baa0461b.sh: line 6: azurite-queue: command not found /home/vsts/work/_temp/f42125b2-7a6b-41e1-91c9-1850baa0461b.sh: line 7: azurite-table: command not found

blueww avatar Jun 17 '22 03:06 blueww