node.js Setup Wizard ended prematurely

前端 未结 16 1677
陌清茗
陌清茗 2020-11-29 08:21

I can\'t install node.js (0.8.9). I\'m doing it via Setup Wizard and each time at the end of installation I get message \"Node.js Setup Wizard ended prematurely\".

W

相关标签:
16条回答
  • 2020-11-29 08:38

    Installing without the Performance counters feature made the installation work. All credits go to joaocgreis for the comment on the NodeJS GitHub issue tracker.

    0 讨论(0)
  • 2020-11-29 08:39

    For version:12.16.1 using Windows 10 I tired many different ways but didn't work. so I do the following ways to make it work.

    1. Install the latest version
    2. Remain the setup file inside /downloads folder
    3. Open cmd (Run as Administrator)
    4. Run node.js msi file using this command -> msiexec /a "../download/node-v12.16.1-x64.msi"
    5. Install it without any problem

    After installation open cmd

    type > node -v

    v12.16.1

    0 讨论(0)
  • 2020-11-29 08:40

    I saw the same error because I was trying to install a x86.msi to a 64-bit Win7. Then I changed to the correct x64.msi. It still does not work. I guess it might be permission issue, so I copy the .msi to the C:\Program Files, and install from there, and it succeed.

    0 讨论(0)
  • 2020-11-29 08:43

    I had this error on Windows 7 x64 (node-v0.10.28-x64.msi) and was able to install by choosing not to install the "Online documentation shortcuts" during the Custom Setup part of the installation. Select "Entire feature will be unavailable".

    enter image description here

    None of the other solutions worked for me, but I did install as admin and log the output. The logs were not helpful (reported a FatalError, not much else).

    Credit where credit's due - I found the answer here: https://github.com/joyent/node/issues/4516

    0 讨论(0)
  • 2020-11-29 08:43

    I did not figure out what was the problem, I just copied installed version and update system variable PATH with path to my node.js and it worked well.

    0 讨论(0)
  • 2020-11-29 08:45

    This may help someone in the future. I got a similar message from the installer and found that I could go to command prompt and run the MSI with a command line option to make it create a log file (like node-v0.10.24-x64.msi /lxv C:\Logs\Nodejs.log), where you can choose what the log is called and where it goes.

    In my case, we are running in an Active Directory domain environment and some of our folders that are normally local are redirected to a network share so they are always there no matter what computer we log into. Mostly for the benefit of our "My Documents" folder.

    When looking through the log I found the actual error that I was getting:

    • WixCreateInternetShortcuts: Error 0x80070005: failed to save shortcut '\ad.local\system\users\<myAcctName>\Start Menu\Programs\Node.js\Node.js website.url'
    • WixCreateInternetShortcuts: Error 0x80070005: failed to create Internet shortcut
    • CustomAction WixCreateInternetShortcuts returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox).

    Resolution (for me)

    Oddly enough, just running an admin escalated command prompt first, and then running the MSI lets it install correctly.

    I think the difference is that when you double-click on an MSI and it escalates, it runs as TrustedInstaller and while that account has access to everything on my box, it does not have network access. When I run an escalated command prompt, it is running as me, but already escalated (the MSI never needs to ask for escalation), so it works.

    Final Note:

    As of 7/22/2015, the node.js team has finally tracked down the issue with the installer and from 0.12.8 and forward this should be no longer an issue for us. I tested an early version of the installer for them to make sure it worked for me and there were no hitches with the install.

    https://github.com/joyent/node/issues/5849#issuecomment-123905214

    As of this writing, 7/30/2015, the current version was still 0.12.7, so x.8 has not yet been rolled out to the masses I guess.

    0 讨论(0)
提交回复
热议问题