Skip to content

Commit

Permalink
Add error message when running from a windows 32-bit install (#3649)
Browse files Browse the repository at this point in the history
  • Loading branch information
dguenther authored Mar 14, 2023
1 parent 1f349a5 commit 0841a91
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ironfish-cli/bin/run
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ if (process.platform !== 'win32') {
require('@ironfish/rust-nodejs').initSignalHandler()
}

if (process.platform === 'win32' && process.arch === 'ia32') {
console.log(
`32-bit installations are not supported. You may have accidentally installed 32-bit Node.js. Please try reinstalling Node.js v18 (64-bit): https://nodejs.org/en/download/`,
)
process.exit(1)
}

if (process.versions.node.split('.')[0] !== '18') {
console.log(
`NodeJS version ${process.versions.node} is not compatible. Must have Node v18 installed: https://nodejs.org/en/download/`,
Expand Down

0 comments on commit 0841a91

Please sign in to comment.