An optional dependency cannot be resolved. Either add/align it, or ignore it if your platform does not need it.
Optional deps may fail to install on unsupported platforms. npm treats some resolution failures as errors unless you allow optional failures.
If it is truly optional for your platform, you can allow it to fail without blocking install.
Align the optional dep version with peers if you need it on this platform.
Use npm config optional=false to skip installing optional deps, or catch failures with npm install --no-optional if they are not needed.
Optional deps are often platform-specific (e.g., fsevents). If not needed, skip them; otherwise, use a compatible version or platform.
npm ERR! code E401 npm ERR! 401 Unauthorized - Token has expired
Token has expired - npm authentication failure
npm ERR! code ENOAUDIT npm ERR! Audit endpoint not supported
How to fix "npm ERR! code ENOAUDIT - Audit endpoint not supported"
npm ERR! code EBADDEVENGINES npm ERR! devEngines.runtime incompatible with current node version
How to fix "npm ERR! code EBADDEVENGINES - devEngines.runtime incompatible with current node version"