aws next js hosting
Unanswered
Chartreux posted this in #help-forum
ChartreuxOP
Starting phase: preBuild
Executing command: npm ci
2023-08-06T02:49:41.941Z [WARNING]: npm ERR! code E401
2023-08-06T02:49:41.943Z [WARNING]: npm ERR! Incorrect or missing password.
npm ERR! If you were trying to login, change your password, create an
npm ERR! authentication token or enable two-factor authentication then
npm ERR! that means you likely typed your password in incorrectly.
npm ERR! Please try again, or recover your password at:
npm ERR! https://www.npmjs.com/forgot
npm ERR!
npm ERR! If you were doing some other operation then your saved credentials are
npm ERR! probably out of date. To correct this please try logging in again with:
npm ERR! npm login
2023-08-06T02:49:41.944Z [WARNING]:
2023-08-06T02:49:41.944Z [WARNING]: npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2023-08-06T02_49_25_851Z-debug-0.log
2023-08-06T02:49:41.962Z [ERROR]: !!! Build failed
2023-08-06T02:49:41.963Z [ERROR]: !!! Non-Zero Exit Code detected
2023-08-06T02:49:41.963Z [INFO]: # Starting environment caching...
2023-08-06T02:49:41.963Z [INFO]: # Environment caching completed
Terminating logging...
Executing command: npm ci
2023-08-06T02:49:41.941Z [WARNING]: npm ERR! code E401
2023-08-06T02:49:41.943Z [WARNING]: npm ERR! Incorrect or missing password.
npm ERR! If you were trying to login, change your password, create an
npm ERR! authentication token or enable two-factor authentication then
npm ERR! that means you likely typed your password in incorrectly.
npm ERR! Please try again, or recover your password at:
npm ERR! https://www.npmjs.com/forgot
npm ERR!
npm ERR! If you were doing some other operation then your saved credentials are
npm ERR! probably out of date. To correct this please try logging in again with:
npm ERR! npm login
2023-08-06T02:49:41.944Z [WARNING]:
2023-08-06T02:49:41.944Z [WARNING]: npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2023-08-06T02_49_25_851Z-debug-0.log
2023-08-06T02:49:41.962Z [ERROR]: !!! Build failed
2023-08-06T02:49:41.963Z [ERROR]: !!! Non-Zero Exit Code detected
2023-08-06T02:49:41.963Z [INFO]: # Starting environment caching...
2023-08-06T02:49:41.963Z [INFO]: # Environment caching completed
Terminating logging...
2 Replies
This SO issue looks similar as urs. saying deleting package-lock.json fixed.
https://stackoverflow.com/questions/67114659/npm-err-code-e401-npm-err-incorrect-or-missing-password
https://stackoverflow.com/questions/67114659/npm-err-code-e401-npm-err-incorrect-or-missing-password
ChartreuxOP
ok