Unable to install SPARK CLI

Hello, I'm a new user.

I installed node.js for my 64 bit Windows 7 rig

After entering npm install -g spark-cli into Node.js I get:

npm install -g spark-cli
npm should be run outside of the node repl, in your normal shell.
(Press Control-D to exit.)

After entering the same into the command line I get:

C:\Users\Stuart>npm install -g spark-cli

serialport@1.4.5 install C:\Users\Stuart\AppData\Roaming\npm\node_modules\spar
k-cli\node_modules\serialport
node-pre-gyp install --fallback-to-build

child_process: customFds option is deprecated, use stdio instead.

C:\Users\Stuart\AppData\Roaming\npm\node_modules\spark-cli\node_modules\serialpo
rt>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\....\node_m
odules\node-gyp\bin\node-gyp.js" rebuild --name=serialport --configuration=Relea
se --module_name=serialport --version=1.4.5 --major=1 --minor=4 --patch=5 --runt
ime=node --node_abi=node-v14 --platform=win32 --target_platform=win32 --arch=x64
--target_arch=x64 --module_main=./serialport --host=https://node-serialport.s3.
amazonaws.com/ --module_path=C:\Users\Stuart\AppData\Roaming\npm\node_modules\sp
ark-cli\node_modules\serialport\build\serialport\v1.4.5\Release\node-v14-win32-x
64 --remote_path=./serialport/v1.4.5/Release/ --package_name=node-v14-win32-x64.
tar.gz --staged_tarball=build\stage\serialport\v1.4.5\Release\node-v14-win32-x64
.tar.gz --hosted_path=https://node-serialport.s3.amazonaws.com/serialport/v1.4.5
/Release/ --hosted_tarball=https://node-serialport.s3.amazonaws.com/serialport/v
1.4.5/Release/node-v14-win32-x64.tar.gz
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYT
HON env variable.
gyp ERR! stack at failNoPython (C:\Program Files\nodejs\node_modules\npm\nod
e_modules\node-gyp\lib\configure.js:103:14)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node
-gyp\lib\configure.js:64:11
gyp ERR! stack at FSReqWrap.oncomplete (evalmachine.:99:15)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\Program Files\nodejs\node_modules\npm\node_modu
les\node-gyp\bin\node-gyp.js" "rebuild" "--name=serialport" "--configuration=
Release" "--module_name=serialport" "--version=1.4.5" "--major=1" "--minor=4" "-
-patch=5" "--runtime=node" "--node_abi=node-v14" "--platform=win32" "--target_pl
atform=win32" "--arch=x64" "--target_arch=x64" "--module_main=./serialport" "--h
ost=https://node-serialport.s3.amazonaws.com/" "--module_path=C:\Users\Stuart
\AppData\Roaming\npm\node_modules\spark-cli\node_modules\serialport\build
\serialport\v1.4.5\Release\node-v14-win32-x64" "--remote_path=./serialport/v
1.4.5/Release/" "--package_name=node-v14-win32-x64.tar.gz" "--staged_tarball=bui
ld\stage\serialport\v1.4.5\Release\node-v14-win32-x64.tar.gz" "--hosted_pat
h=https://node-serialport.s3.amazonaws.com/serialport/v1.4.5/Release/" "--hosted
_tarball=https://node-serialport.s3.amazonaws.com/serialport/v1.4.5/Release/node
-v14-win32-x64.tar.gz"
gyp ERR! cwd C:\Users\Stuart\AppData\Roaming\npm\node_modules\spark-cli\node_mod
ules\serialport
gyp ERR! node -v v0.12.0
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp.cmd rebuild --name=se
rialport --configuration=Release --module_name=serialport --version=1.4.5 --majo
r=1 --minor=4 --patch=5 --runtime=node --node_abi=node-v14 --platform=win32 --ta
rget_platform=win32 --arch=x64 --target_arch=x64 --module_main=./serialport --ho
st=https://node-serialport.s3.amazonaws.com/ --module_path=C:\Users\Stuart\AppDa
ta\Roaming\npm\node_modules\spark-cli\node_modules\serialport\build\serialport\v
1.4.5\Release\node-v14-win32-x64 --remote_path=./serialport/v1.4.5/Release/ --pa
ckage_name=node-v14-win32-x64.tar.gz --staged_tarball=build\stage\serialport\v1.
4.5\Release\node-v14-win32-x64.tar.gz --hosted_path=https://node-serialport.s3.a
mazonaws.com --hosted_tarball=https://node-serialport
.s3.amazonaws.com/serialport/v1.4.5/Release/node-v14-win32-x64.tar.gz' (1)
node-pre-gyp ERR! stack at ChildProcess. (C:\Users\Stuart\AppData
\Roaming\npm\node_modules\spark-cli\node_modules\serialport\node_modules\node-pr
e-gyp\lib\util\compile.js:76:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:110:17)
node-pre-gyp ERR! stack at maybeClose (child_process.js:1008:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (child_proces
s.js:1080:5)
node-pre-gyp ERR! System Windows_NT 6.1.7601
node-pre-gyp ERR! command "node" "C:\Users\Stuart\AppData\Roaming\npm\node
_modules\spark-cli\node_modules\serialport\node_modules\node-pre-gyp\bin\
node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\Stuart\AppData\Roaming\npm\node_modules\spark-cli
\node_modules\serialport
node-pre-gyp ERR! node -v v0.12.0
node-pre-gyp ERR! node-pre-gyp -v v0.5.19
node-pre-gyp ERR! not ok
Failed to execute 'node-gyp.cmd rebuild --name=serialport --configuration=Releas
e --module_name=serialport --version=1.4.5 --major=1 --minor=4 --patch=5 --runti
me=node --node_abi=node-v14 --platform=win32 --target_platform=win32 --arch=x64
--target_arch=x64 --module_main=./serialport --host=https://node-serialport.s3.a
mazonaws.com/ --module_path=C:\Users\Stuart\AppData\Roaming\npm\node_modules\spa
rk-cli\node_modules\serialport\build\serialport\v1.4.5\Release\node-v14-win32-x6
4 --remote_path=./serialport/v1.4.5/Release/ --package_name=node-v14-win32-x64.t
ar.gz --staged_tarball=build\stage\serialport\v1.4.5\Release\node-v14-win32-x64.
tar.gz --hosted_path=https://node-serialport.s3.amazonaws.com/serialport/v1.4.5/
Release/ --hosted_tarball=https://node-serialport.s3.amazonaws.com/serialport/v1
.4.5/Release/node-v14-win32-x64.tar.gz' (1)
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nodejs
\node_modules\npm\bin\npm-cli.js" "install" "-g" "spark-cli"
npm ERR! node v0.12.0
npm ERR! npm v2.5.1
npm ERR! code ELIFECYCLE

npm ERR! serialport@1.4.5 install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the serialport@1.4.5 install script 'node-pre-gyp install --f
allback-to-build'.
npm ERR! This is most likely a problem with the serialport 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 their info via:
npm ERR! npm owner ls serialport
npm ERR! There is likely additional logging output above.

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

C:\Users\Stuart>

Yikes!, Any suggestions?

Thanks, Stuart

There’s a patch for this and would be fixed once Spark-cli version is bumped if you can wait.

Otherwise, we can still do some workaround :slight_smile:

I can wait. What’s the approximate timeline?

Thanks, Stuart

you can follow the progress here! https://github.com/spark/spark-cli/issues/155

Should be anytime soon :smiley:

Thanks very much Kenneth.

It also mentions that python isn’t installed. Take a look at that again, might help as well.

2 Likes

It didn’t help, but thanks.