Particle Dev in/out Atom - cant install

I intended to use the Atom editor and - according to the description in other threads and this guide created the prerequisites for Windows 10 64bit with GitHub Desktop and Visual Studio Community 2017 with .Net Framework 4.7.x. However, I get the following error:

npm ERR! serialport@4.0.1 install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the serialport@4.0.1 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 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 information on how to open an issue for this project with:
npm ERR! npm bugs serialport
npm ERR! Or if that isn't available, 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\Ingo\AppData\Local\Temp\apm-install-dir-117419-3708-2dj7pp.zniajg7gb9\npm-debug.log
npm ERR! code 1

Have it then as a separate download of IoT Command Center — Particle tried: I get the following error during Squirrel installation:
Snip:

---> (Interne Ausnahme #0) System.IO.IOException: Der Zugriff auf den Pfad "resources" wurde verweigert.
   bei System.IO.DirectoryInfo.MoveTo(String destDirName)
   bei Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClassb4.<>c__DisplayClassb9.<>c__DisplayClassbb.<installPackageToAppDir>b__b2(DirectoryInfo subdir)
   bei Squirrel.Utility.<>c__DisplayClass18`1.<>c__DisplayClass1a.<ForEachAsync>b__17()
   bei System.Threading.Tasks.Task.InnerInvoke()
   bei System.Threading.Tasks.Task.Execute()
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
   bei System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   bei Squirrel.Utility.<>c__DisplayClass1e`1.<>c__DisplayClass20.<<ForEachAsync>b__1d>d__22.MoveNext()<---
<---

Is there a how to available?

What does

node --version
npm --version

tell?

Downloaded Node.Js v6.10.3 LTS for Windows which installs npm@3.10.10.
After Reboot I checked Atom to install particle-dev again: but fails again.

Begin Snip:

> serialport@4.0.1 install C:\Users\Ingo\AppData\Local\Temp\apm-install-dir-117419-14028-lileqw.avnda8xgvi\node_modules\particle-dev\node_modules\serialport
> node-pre-gyp install --fallback-to-build

Die Projekte in dieser Projektmappe werden nacheinander erstellt. Um eine parallele Erstellung zu erm�glichen, m�ssen Sie den Schalter "/m" hinzuf�gen.
MSBUILD : error MSB3428: Die Visual C++-Komponente "VCBuild.exe" konnte nicht geladen werden. Um dieses Problem zu beheben, installieren Sie entweder 1) .NET Framework 2.0 SDK oder 2) Microsoft Visual Studio 2005 oder 3) f�gen Sie den Speicherort der Komponente zum Systempfad hinzu, falls er vom Standardspeicherort abweicht.  [C:\Users\Ingo\AppData\Local\Temp\apm-install-dir-117419-14028-lileqw.avnda8xgvi\node_modules\particle-dev\node_modules\serialport\build\binding.sln]
Failed to execute 'C:\Users\Ingo\AppData\Local\atom\app-1.17.0\resources\app\apm\bin\node.exe C:\Users\Ingo\AppData\Local\atom\app-1.17.0\resources\app\apm\bin\\..\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Users\Ingo\AppData\Local\Temp\apm-install-dir-117419-14028-lileqw.avnda8xgvi\node_modules\particle-dev\node_modules\serialport\build\Release\serialport.node --module_name=serialport --module_path=C:\Users\Ingo\AppData\Local\Temp\apm-install-dir-117419-14028-lileqw.avnda8xgvi\node_modules\particle-dev\node_modules\serialport\build\Release' (1)
C:\Users\Ingo\AppData\Local\Temp\apm-install-dir-117419-14028-lileqw.avnda8xgvi
`-- (empty)

This external thread helps: https://github.com/spark/particle-dev/issues/151

to solve the node-gyp dependencies used the following:
On Windows: Option 1: Install all the required tools and configurations using Microsoft’s windows-build-tools using npm install --global --production windows-build-tools from an elevated PowerShell or CMD.exe (run as Administrator).

3 Likes

Thanks for posting your answer!