Hi all, trying to get started with Squarespace developing but can't seem to get the server started. I'm running Windows 10 with node installed globally and available on path (all up to date), and I've also tried installing on Ubuntu via WSL2.
On Windows, the error is as shown below:
At C:\Users\Iamnotacrook\AppData\Roaming\npm\squarespace-server.ps1:12 char:29
+ & "$basedir/echo$exe" off & "$basedir/node_modules/@squarespace/ser ...
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string.
On WSL2 there's a few "not found" errors (assuming based on how WSL2 and Windows interact with each other), but also a syntax error.
/mnt/c/Users/Iamnotacrook/AppData/Roaming/npm/node_modules/@squarespace/server/build/distributions/local-developer/bin/r: not found
/mnt/c/Users/Iamnotacrook/AppData/Roaming/npm/node_modules/@squarespace/server/build/distributions/local-developer/bin/run.bat: 3: @rem: not found
/mnt/c/Users/Iamnotacrook/AppData/Roaming/npm/node_modules/@squarespace/server/build/distributions/local-developer/bin/r: not found@rem
/mnt/c/Users/Iamnotacrook/AppData/Roaming/npm/node_modules/@squarespace/server/build/distributions/local-developer/bin/run.bat: 5: Syntax error: "(" unexpected
What I've found so far in the documentation and on forums hasn't helped (closest I found was this thread with the same issue but no solution). I can't find the exact Stackoverflow thread, but I did also try using an older version of the Squarespace server since I heard that an update ruined some things on Windows.
Any help is greatly appreciated.