Unable to install for node 21+ #3045

Closed
opened 2023-12-19 09:23:41 +00:00 by Ranork · 1 comment

CLI:
yarn add https://cdn.sheetjs.com/xlsx-0.20.1/xlsx-0.20.1.tgz

Response:

yarn add v1.22.19
[1/4] Resolving packages...
⠂ https://cdn.sheetjs.com/xlsx-0.20.1/xlsx-0.20.1.tgz(node:15276) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
[2/4] Fetching packages...
error @azure/msal-node@1.18.4: The engine "node" is incompatible with this module. Expected version "10 || 12 || 14 || 16 || 18". Got "21.4.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Using Node version 21.4.0

CLI: `yarn add https://cdn.sheetjs.com/xlsx-0.20.1/xlsx-0.20.1.tgz` Response: ``` yarn add v1.22.19 [1/4] Resolving packages... ⠂ https://cdn.sheetjs.com/xlsx-0.20.1/xlsx-0.20.1.tgz(node:15276) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead. (Use `node --trace-deprecation ...` to show where the warning was created) [2/4] Fetching packages... error @azure/msal-node@1.18.4: The engine "node" is incompatible with this module. Expected version "10 || 12 || 14 || 16 || 18". Got "21.4.0" error Found incompatible module. info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command. ``` Using Node version 21.4.0
Owner

The actual error message points to a different module:

error @azure/msal-node@1.18.4: The engine "node" is incompatible with this module. Expected version "10 || 12 || 14 || 16 || 18". Got "21.4.0"
error Found incompatible module.

Either upgrade that dependency or roll your local node version back to 18.x

The actual error message points to a different module: ``` error @azure/msal-node@1.18.4: The engine "node" is incompatible with this module. Expected version "10 || 12 || 14 || 16 || 18". Got "21.4.0" error Found incompatible module. ``` Either upgrade that dependency or roll your local node version back to 18.x
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sheetjs/sheetjs#3045
No description provided.