preface

One of the hottest topics in the front-end community lately has been the deno 1.0 release, and enough has been written about the differences and pros and cons between Deno and NodeJS that I won’t repeat here. In line with the new technology sensitivity (denO has been out for so long also new technology…) Taking advantage of the 1.0 release to try it out, Windows installation still has some issues.

Under Windows problem

  • If you are running Windows 7 or have problems using iWR commands on Windows (xp give up, really stop using it).
  • The recommendations are based on official guidance:iwr https://deno.land/x/install/install.ps1 -useb -outf install.ps1; . \ install. Ps1 v0.38.0Before this command.
  • First, find PowerShell in your program – attachments and execute it first$PSVersionTable.PSVersionCheck your version number where “Major” is the version number of PowerShell currently installed.
  • If you find that your version number is lower than 3, you will get an error if you copy the official command line. The reason is simple: Download the iWR alias is only supported in PowerShell3 and later. Your computer doesn’t work at the moment.
  • Therefore, I need to upgrade my PowerShell first, because it comes with Microsoft Framework, here I download from Microsoft official website: Windows Management Framework 5.1

Portal: www.microsoft.com/en-us/downl…

According to the corresponding version number requirements, after the upgrade, restart the computer.

  • When we install deno, we’ll actually see that it’s just an EXE file in the directoryC:\Users\Administrator\.deno\binIf the command line fails to execute, you need to add environment variables, very simple, copy this path to the path, if you have any questions, please leave a comment below! Finally, run the Hello World code symbolically

  • In addition, if you feel trouble, you can go to install deno Windows, find deno.exe directly copy over it, path environment variable with a few minutes, save a lot of time waiting for download, taste a fresh ~ why the whole so trouble, you say not ~