Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 2

Issues installing the local development server




I'm wondering if anyone has had success installing the local development server on a Apple M1 (ARM64) device? I keep running into an error, and I'm not sure what the issue is. Error log is below.

Thanks in advance!

justineverett@MacBook-Air template % sudo npm install @squarespace/server
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! code 1
npm ERR! path /Users/justineverett/Alimentaria/template/node_modules/@squarespace/server
npm ERR! command failed
npm ERR! command sh -c node scripts/execif.js --exists=build npm run bundle && npm run cleanupscript
npm ERR! Executing: npm run bundle
npm ERR! 
npm ERR! > @squarespace/server@1.8.2 bundle
npm ERR! > node scripts/bundlejre.js --accept --clear -tz -j 8u131 -o build/distributions/runtimes/jre
npm ERR! 
npm ERR! Bundling compatible JRE (This may take a while)
npm ERR! /Users/justineverett/Alimentaria/template/node_modules/@squarespace/server/scripts/utils/jreurl.js:36
npm ERR!   var sortedVersions = versions.sort().reverse();
npm ERR!                                 ^
npm ERR! 
npm ERR! TypeError: Cannot read property 'sort' of undefined
npm ERR!     at getVersion (/Users/justineverett/Alimentaria/template/node_modules/@squarespace/server/scripts/utils/jreurl.js:36:33)
npm ERR!     at module.exports (/Users/justineverett/Alimentaria/template/node_modules/@squarespace/server/scripts/utils/jreurl.js:51:13)
npm ERR!     at main (/Users/justineverett/Alimentaria/template/node_modules/@squarespace/server/scripts/bundlejre.js:53:13)
npm ERR!     at Object.<anonymous> (/Users/justineverett/Alimentaria/template/node_modules/@squarespace/server/scripts/bundlejre.js:79:1)
npm ERR!     at Module._compile (node:internal/modules/cjs/loader:1109:14)
npm ERR!     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1138:10)
npm ERR!     at Module.load (node:internal/modules/cjs/loader:989:32)
npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:829:14)
npm ERR!     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12)
npm ERR!     at node:internal/main/run_main_module:17:47
npm ERR! Command failed: npm run bundle

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/justineverett/.npm/_logs/2021-06-29T19_05_01_492Z-debug.log


Link to comment

1 answer to this question

Recommended Posts

  • 0

Hello @ThisJustin,

Thanks for posting your question!

This error is caused by an issue our end, I'm sorry for the trouble. Unfortunately the Development Server does not support the ARM-based architecture your M1 Mac is using.  

I made a record of this for our Engineering to review, however I do not not currently have an ETA for this implementation.

Feel free to post in the thread if you have any additional questions!

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...