Until now whenever i wanted to update my Angular dependencies with "ng update" as stated on this page, i got this error:
An unhandled exception occurred: minTimeout is greater than maxTimeout
This is a detailed log:
[error] Error: minTimeout is greater than maxTimeout
at Object.exports.timeouts (C:\myprojectlocation\node_modules\promise-retry\node_modules\retry\lib\retry.js:28:11)
at Object.exports.operation (C:\myprojectlocation\node_modules\promise-retry\node_modules\retry\lib\retry.js:4:26)
at promiseRetry (C:\myprojectlocation\node_modules\promise-retry\index.js:23:23)
at remoteFetch (C:\myprojectlocation\node_modules\make-fetch-happen\index.js:329:10)
at conditionalFetch (C:\myprojectlocation\node_modules\make-fetch-happen\index.js:239:10)
at C:\myprojectlocation\node_modules\make-fetch-happen\index.js:148:18
at tryCatcher (C:\myprojectlocation\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (C:\myprojectlocation\node_modules\bluebird\js\release\promise.js:547:31)
at Promise._settlePromise (C:\myprojectlocation\node_modules\bluebird\js\release\promise.js:604:18)
at Promise._settlePromise0 (C:\myprojectlocation\node_modules\bluebird\js\release\promise.js:649:10)
at Promise._settlePromises (C:\myprojectlocation\node_modules\bluebird\js\release\promise.js:729:18)
at _drainQueueStep (C:\myprojectlocation\node_modules\bluebird\js\release\async.js:93:12)
at _drainQueue (C:\myprojectlocation\node_modules\bluebird\js\release\async.js:86:9)
at Async._drainQueues (C:\myprojectlocation\node_modules\bluebird\js\release\async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (C:\myprojectlocation\node_modules\bluebird\js\release\async.js:15:14)
at processImmediate (internal/timers.js:439:21)
As very this moment, i have the version 8.2.13 and wanted to update to 9.0. And as the instruction page suggests, i run this command:
ng update @angular/core@8 @angular/cli@8
Why do i still have this error?
PS: With the older versions (maybe while updating from 4 to 5/6) i had the same error. I ended up creating a new project with the newer cli, and manually copied all files to the new project.. I am not sure if this manual approach is really not "healthier" than this suggested process, in case of a simple Angular app where you do not have any compatibility issues.
I was also facing the same issue, while updating my angular v7 to v8. Later on I remember that I've changed some config setting in npm. I had changed below two setting sometime back.
fetch-retry-mintimeout = 100000
fetch-retry-maxtimeout = 1200000
I just reverted the above change back to default values i.e
npm config set fetch-retry-maxtimeout=60000
npm config set fetch-retry-mintimeout=10000
And that resolved this "minTimeout is greater than maxTimeout".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With