Skip to content
This repository was archived by the owner on Jul 15, 2022. It is now read-only.
This repository was archived by the owner on Jul 15, 2022. It is now read-only.

Windows Setup Instructions #52

@ccoenen

Description

@ccoenen

Hi everyone!

I just tried to install site.js, and I failed a couple of times in (possibly) interesting ways. I would like to post them here in case other failed in similar ways. And if this is a common thing, maybe the setup instructions should be altered slightly.

What eventually worked

  • Windows Terminal (as mentioned in the docs)
  • PowerShell (as mentioned in the docs)
  • starting the above with administrative privileges (missing from the docs, and without this, the installer appeared to work, but did not actually work!)
    start menu screenshot how to start with administrative privileges

When I did the above, site would work as a command. Setup would look like this:

terminal screenshot, contents posted below

plain text of the above image
PS C:\Users\username> iex(iwr -UseBasicParsing https://sitejs.org/install.txt).Content                                  

Installing Site.js using administrator privileges...

  • Downloading Site.js 20210819115729 (17.3.1/9522675)...
  • Extracting binary...
  • Installing binary...
  • Adding to system path...
  • Done!

PS C:\Users\username>

What did not work; things I tried before

via node.js

(also see #51)
setting up from Node.js gave me a slightly older 16.0.1, but the interesting part here is, that it cannot be run with site, but only with site.js.cms - at least in my configuration.

via install method in regular Powershell

This LOOKS like it runs fine, but it neither creates a C:\Program Files\site.js directory, nor does it work. Yes, I was asked for elevated permissions by my system, and of course I accepted them.

screenshot of regular powershell, plaint text posted below

plain text of the above image
PS C:\Users\username> iex(iwr -UseBasicParsing https://sitejs.org/install.txt).Content                                                                                                                                                           📡 Downloading Site.js 20210819115729 (17.3.1/9522675)…                                                                 
📦 Installing…                                                                                                          
🎉 Done!                                                                                                                                                                                                                                       

PS C:\Users\amenthes> site
site : Die Benennung "site" wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines
ausführbaren Programms erkannt. Überprüfen Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist (sofern
enthalten), und wiederholen Sie den Vorgang.
In Zeile:1 Zeichen:1

  • site
  • CategoryInfo : ObjectNotFound: (site:String) [], CommandNotFoundException
  • FullyQualifiedErrorId : CommandNotFoundException PS C:\Users\username> site.js
    site.js : Die Benennung "site.js" wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines
    ausführbaren Programms erkannt. Überprüfen Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist (sofern
    enthalten), und wiederholen Sie den Vorgang.
    In Zeile:1 Zeichen:1
  • site.js
  • CategoryInfo : ObjectNotFound: (site.js:String) [], CommandNotFoundException
  • FullyQualifiedErrorId : CommandNotFoundException PS C:\Users\username> site.js.cmd
    site.js.cmd : Die Benennung "site.js.cmd" wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder
    eines ausführbaren Programms erkannt. Überprüfen Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist (sofern
    enthalten), und wiederholen Sie den Vorgang.
    In Zeile:1 Zeichen:1
  • site.js.cmd
  • CategoryInfo : ObjectNotFound: (site.js.cmd:String) [], CommandNotFoundException
  • FullyQualifiedErrorId : CommandNotFoundException PS C:\Users\username>

(the same thing happens if one closes and reopens the powershell, I tried this because of possibly missing ENV-Vars)

via install method in Terminal WITHOUT ADMINISTRATIVE PRIVILEGES

This also looks like it ran fine, but did not create C:\Program Files\site.js either. Yes, in this case I also got asked for elevated permissions by my system, and of course I accepted them.

screenshot of Windows Terminal, full text transcribed below

plain text of the above image
Windows PowerShell
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.

📡 Downloading Site.js 20210819115729 (17.3.1/9522675)…
📦 Installing…
🎉 Done!

PS C:\Users\username> site
site : Die Benennung "site" wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines
ausführbaren Programms erkannt. Überprüfen Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist (sofern
enthalten), und wiederholen Sie den Vorgang.
In Zeile:1 Zeichen:1

  • site
  •   + CategoryInfo          : ObjectNotFound: (site:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions