[SOLVED]CLI installation on Windows MUST be easier than this......PLEASE?

OK,

So here we are - still - I rebuilt my VS2013 environment, and still get the same old error. Looks (to me) like a bug in the compiler commands....WHY do we have to rebuild on the target machine anyway :open_mouth: - surely we would ALL be way better off with pre-built binaries ????. Any way - looking at the output - there is now a section (in RED) which complains (wrongly IMO) about msbuild V140 not being installed. It says

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.t
argets(64,5): error MSB8020: The build tools for v140 (Platform Toolset = 'v140
') cannot be found. To build using the v140 build tools, please install v140 bu
ild tools. Alternatively, you may upgrade to the current Visual Studio tools b
y selecting the Project menu or right-click the solution, and then selecting "U
pgrade Solution...". [C:\Users\Graham\AppData\Roaming\npm\node_modules\particle
-cli\node_modules\serialport\build\serialport.vcxproj]

Well - actually there IS a folder called V140 but this diag print suggests that the command is being run from the V120 folder - which could be WHY it can't run V140 ???.

So I did what it says and tried to build from the suggested folder - BUT - that folder ([C:\Users\Graham\AppData\Roaming\npm\node_modules) no longer exists - because its been rolled back maybe :-O. All I have in the npm folder is an 'etc.' folder :-O.

So - do I need o contact the 'serialport' coder (as suggested) :open_mouth: - or is this actually a problem in the CLI build process.

If the 'automated' build doesn't work, can I not simply download the solution and rebuild withing VS2013 ????.

Sorry but this really is a nightmare :-((.

See below for npm output.....

Thanks hopefully once more :wink:

BR
Graham

C:\Windows\system32>npm install -g particle-cli
|
serialport@2.0.4 install C:\Users\Graham\AppData\Roaming\npm\node_modules\part
icle-cli\node_modules\serialport
node-pre-gyp install --fallback-to-build

C:\Users\Graham\AppData\Roaming\npm\node_modules\particle-cli\node_modules\seria
lport>if not defined npm_config_node_gyp (node "C:\Program Files (x86)\nodejs\no
de_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" cl
ean ) else (node clean )

C:\Users\Graham\AppData\Roaming\npm\node_modules\particle-cli\node_modules\seria
lport>if not defined npm_config_node_gyp (node "C:\Program Files (x86)\nodejs\no
de_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" co
nfigure --fallback-to-build --module=C:\Users\Graham\AppData\Roaming\npm\node_mo
dules\particle-cli\node_modules\serialport\build\Release\node-v14-win32-ia32\ser
ialport.node --module_name=serialport --module_path=C:\Users\Graham\AppData\Roam
ing\npm\node_modules\particle-cli\node_modules\serialport\build\Release\node-v14
-win32-ia32 ) else (node configure --fallback-to-build --module=C:\Users\Graha
m\AppData\Roaming\npm\node_modules\particle-cli\node_modules\serialport\build\Re
lease\node-v14-win32-ia32\serialport.node --module_name=serialport --module_path
=C:\Users\Graham\AppData\Roaming\npm\node_modules\particle-cli\node_modules\seri
alport\build\Release\node-v14-win32-ia32 )

C:\Users\Graham\AppData\Roaming\npm\node_modules\particle-cli\node_modules\seria
lport>if not defined npm_config_node_gyp (node "C:\Program Files (x86)\nodejs\no
de_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" bu
ild --fallback-to-build --module=C:\Users\Graham\AppData\Roaming\npm\node_module
s\particle-cli\node_modules\serialport\build\Release\node-v14-win32-ia32\serialp
ort.node --module_name=serialport --module_path=C:\Users\Graham\AppData\Roaming
npm\node_modules\particle-cli\node_modules\serialport\build\Release\node-v14-win
32-ia32 ) else (node build --fallback-to-build --module=C:\Users\Graham\AppDat
a\Roaming\npm\node_modules\particle-cli\node_modules\serialport\build\Release\no
de-v14-win32-ia32\serialport.node --module_name=serialport --module_path=C:\User
s\Graham\AppData\Roaming\npm\node_modules\particle-cli\node_modules\serialport\b
uild\Release\node-v14-win32-ia32 )
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.t
argets(64,5): error MSB8020: The build tools for v140 (Platform Toolset = 'v140
') cannot be found. To build using the v140 build tools, please install v140 bu
ild tools. Alternatively, you may upgrade to the current Visual Studio tools b
y selecting the Project menu or right-click the solution, and then selecting "U
pgrade Solution...". [C:\Users\Graham\AppData\Roaming\npm\node_modules\particle
-cli\node_modules\serialport\build\serialport.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: msbuild failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files (x86)\nodejs\node_mo
dules\npm\node_modules\node-gyp\lib\build.js:269:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess.handle.onexit (child_process.js:1074
:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "node" "C:\Program Files (x86)\nodejs\node_modules\npm\nod
e_modules\node-gyp\bin\node-gyp.js" "build" "--fallback-to-build" "--module=C
:\Users\Graham\AppData\Roaming\npm\node_modules\particle-cli\node_module
s\serialport\build\Release\node-v14-win32-ia32\serialport.node" "--module_n
ame=serialport" "--module_path=C:\Users\Graham\AppData\Roaming\npm\node_mo
dules\particle-cli\node_modules\serialport\build\Release\node-v14-win32-ia
32"
gyp ERR! cwd C:\Users\Graham\AppData\Roaming\npm\node_modules\particle-cli\node

modules\serialport
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp.cmd build --fallback-
to-build --module=C:\Users\Graham\AppData\Roaming\npm\node_modules\particle-cli
node_modules\serialport\build\Release\node-v14-win32-ia32\serialport.node --modu
le_name=serialport --module_path=C:\Users\Graham\AppData\Roaming\npm\node_module
s\particle-cli\node_modules\serialport\build\Release\node-v14-win32-ia32' (1)
node-pre-gyp ERR! stack at ChildProcess. (C:\Users\Graham\AppData
\Roaming\npm\node_modules\particle-cli\node_modules\serialport\node_modules\node
-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:110:17)
node-pre-gyp ERR! stack at maybeClose (child_process.js:1015:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (child_proces
s.js:1087:5)
node-pre-gyp ERR! System Windows_NT 6.3.9600
node-pre-gyp ERR! command "node" "C:\Users\Graham\AppData\Roaming\npm\node
_modules\particle-cli\node_modules\serialport\node_modules\node-pre-gyp\bi
n\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\Graham\AppData\Roaming\npm\node_modules\particle-
cli\node_modules\serialport
node-pre-gyp ERR! node -v v0.12.7
node-pre-gyp ERR! node-pre-gyp -v v0.6.13
node-pre-gyp ERR! not ok
Failed to execute 'node-gyp.cmd build --fallback-to-build --module=C:\Users\Grah
am\AppData\Roaming\npm\node_modules\particle-cli\node_modules\serialport\build\R
elease\node-v14-win32-ia32\serialport.node --module_name=serialport --module_pat
h=C:\Users\Graham\AppData\Roaming\npm\node_modules\particle-cli\node_modules\ser
ialport\build\Release\node-v14-win32-ia32' (1)
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\Program Files (x86)\nodejs\\node.exe" "C:\Program Files (
x86)\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "particle-cli"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! code ELIFECYCLE

npm ERR! serialport@2.0.4 install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the serialport@2.0.4 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:\Windows\system32\npm-debug.log

C:\Windows\system32>