Failed to install particle-dev on atom

I know that many people before me have already uploaded the same the problem to the forum, yet none of the suggested solutions solved my problem.

I'm using Ubuntu 16 based 'linux mint' 18.3 OS.
When I try to install 'particle-dev' package on my 1.41.0 x64 Atom I get the following error log:

serialport@4.0.1 install /var/tmp/apm-install-dir-119106-270-zfm81j.ywdoi/node_modules/particle-dev/node_modules/serialport
node-pre-gyp install --fallback-to-build

Failed to execute '/app/share/atom/resources/app/apm/bin/node /app/share/atom/resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/var/tmp/apm-install-dir-119106-270-zfm81j.ywdoi/node_modules/particle-dev/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/var/tmp/apm-install-dir-119106-270-zfm81j.ywdoi/node_modules/particle-dev/node_modules/serialport/build/Release --python=/app/share/atom/resources/app/apm/bin/python-interceptor.sh' (1)

npm WARN deprecated spark@0.5.10: Use particle-api-js instead
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated json3@3.3.2: Please use the native JSON object instead of JSON 3
npm WARN deprecated superagent@3.8.3: Please note that v5.0.1+ of superagent removes User-Agent header by default, therefore you may need to add it yourself (e.g. GitHub blocks requests without a User-Agent header). This notice will go away with v5.0.2+ once it is released.
npm WARN deprecated superagent@2.3.0: Please note that v5.0.1+ of superagent removes User-Agent header by default, therefore you may need to add it yourself (e.g. GitHub blocks requests without a User-Agent header). This notice will go away with v5.0.2+ once it is released.
npm WARN deprecated hawk@3.1.3: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated sntp@1.0.9: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated hoek@2.16.3: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated cryptiles@2.0.5: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated boom@2.10.1: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.1/serialport-v4.0.1-electron-v4.2-linux-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for serialport@4.0.1 and electron@4.2.7 (electron-v4.2 ABI, glibc) (falling back to source compile with node-gyp)
node-pre-gyp ERR! Tried to download(undefined): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.1/serialport-v4.0.1-electron-v4.2-linux-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for serialport@4.0.1 and electron@4.2.7 (electron-v4.2 ABI, glibc) (falling back to source compile with node-gyp)
gyp ERR! configure error
gyp ERR! stack Error: Command failed: /app/share/atom/resources/app/apm/bin/python-interceptor.sh -c import platform; print(platform.python_version());
gyp ERR! stack /app/share/atom/resources/app/apm/bin/python-interceptor.sh: line 40: exec: python: not found
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:291:12)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at maybeClose (internal/child_process.js:961:16)
gyp ERR! stack at Socket.stream.socket.on (internal/child_process.js:380:11)
gyp ERR! stack at Socket.emit (events.js:182:13)
gyp ERR! stack at Pipe._handle.close [as _onclose] (net.js:596:12)
gyp ERR! System Linux 4.10.0-38-generic
gyp ERR! command "/app/share/atom/resources/app/apm/bin/node" "/app/share/atom/resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/var/tmp/apm-install-dir-119106-270-zfm81j.ywdoi/node_modules/particle-dev/node_modules/serialport/build/Release/serialport.node" "--module_name=serialport" "--module_path=/var/tmp/apm-install-dir-119106-270-zfm81j.ywdoi/node_modules/particle-dev/node_modules/serialport/build/Release" "--python=/app/share/atom/resources/app/apm/bin/python-interceptor.sh"
gyp ERR! cwd /var/tmp/apm-install-dir-119106-270-zfm81j.ywdoi/node_modules/particle-dev/node_modules/serialport
gyp ERR! node -v v10.2.1
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok
gyp ERR!node-pre-gyp configure error
ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/app/share/atom/resources/app/apm/bin/node /app/share/atom/resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/var/tmp/apm-install-dir-119106-270-zfm81j.ywdoi/node_modules/particle-dev/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/var/tmp/apm-install-dir-119106-270-zfm81j.ywdoi/node_modules/particle-dev/node_modules/serialport/build/Release --python=/app/share/atom/resources/app/apm/bin/python-interceptor.sh' (1)
node-pre-gyp ERR! stack at ChildProcess. (/var/tmp/apm-install-dir-119106-270-zfm81j.ywdoi/node_modules/particle-dev/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:182:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:961:16)
node-pre-gypgyp ERR! stackERR! at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)
stack Error: Command failed: /app/share/atom/resources/app/apm/bin/python-interceptor.sh -c import platform; print(platform.python_version());
gyp ERR! stack /app/share/atom/resources/app/apm/bin/python-interceptor.sh: line 40: exec: python: not found
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:291:12)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at maybeClose (internal/child_process.js:961:16)
gyp ERR! stack at Socket.stream.socket.on (internal/child_process.js:380:11)
gyp ERR! stacknode-pre-gyp at Socket.emit (events.js:182:13)
gyp ERR!ERR! stackSystem at Pipe._handle.close [as _onclose] (net.js:596:12)
Linux 4.10.0-38-generic
node-pre-gyp ERR! command "/app/share/atom/resources/app/apm/bin/node" "/var/tmp/apm-install-dir-119106-270-zfm81j.ywdoi/node_modules/particle-dev/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR!gyp cwd /var/tmp/apm-install-dir-119106-270-zfm81j.ywdoi/node_modules/particle-dev/node_modules/serialport
ERR! node-pre-gypSystem Linux 4.10.0-38-generic
ERR! node -v v10.2.1
gypnode-pre-gyp ERR!ERR! commandnode-pre-gyp -v "/app/share/atom/resources/app/apm/bin/node" "/app/share/atom/resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/var/tmp/apm-install-dir-119106-270-zfm81j.ywdoi/node_modules/particle-dev/node_modules/serialport/build/Release/serialport.node" "--module_name=serialport" "--module_path=/var/tmp/apm-install-dir-119106-270-zfm81j.ywdoi/node_modules/particle-dev/node_modules/serialport/build/Release" "--python=/app/share/atom/resources/app/apm/bin/python-interceptor.sh"
v0.6.39
node-pre-gypgyp ERR!ERR! not okcwd
/var/tmp/apm-install-dir-119106-270-zfm81j.ywdoi/node_modules/particle-dev/node_modules/serialport
gyp ERR! node -v v10.2.1
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open '/var/tmp/apm-install-dir-119106-270-zfm81j.ywdoi/package.json'
npm WARN apm-install-dir-119106-270-zfm81j.ywdoi No description
npm WARN apm-install-dir-119106-270-zfm81j.ywdoi No repository field.
npm WARN apm-install-dir-119106-270-zfm81j.ywdoi No README data
npm WARN apm-install-dir-119106-270-zfm81j.ywdoi No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
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.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/krong/.var/app/io.atom.Atom/data/.apm/_logs/2019-11-06T15_15_34_637Z-debug.log

I would really appreciate any help as I am quite a beginner.

Particle Dev is not actively supported anymore.
The go-to local IDE is now Particle Workbench.

2 Likes

Well, that’s unfortunate. It was a great platform for development purposes.

Particle.io claims to have over 200 000 developers, and out of that I wonder how many of them are sold into the MSFT visual studio environment vs (an open-source) atom.io platform.
Many of us have atom installed on our computers (MAC, Linux,…) and having to move to MSFT is not ideal. That’s my personal opinion.