'How to fix “npm ERR! Maximum call stack size exceeded” in Azure

My latest build of a service returns an error:

* npm WARN using --force Recommended protections disabled. npm notice npm notice New patch version of npm available! 7.0.3 -> 7.0.6 npm notice Changelog: https://github.com/npm/cli/releases/tag/v7.0.6 npm notice Run npm install -g [email protected] to update! npm notice npm Maximum call stack size exceeded

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2020-10-29T21_07_47_731Z-debug.log The command '/bin/sh -c apk update && apk add --no-cache --virtual .gyp python make g++ && npm cache clean --force && npm install --production && apk del .gyp' returned a non-zero code: 1 *

I tried to add npm cache clean --force and it did not address the issue. Thanks

npm


Solution 1:[1]

Try this boss-wo/man

npm update [-g] [<pkg>...]

aliases: up, upgrade

npm-docs

i.e.

npm update -g [email protected]

hopefully this helps!

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 bturner1273