Closed jozefizso closed 3 months ago
When installing packages using npm install
it shows another set of errors:
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@azure/msal-node@1.18.4',
npm WARN EBADENGINE required: { node: '10 || 12 || 14 || 16 || 18' },
npm WARN EBADENGINE current: { node: 'v20.10.0', npm: '10.2.3' }
npm WARN EBADENGINE }
npm WARN deprecated debuglog@1.0.1: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated readdir-scoped-modules@1.1.0: This functionality has been moved to @npmcli/fs
npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
npm WARN deprecated @azure/msal-node@1.18.4: A newer major version of this library is available. Please upgrade to the latest available version.
npm WARN deprecated @azure/msal-browser@2.38.3: A newer major version of this library is available. Please upgrade to the latest available version.
added 1360 packages, and audited 1361 packages in 2m
186 packages are looking for funding
run `npm fund` for details
10 moderate severity vulnerabilities
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
@jozefizso, I am not a maintainer, but I believe the error you are encountering is due to the use of Node v20, which likely requires a lower version. If you have NVM installed, you can switch to version 18 by running the command nvm use --lts=hydrogen
, which should resolve the issue.
However, if you have opened this issue to prompt compatibility with v20, I hope the maintainers will do something about it.
Yes . . . this is a known issue with some package we depend on and node v20. We are working on getting a fix form our partners. Using a lower version of node is the work around for the time being.
Node 20 is current LTS available for 7 months already.
It has been available for 7 months, but was only recently made LTS. It is something we are going to support, it just taking time to get our down-level package dependencies to get current.
Developing on Windows, this was painful. Per the author, I was using a Microsoft article for creating an Excel addin. In particular, using this command: npm install -g yo generator-office. I started with the LTS installer for windows which installed v20.10. Once, I received a similar error as the author, I came here and found this post. Per @millerds post above, I switched to node v19.8.0. Again, no go. Then went to 18.19.0. Again, no go. Then went to 17.9.1. Definitely, a no go. Switched back to v19.8.0 and read the unsupported engine required text for yeoman where it said either 18.17.0 or >= 20.5.0. Then went to 18.17.0 and success.
Long story short, use node v18.17.0
I asked here
https://github.com/OfficeDev/office-js-docs-pr/issues/4304
to update the documentation at
to not list "Node.js (the latest LTS version" as a prerequesite. Furthermore, Linux does not seem to be supported and I did not see some hint about that in the readme.
Updated packages that have support for Node 20 should be released now.
Prerequisites
Expected behavior
Creating new addin should work seamlessly.
Current behavior
This error happens when new project is created:
Steps to Reproduce
Follow instructions at https://learn.microsoft.com/en-us/office/dev/add-ins/tutorials/powerpoint-tutorial?tabs=yeomangenerator
Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.