Windows version problem installing on Win 8.1


#1

Here is the Command Shell log:

C:\Windows\system32>choco install meteor --force
Chocolatey v0.10.8
Installing the following packages:
meteor
By installing you accept licenses for the packages.
meteor v0.0.2 already installed. Forcing reinstall of version ‘0.0.2’.
Please use upgrade if you meant to upgrade to a new version.
Progress: Downloading meteor 0.0.2… 100%

meteor v0.0.2 (forced) [Approved]
meteor package files install completed. Performing other installation steps.
The package meteor wants to run ‘chocolateyinstall.ps1’.
Note: If you don’t run this script, the installation will fail.
Note: To confirm automatically next time, use ‘-y’ or consider:
choco feature enable -n allowGlobalConfirmation
Do you want to run the script?([Y]es/[N]o/[P]rint): Y

Downloading meteor 64 bit
from 'https://packages.meteor.com/bootstrap-link?arch=os.windows.x86_64
Progress: 100% - Completed download of C:\Users\Marc\AppData\Local\Temp\chocolat
ey\meteor\0.0.2\meteor-bootstrap-os.windows.x86_64.tar.gz (171.74 MB).
Download of meteor-bootstrap-os.windows.x86_64.tar.gz (171.74 MB) completed.
Extracting C:\Users\Marc\AppData\Local\Temp\chocolatey\meteor\0.0.2\meteor-boots
trap-os.windows.x86_64.tar.gz to C:\Users\Marc\AppData\Local\Temp\chocolatey\met
eor\0.0.2…
C:\Users\Marc\AppData\Local\Temp\chocolatey\meteor\0.0.2
Extracting C:\Users\Marc\AppData\Local\Temp\chocolatey\meteor\0.0.2\meteor-boots
trap-os.windows.x86_64.tar to C:\Users\Marc\AppData\Local…
C:\Users\Marc\AppData\Local


Meteor has been installed!

To get started fast:

$ meteor create ~/my_cool_app
$ cd ~/my_cool_app
$ meteor

Or see the docs at:

https://docs.meteor.com


The install of meteor was successful.
Software installed to ‘C:\Users\Marc\AppData\Local’

Chocolatey installed 1/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

C:\Windows\system32>meteor create --bare f:/meteor-sites/test03
C:\Users\Marc\AppData\Local.meteor\packages\meteor-tool\1.6.1\mt-os.windows.x86
_64\dev_bundle\lib\node_modules\meteor-promise\promise_server.js:218
throw error;
^

Error: Error: Could not install npm dependencies for test-packages: Command fail
ed: C:\Windows\system32\cmd.exe /c C:\Users\Marc\AppData\Local.meteor\packages
meteor-tool\1.6.1\mt-os.windows.x86_64\dev_bundle\bin\npm.cmd install --producti
on=false
npm ERR! code ENOGIT
npm ERR! No git binary found in $PATH
npm ERR!
npm ERR! Failed using git.
npm ERR! Please check if you have git installed and in your PATH.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Marc\AppData\Roaming\npm-cache_logs\2018-02-27T02_49_26_3
98Z-debug.log
npm ERR! code ENOGIT
npm ERR! No git binary found in $PATH
npm ERR!
npm ERR! Failed using git.
npm ERR! Please check if you have git installed and in your PATH.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Marc\AppData\Roaming\npm-cache_logs\2018-02-27T02_49_26_3
98Z-debug.log

at Object.error (C:\tools\utils\buildmessage.js:430:11)
at C:\tools\cli\default-npm-deps.js:36:20
at C:\tools\utils\buildmessage.js:334:18
at exports.EnvironmentVariable.withValue (C:\tools\utils\fiber-helpers.js:89

:14)
at C:\tools\utils\buildmessage.js:333:36
at exports.EnvironmentVariable.withValue (C:\tools\utils\fiber-helpers.js:89
:14)
at Object.enterJob (C:\tools\utils\buildmessage.js:324:26)
at Object.install (C:\tools\cli\default-npm-deps.js:27:27)
at Command.func (C:\tools\cli\commands.js:801:36)
at C:\tools\cli\main.js:1523:15

C:\Windows\system32>


#2

npm requires that git is installed and available on your path. Have you installed git for windows?


#3

I have a kind of Github desktop app and a Git shell.

I do not know how to add a path and what file to point at.


#4

Then you might need to re-install git-for-windows

Or try one of these approaches:


#5

I set the path. But the install is stuck at an extraction step:

C:\Windows\system32>choco install meteor
Chocolatey v0.10.8
Installing the following packages:
meteor
By installing you accept licenses for the packages.
meteor v0.0.2 already installed.
Use --force to reinstall, specify a version to install, or try upgrade.

Chocolatey installed 0/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Warnings:

  • meteor - meteor v0.0.2 already installed.
    Use --force to reinstall, specify a version to install, or try upgrade.

C:\Windows\system32>choco install meteor --force
Chocolatey v0.10.8
Installing the following packages:
meteor
By installing you accept licenses for the packages.
meteor v0.0.2 already installed. Forcing reinstall of version ‘0.0.2’.
Please use upgrade if you meant to upgrade to a new version.
Progress: Downloading meteor 0.0.2… 100%

meteor v0.0.2 (forced) [Approved]
meteor package files install completed. Performing other installation steps.
The package meteor wants to run ‘chocolateyinstall.ps1’.
Note: If you don’t run this script, the installation will fail.
Note: To confirm automatically next time, use ‘-y’ or consider:
choco feature enable -n allowGlobalConfirmation
Do you want to run the script?([Y]es/[N]o/[P]rint): Y

Downloading meteor 64 bit
from 'https://packages.meteor.com/bootstrap-link?arch=os.windows.x86_64
Progress: 100% - Completed download of C:\Users\Marc\AppData\Local\Temp\chocolat
ey\meteor\0.0.2\meteor-bootstrap-os.windows.x86_64.tar.gz (171.74 MB).
Download of meteor-bootstrap-os.windows.x86_64.tar.gz (171.74 MB) completed.
Extracting C:\Users\Marc\AppData\Local\Temp\chocolatey\meteor\0.0.2\meteor-boots
trap-os.windows.x86_64.tar.gz to C:\Users\Marc\AppData\Local\Temp\chocolatey\met
eor\0.0.2…
C:\Users\Marc\AppData\Local\Temp\chocolatey\meteor\0.0.2
Extracting C:\Users\Marc\AppData\Local\Temp\chocolatey\meteor\0.0.2\meteor-boots
trap-os.windows.x86_64.tar to C:\Users\Marc\AppData\Local…

//Later I clicked on the shell and got it:

C:\Users\Marc\AppData\Local
Chocolatey timed out waiting for the command to finish. The timeout
specified (or the default value) was ‘2700’ seconds. Perhaps try a
higher --execution-timeout? See choco -h for details.
The install of meteor was NOT successful.
Error while running ‘C:\ProgramData\chocolatey\lib\meteor\tools\chocolateyinstal
l.ps1’.
See log for details.

I’m not sure where to find such log.


#6

Try deleting “C:\Users\Marc\AppData\Local\ .meteor”

Then open powershell as administrator and run choco install meteor --force


#7

Also disable windows defender for the install

99% of Windows issues with Meteor are caused by anti-virus slowing down file operations, as there are A LOT of files involved in node apps.

I’ve added exclusions to Windows Defender for node.exe, 7z.exe, choco.exe and the meteor folder at C:\Users\%USERNAME%\AppData\Local\.meteor\

This speeds up installs, updates, and builds by about 500%


#8

@zayco and @coagmano, your advices were partly succesful.
.meteor was including a deep folder structure and about 200,000 files.
Windows was complaining about too long file names because deep structure. If it is not due to multiple installs, would it be possible that some real legitimate folder structures are too long for Windows? (design problem)

I have been able to install meteor, no problem.
Even clone a github Akryum’s meteor project.

But when I create a small meteor project with the following line, here is what I get:

F:\msites>meteor create --bare test03
{ Error: EPERM: operation not permitted, unlink 'C:\Users\Marc\AppData\Local\Tem
p\mt-15skce5.ryvf\npm\node_modules’
errno: -4048,
code: ‘EPERM’,
syscall: ‘unlink’,
path: ‘C:\Users\Marc\AppData\Local\Temp\mt-15skce5.ryvf\npm\node_modul
es’ }
C:\Users\Marc\AppData\Local.meteor\packages\meteor-tool\1.6.1\mt-os.windows.x86
_64\dev_bundle\lib\node_modules\meteor-promise\promise_server.js:218
throw error;
^

Error: Error: Could not install npm dependencies for test-packages: Command fail
ed: C:\Windows\system32\cmd.exe /c C:\Users\Marc\AppData\Local.meteor\packages
meteor-tool\1.6.1\mt-os.windows.x86_64\dev_bundle\bin\npm.cmd install --producti
on=false
npm ERR! Error while executing:
npm ERR! C:\Users\Marc\AppData\Local\GitHub\PortableGit_f02737a78695063deace08e9
6d5042710d3e32db\cmd\git.EXE ls-remote -h -t https://github.com/meteor/readable-
stream.git
npm ERR!
npm ERR! fatal: Unable to find remote helper for 'https’
npm ERR!
npm ERR! exited with error code: 128

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Marc\AppData\Roaming\npm-cache_logs\2018-02-27T22_13_41_8
01Z-debug.log
npm ERR! Error while executing:
npm ERR! C:\Users\Marc\AppData\Local\GitHub\PortableGit_f02737a78695063deace08e9
6d5042710d3e32db\cmd\git.EXE ls-remote -h -t https://github.com/meteor/readable-
stream.git
npm ERR!
npm ERR! fatal: Unable to find remote helper for 'https’
npm ERR!
npm ERR! exited with error code: 128

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Marc\AppData\Roaming\npm-cache_logs\2018-02-27T22_13_41_8
01Z-debug.log

at Object.error (C:\tools\utils\buildmessage.js:430:11)
at C:\tools\cli\default-npm-deps.js:36:20
at C:\tools\utils\buildmessage.js:334:18
at exports.EnvironmentVariable.withValue (C:\tools\utils\fiber-helpers.js:89

:14)
at C:\tools\utils\buildmessage.js:333:36
at exports.EnvironmentVariable.withValue (C:\tools\utils\fiber-helpers.js:89
:14)
at Object.enterJob (C:\tools\utils\buildmessage.js:324:26)
at Object.install (C:\tools\cli\default-npm-deps.js:27:27)
at Command.func (C:\tools\cli\commands.js:801:36)
at C:\tools\cli\main.js:1523:15


#9

Those EPERM errors are the bane of windows developers.
It’s usually fixed by deleting the folder that it’s complaining about.

Then the error: fatal: Unable to find remote helper for 'https’ looks like another git issue, I’ve only gotten it a couple of times and fixed it with a re-install of git-for-windows


#10

Could you try installing https://git-scm.com? And make sure to check “add git to environment variables”

Also. After cloning or creating a new project it may be wise to run meteor npm install in an elevated command prompt