Reaction commerce Installation error on Windows 7 [SOLVED]


#1

Hi

Being a newbie, I installed Reaction Commerce on Mac os 10.10.5 & it worked like breeze without any issue.

I am trying to install the same on my Windows 7 machine. I did exactly as per the documentation but every time I tried it would throw the following exceptions

What I did was:
I installed, nodeJS, Meteor, MongoDB followed by
npm i -g windows-build-tools
npm i -g reaction-cli
reaction init fservice
cd fservice

When I run “reaction”

then I get the following message

Can anyone please tell me the thing that I am missing…

Thanking in advance.
++++++++++++++++++++++++++++++++++++++++++++++++++++++

C:\Users\User\fservice>reaction

Using settings file at settings/dev.settings.json

Setting up plugin imports…

[[[[[ C:\Users\User\fservice ]]]]]

=> Started proxy.
=> A patch (Meteor 1.4.2.3) for your current release is available!
Update this project now with ‘meteor update --patch’.
=> Started MongoDB.
=> Errors prevented startup:

While loading momentjs:moment@2.15.2…:
error: Command failed:
C:\Users\User\AppData\Local.meteor\packages\meteor-tool\1.4.2\mt-os.windows.
x86_32\dev_bundle\bin\npm.cmd
rebuild --update-binary
node-pre-gyp ERR! Tried to download:
https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.14/fse-v1.0.14-node
-v46-win32-ia32.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for fsevents@1.0.14 and
node@4.6.1 (node-v46 ABI) (falling back to source compile with
node-gyp)
gyp ERR! configure error
gyp ERR! stack Error: Can’t find Python executable
"C:\Users\User\AppData\Local.meteor\packages\meteor-tool\1.4.2\mt-os.windows
.x86_32\dev_bundle\python\python.exe",
you can set the PYTHON env variable.
gyp ERR! stack at failNoPython
(C:\Users\User\AppData\Local.meteor\packages\meteor-tool\1.4.2\mt-os.windows
.x86_32\dev_bundle\lib\node_modules\node-gyp\lib\configure.js:449:14)
gyp ERR! stack at
C:\Users\User\AppData\Local.meteor\packages\meteor-tool\1.4.2\mt-os.windows.
x86_32\dev_bundle\lib\node_modules\node-gyp\lib\configure.js:404:11
gyp ERR! stack at
C:\Users\User\AppData\Local.meteor\packages\meteor-tool\1.4.2\mt-os.windows.
x86_32\dev_bundle\lib\node_modules\graceful-fs\polyfills.js:264:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:82:15)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command
"C:\Users\User\AppData\Local\.meteor\packages\meteor-tool\1.4.2\mt-o
s.windows.x86_32\dev_bundle\bin\node.exe"
“C:\Users\User\AppData\Local\.meteor\packages\meteor-tool\1.4.2\mt-o
s.windows.x86_32\dev_bundle\lib\node_modules\node-gyp\bin\node-gyp.js”
“configure” “–fallback-to-build”
"–module=C:\Users\User\AppData\Local\Temp\mt-1gktja8\npm\node_module
s\.temp-m31qwz\node_modules\fsevents\lib\binding\Release\node-v46-win32-i
a32\fse.node"
"–module_name=fse"
"–module_path=C:\Users\User\AppData\Local\Temp\mt-1gktja8\npm\node_m
odules\.temp-m31qwz\node_modules\fsevents\lib\binding\Release\node-v46-wi
n32-ia32"
gyp ERR! cwd
C:\Users\User\AppData\Local\Temp\mt-1gktja8\npm\node_modules.temp-m31qwz\nod
e_modules\fsevents
gyp ERR! node -v v4.6.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute
’C:\Users\User\AppData\Local.meteor\packages\meteor-tool\1.4.2\mt-os.windows
.x86_32\dev_bundle\bin\node.exe
C:\Users\User\AppData\Local.meteor\packages\meteor-tool\1.4.2\mt-os.windows.
x86_32\dev_bundle\lib\node_modules\node-gyp\bin\node-gyp.js
configure --fallback-to-build
–module=C:\Users\User\AppData\Local\Temp\mt-1gktja8\npm\node_modules.temp-m
31qwz\node_modules\fsevents\lib\binding\Release\node-v46-win32-ia32\fse.node
–module_name=fse
–module_path=C:\Users\User\AppData\Local\Temp\mt-1gktja8\npm\node_modules.t
emp-m31qwz\node_modules\fsevents\lib\binding\Release\node-v46-win32-ia32’
(1)
node-pre-gyp ERR! stack at ChildProcess.
(C:\Users\User\AppData\Local\Temp\mt-1gktja8\npm\node_modules\fsevents\node_m
odules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:87:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:172:7)
node-pre-gyp ERR! stack at maybeClose
(internal/child_process.js:829:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit
(internal/child_process.js:211:5)
node-pre-gyp ERR! System Windows_NT 6.1.7601
node-pre-gyp ERR! command
"C:\Users\User\AppData\Local\.meteor\packages\meteor-tool\1.4.2\mt-o
s.windows.x86_32\dev_bundle\bin\node.exe"
“C:\Users\User\AppData\Local\Temp\mt-1gktja8\npm\node_modules\.temp-
m31qwz\node_modules\fsevents\node_modules\node-pre-gyp\bin\node-pre-gyp”
“install” "–fallback-to-build"
node-pre-gyp ERR! cwd
C:\Users\User\AppData\Local\Temp\mt-1gktja8\npm\node_modules.temp-m31qwz\nod
e_modules\fsevents
node-pre-gyp ERR! node -v v4.6.1
node-pre-gyp ERR! node-pre-gyp -v v0.6.29
node-pre-gyp ERR! not ok

npm ERR! Windows_NT 6.1.7601
npm ERR! argv
"C:\Users\User\AppData\Local\.meteor\packages\meteor-tool\1.4.2\mt-o
s.windows.x86_32\dev_bundle\bin\node.exe"
“C:\Users\User\AppData\Local\.meteor\packages\meteor-tool\1.4.2\mt-o
s.windows.x86_32\dev_bundle\lib\node_modules\npm\bin\npm-cli.js”
“rebuild” "–update-binary"
npm ERR! node v4.6.1
npm ERR! npm v3.10.9
npm ERR! code ELIFECYCLE
npm ERR! fsevents@1.0.14 install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fsevents@1.0.14 install script ‘node-pre-gyp
install --fallback-to-build’.
npm ERR! Make sure you have the latest version of node.js and npm
installed.
npm ERR! If you do, this is most likely a problem with the fsevents
package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this
project with:
npm ERR! npm bugs fsevents
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls fsevents
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!
C:\Users\User\AppData\Local\Temp\mt-1gktja8\npm\node_modules.temp-m31qwz\npm
-debug.log
node-pre-gyp ERR! Tried to download:
https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.14/fse-v1.0.14-node
-v46-win32-ia32.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for fsevents@1.0.14 and
node@4.6.1 (node-v46 ABI) (falling back to source compile with
node-gyp)
gyp ERR! configure error
gyp ERR! stack Error: Can’t find Python executable
"C:\Users\User\AppData\Local.meteor\packages\meteor-tool\1.4.2\mt-os.windows
.x86_32\dev_bundle\python\python.exe",
you can set the PYTHON env variable.
gyp ERR! stack at failNoPython
(C:\Users\User\AppData\Local.meteor\packages\meteor-tool\1.4.2\mt-os.windows
.x86_32\dev_bundle\lib\node_modules\node-gyp\lib\configure.js:449:14)
gyp ERR! stack at
C:\Users\User\AppData\Local.meteor\packages\meteor-tool\1.4.2\mt-os.windows.
x86_32\dev_bundle\lib\node_modules\node-gyp\lib\configure.js:404:11
gyp ERR! stack at
C:\Users\User\AppData\Local.meteor\packages\meteor-tool\1.4.2\mt-os.windows.
x86_32\dev_bundle\lib\node_modules\graceful-fs\polyfills.js:264:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:82:15)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command
"C:\Users\User\AppData\Local\.meteor\packages\meteor-tool\1.4.2\mt-o
s.windows.x86_32\dev_bundle\bin\node.exe"
“C:\Users\User\AppData\Local\.meteor\packages\meteor-tool\1.4.2\mt-o
s.windows.x86_32\dev_bundle\lib\node_modules\node-gyp\bin\node-gyp.js”
“configure” “–fallback-to-build”
"–module=C:\Users\User\AppData\Local\Temp\mt-1gktja8\npm\node_module
s\.temp-m31qwz\node_modules\fsevents\lib\binding\Release\node-v46-win32-i
a32\fse.node"
"–module_name=fse"
"–module_path=C:\Users\User\AppData\Local\Temp\mt-1gktja8\npm\node_m
odules\.temp-m31qwz\node_modules\fsevents\lib\binding\Release\node-v46-wi
n32-ia32"
gyp ERR! cwd
C:\Users\User\AppData\Local\Temp\mt-1gktja8\npm\node_modules.temp-m31qwz\nod
e_modules\fsevents
gyp ERR! node -v v4.6.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute
’C:\Users\User\AppData\Local.meteor\packages\meteor-tool\1.4.2\mt-os.windows
.x86_32\dev_bundle\bin\node.exe
C:\Users\User\AppData\Local.meteor\packages\meteor-tool\1.4.2\mt-os.windows.
x86_32\dev_bundle\lib\node_modules\node-gyp\bin\node-gyp.js
configure --fallback-to-build
–module=C:\Users\User\AppData\Local\Temp\mt-1gktja8\npm\node_modules.temp-m
31qwz\node_modules\fsevents\lib\binding\Release\node-v46-win32-ia32\fse.node
–module_name=fse
–module_path=C:\Users\User\AppData\Local\Temp\mt-1gktja8\npm\node_modules.t
emp-m31qwz\node_modules\fsevents\lib\binding\Release\node-v46-win32-ia32’
(1)
node-pre-gyp ERR! stack at ChildProcess.
(C:\Users\User\AppData\Local\Temp\mt-1gktja8\npm\node_modules\fsevents\node_m
odules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:87:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:172:7)
node-pre-gyp ERR! stack at maybeClose
(internal/child_process.js:829:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit
(internal/child_process.js:211:5)
node-pre-gyp ERR! System Windows_NT 6.1.7601
node-pre-gyp ERR! command
"C:\Users\User\AppData\Local\.meteor\packages\meteor-tool\1.4.2\mt-o
s.windows.x86_32\dev_bundle\bin\node.exe"
“C:\Users\User\AppData\Local\Temp\mt-1gktja8\npm\node_modules\.temp-
m31qwz\node_modules\fsevents\node_modules\node-pre-gyp\bin\node-pre-gyp”
“install” "–fallback-to-build"
node-pre-gyp ERR! cwd
C:\Users\User\AppData\Local\Temp\mt-1gktja8\npm\node_modules.temp-m31qwz\nod
e_modules\fsevents
node-pre-gyp ERR! node -v v4.6.1
node-pre-gyp ERR! node-pre-gyp -v v0.6.29
node-pre-gyp ERR! not ok

npm ERR! Windows_NT 6.1.7601
npm ERR! argv
"C:\Users\User\AppData\Local\.meteor\packages\meteor-tool\1.4.2\mt-o
s.windows.x86_32\dev_bundle\bin\node.exe"
“C:\Users\User\AppData\Local\.meteor\packages\meteor-tool\1.4.2\mt-o
s.windows.x86_32\dev_bundle\lib\node_modules\npm\bin\npm-cli.js”
“rebuild” "–update-binary"
npm ERR! node v4.6.1
npm ERR! npm v3.10.9
npm ERR! code ELIFECYCLE
npm ERR! fsevents@1.0.14 install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fsevents@1.0.14 install script ‘node-pre-gyp
install --fallback-to-build’.
npm ERR! Make sure you have the latest version of node.js and npm
installed.
npm ERR! If you do, this is most likely a problem with the fsevents
package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this
project with:
npm ERR! npm bugs fsevents
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls fsevents
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!
C:\Users\User\AppData\Local\Temp\mt-1gktja8\npm\node_modules.temp-m31qwz\npm
-debug.log

=> Your application has errors. Waiting for file change.


#2

This should be fixed on the development branch. Can you try this?..

reaction init -b development

#3

Hi

Sure. Let me try this and get back on this.

Thank you for your reply.


#4

I have the exact same problem. I downloaded 0.17.1 version and ran reaction run. Got the exact same error as above.

I then copied the latest from master in to my reaction folder and ran reaction run again.

Still the error persists.

reaction -v
Node: 6.9.1
NPM: 3.10.8
Reaction: 0.17.1
Reaction CLI: 0.5.1


#5

Hi Jeremy

As per your suggestion, I tried the following

reaction init -b development and IT WORKED !!! for me.

Thanks


npm ERR! Windows_NT 6.1.7601
npm ERR! argv “C:\Users\User\AppData\Local\.meteor\packages\meteor-tool\
1.4.2_3\mt-os.windows.x86_32\dev_bundle\bin\node.exe” “C:\Users\User\AppD
ata\Local\.meteor\packages\meteor-tool\1.4.2_3\mt-os.windows.x86_32\dev_b
undle\lib\node_modules\npm\bin\npm-cli.js” "install"
npm ERR! node v4.6.2
npm ERR! npm v3.10.9
npm ERR! code ELIFECYCLE

npm ERR! bcrypt@0.8.7 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bcrypt@0.8.7 install script ‘node-gyp rebuild’.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the bcrypt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs bcrypt
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls bcrypt
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\User\reaction\npm-debug.log

Reaction successfully installed!

To start your Reaction instance, just run:

cd reaction
reaction

C:\Users\User\reaction>reaction

Using settings file at settings/dev.settings.json

Setting up plugin imports…

[[[[[ C:\Users\User\reaction ]]]]]

=> Started proxy.
=> Started MongoDB.
cfs:gridfs: updating npm dependencies – mongodb, gridfs-stream…
Note: you are using a pure-JavaScript implementation of bcrypt.
While this implementation will work correctly, it is known to be
approximately three times slower than the native implementation.
In order to use the native implementation instead, run

meteor npm install --save bcrypt

in the root directory of your application.
06:24:07.844Z INFO Reaction: Load default data from /private/data/
06:24:09.168Z INFO Reaction: JobServer started
06:24:09.174Z WARN Reaction: Skipped loading settings from reaction.json.
06:24:14.358Z INFO Reaction: Starting createDefaultAdminUser
06:24:14.544Z INFO Reaction: Using meteor --settings to create admin user
06:24:17.213Z WARN Reaction:


IMPORTANT! DEFAULT ADMIN INFO

EMAIL/LOGIN: cphbzg9i@localhost

PASSWORD: vHSAMoKw

06:24:17.263Z INFO Reaction: Migrating from version 0 -> 1
06:24:17.263Z INFO Reaction: Running up() on version 1
06:24:17.390Z INFO Reaction: Finished migrating.
06:24:17.394Z INFO Reaction: Registering product Basic Reaction Product
06:24:17.419Z INFO Reaction: inserting 15 new inventory items for 6qiqPwBkeJdtd
Qc4G
06:24:17.427Z INFO Reaction: inserting 19 new inventory items for SMr4rhDFnYvFM
tDTX
06:24:17.434Z INFO Reaction: inserting 42 new inventory items for CJoRBm9vRrorc
9mxZ
06:24:17.445Z INFO Reaction: Registering product Basic Example Variant
06:24:17.456Z INFO Reaction: Registering product Option 1 - Red Dwarf
06:24:17.465Z INFO Reaction: Registering product Option 2 - Green Tomato
06:24:17.493Z WARN Reaction: OpenExchangeRates API not configured. Not adding f
etchRates job
06:24:17.496Z WARN Reaction: OpenExchangeRates API not configured. Not adding f
lushRates job
06:24:17.522Z INFO Reaction: Reaction.init() has run
06:24:17.522Z INFO Reaction: Reaction initialization finished.
=> Started your app.

=> App running at: http://localhost:3000/
Type Control-C twice to stop.

06:24:37.373Z INFO Reaction: ProductSearch collection (re)built successfully.