[SOLVED]Cant install particle cli

Hello ,

I'm trying to install the particle on my cmd , i followed up a previous topic but unfortunately i still get that error

|
serialport@2.0.4 install C:\Users\Lenovo\AppData\Roaming\npm\node_modules\part
icle-cli\node_modules\serialport
node-pre-gyp install --fallback-to-build

C:\Users\Lenovo\AppData\Roaming\npm\node_modules\particle-cli\node_modules\seria
lport>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\....\nod
e_modules\node-gyp\bin\node-gyp.js" clean

C:\Users\Lenovo\AppData\Roaming\npm\node_modules\particle-cli\node_modules\seria
lport>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\....\nod
e_modules\node-gyp\bin\node-gyp.js" configure --fallback-to-build --module=C:\Us
ers\Lenovo\AppData\Roaming\npm\node_modules\particle-cli\node_modules\serialport
\build\Release\node-v47-win32-x64\serialport.node --module_name=serialport --mod
ule_path=C:\Users\Lenovo\AppData\Roaming\npm\node_modules\particle-cli\node_modu
les\serialport\build\Release\node-v47-win32-x64
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: 404 status code downloading 32-bit node.lib
gyp ERR! stack at Request. (C:\Program Files\nodejs\node_modules
npm\node_modules\node-gyp\lib\install.js:369:20)
gyp ERR! stack at emitOne (events.js:82:20)
gyp ERR! stack at Request.emit (events.js:169:7)
gyp ERR! stack at Request.onResponse (C:\Program Files\nodejs\node_modules\n
pm\node_modules\request\request.js:1085:10)
gyp ERR! stack at ClientRequest.g (events.js:260:16)
gyp ERR! stack at emitOne (events.js:77:13)
gyp ERR! stack at ClientRequest.emit (events.js:169:7)
gyp ERR! stack at HTTPParser.parserOnIncomingClient (_http_client.js:421:21)

gyp ERR! stack at HTTPParser.parserOnHeadersComplete (_http_common.js:88:23)

gyp ERR! stack at Socket.socketOnData (http_client.js:311:20)
gyp ERR! System Windows_NT 10.0.10240
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodej
s\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "--f
allback-to-build" "--module=C:\Users\Lenovo\AppData\Roaming\npm\node_modul
es\particle-cli\node_modules\serialport\build\Release\node-v47-win32-x64\
serialport.node" "--module_name=serialport" "--module_path=C:\Users\Lenovo\Ap
pData\Roaming\npm\node_modules\particle-cli\node_modules\serialport\build
\Release\node-v47-win32-x64"
gyp ERR! cwd C:\Users\Lenovo\AppData\Roaming\npm\node_modules\particle-cli\node

modules\serialport
gyp ERR! node -v v5.0.0
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp.cmd configure --fallb
ack-to-build --module=C:\Users\Lenovo\AppData\Roaming\npm\node_modules\particle-
cli\node_modules\serialport\build\Release\node-v47-win32-x64\serialport.node --m
odule_name=serialport --module_path=C:\Users\Lenovo\AppData\Roaming\npm\node_mod
ules\particle-cli\node_modules\serialport\build\Release\node-v47-win32-x64' (1)
node-pre-gyp ERR! stack at ChildProcess. (C:\Users\Lenovo\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 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:818:16)
node-pre-gyp ERR! stack at Process.ChildProcess.handle.onexit (internal/chi
ld_process.js:211:5)
node-pre-gyp ERR! System Windows_NT 10.0.10240
node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Leno
vo\AppData\Roaming\npm\node_modules\particle-cli\node_modules\serialport
\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\Lenovo\AppData\Roaming\npm\node_modules\particle-
cli\node_modules\serialport
node-pre-gyp ERR! node -v v5.0.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.13
node-pre-gyp ERR! not ok
Failed to execute 'node-gyp.cmd configure --fallback-to-build --module=C:\Users
Lenovo\AppData\Roaming\npm\node_modules\particle-cli\node_modules\serialport\bui
ld\Release\node-v47-win32-x64\serialport.node --module_name=serialport --module

path=C:\Users\Lenovo\AppData\Roaming\npm\node_modules\particle-cli\node_modules
serialport\build\Release\node-v47-win32-x64' (1)

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.
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! System Windows_NT 10.0.10240
npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodej
s\node_modules\npm\bin\npm-cli.js" "isntall" "-g" "particle-cli"
npm ERR! cwd C:\WINDOWS\system32
npm ERR! node -v v5.0.0
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0

any help ?

Could you try npm install -g serialport? Alternatively, this has worked nicely for me in the past, you could give it a try:

3 posts were merged into an existing topic: CLI installation on Windows MUST be easier than this…PLEASE?

it didnt work , Same Error

@kennethlimcp Could you help me please on this :…

@Omar is npm install -g serialport --verbose working?

No , still getting that error below …

gyp verb extracted file from tarball deps\openssl\openssl\crypto\des\des_old.h
gyp verb extracted file from tarball deps\openssl\openssl\crypto\des\des_ver.h
gyp verb extracted file from tarball deps\openssl\openssl\crypto\des\rpc_des.h
gyp verb extracted file from tarball deps\openssl\openssl\crypto\des\spr.h
gyp verb extracted file from tarball deps\openssl\openssl\crypto\conf\conf.h
gyp verb extracted file from tarball deps\openssl\openssl\crypto\conf\conf_api.h

gyp verb extracted file from tarball deps\openssl\openssl\crypto\conf\conf_def.h

gyp verb extracted file from tarball deps\openssl\openssl\crypto\comp\comp.h
gyp verb extracted file from tarball deps\openssl\openssl\crypto\cms\cms.h
gyp verb extracted file from tarball deps\openssl\openssl\crypto\cms\cms_lcl.h
gyp verb extracted file from tarball deps\openssl\openssl\crypto\cmac\cmac.h
gyp verb extracted file from tarball deps\openssl\openssl\crypto\cast\cast.h
gyp verb extracted file from tarball deps\openssl\openssl\crypto\cast\cast_lcl.h

gyp verb extracted file from tarball deps\openssl\openssl\crypto\cast\cast_s.h
gyp verb extracted file from tarball deps\openssl\openssl\crypto\camellia\camell
ia.h
gyp verb extracted file from tarball deps\openssl\openssl\crypto\camellia\cmll_l
ocl.h
gyp verb extracted file from tarball deps\openssl\openssl\crypto\buffer\buffer.h

gyp verb extracted file from tarball deps\openssl\openssl\crypto\bn\bn.h
gyp verb extracted file from tarball deps\openssl\openssl\crypto\bn\bn_lcl.h
gyp verb extracted file from tarball deps\openssl\openssl\crypto\bn\bn_prime.h
gyp verb extracted file from tarball deps\openssl\openssl\crypto\bn\rsaz_exp.h
gyp verb content checksum node-v5.0.0.tar.gz 698d9662067ae6a20a2586e5c09659735fc
0050769a0d8f76f979189ceaccdf4
gyp verb extracted file from tarball deps\openssl\openssl\crypto\bio\bio.h
gyp verb extracted file from tarball deps\openssl\openssl\crypto\bio\bio_lcl.h
gyp verb extracted file from tarball deps\openssl\openssl\crypto\bf\bf_locl.h
gyp verb extracted file from tarball deps\openssl\openssl\crypto\bf\bf_pi.h
gyp verb extracted file from tarball deps\openssl\openssl\crypto\bf\blowfish.h
gyp verb extracted file from tarball deps\openssl\openssl\crypto\asn1\asn1.h
gyp verb extracted file from tarball deps\openssl\openssl\crypto\asn1\asn1_locl.
h
gyp verb extracted file from tarball deps\openssl\openssl\crypto\asn1\asn1_mac.h

gyp verb extracted file from tarball deps\openssl\openssl\crypto\asn1\asn1t.h
gyp verb extracted file from tarball deps\openssl\openssl\crypto\asn1\charmap.h
gyp verb extracted file from tarball deps\openssl\openssl\crypto\aes\aes.h
gyp verb extracted file from tarball deps\openssl\openssl\crypto\aes\aes_locl.h
gyp verb extracted file from tarball deps\openssl\openssl\apps\apps.h
gyp verb extracted file from tarball deps\openssl\openssl\apps\progs.h
gyp verb extracted file from tarball deps\openssl\openssl\apps\s_apps.h
gyp verb extracted file from tarball deps\openssl\openssl\apps\testdsa.h
gyp verb extracted file from tarball deps\openssl\openssl\apps\testrsa.h
gyp verb extracted file from tarball deps\openssl\openssl\apps\timeouts.h
gyp verb extracted file from tarball deps\openssl\config\opensslconf.h
gyp verb extracted file from tarball deps\openssl\config\archs\VC-WIN64A\openssl
conf.h
gyp verb extracted file from tarball deps\openssl\config\archs\VC-WIN32\opensslc
onf.h
gyp verb extracted file from tarball deps\openssl\config\archs\solaris64-x86_64-
gcc\opensslconf.h
gyp verb extracted file from tarball deps\openssl\config\archs\solaris-x86-gcc\o
pensslconf.h
gyp verb extracted file from tarball deps\openssl\config\archs\linux-x86_64\open
sslconf.h
gyp verb extracted file from tarball deps\openssl\config\archs\linux-x32\openssl
conf.h
gyp verb extracted file from tarball deps\openssl\config\archs\linux-ppc64\opens
slconf.h
gyp verb extracted file from tarball deps\openssl\config\archs\linux-ppc\openssl
conf.h
gyp verb extracted file from tarball deps\openssl\config\archs\linux-elf\openssl
conf.h
gyp verb extracted file from tarball deps\openssl\config\archs\linux-armv4\opens
slconf.h
gyp verb extracted file from tarball deps\openssl\config\archs\linux-aarch64\ope
nsslconf.h
gyp verb extracted file from tarball deps\openssl\config\archs\darwin64-x86_64-c
c\opensslconf.h
gyp verb extracted file from tarball deps\openssl\config\archs\darwin-i386-cc\op
ensslconf.h
gyp verb extracted file from tarball deps\openssl\config\archs\BSD-x86_64\openss
lconf.h
gyp verb extracted file from tarball deps\openssl\config\archs\BSD-x86\opensslco
nf.h
gyp verb extracted file from tarball deps\openssl\config\archs\aix64-gcc\openssl
conf.h
gyp verb extracted file from tarball deps\openssl\config\archs\aix-gcc\opensslco
nf.h
gyp verb extracted file from tarball deps\npm\node_modules\node-gyp\addon.gypi
gyp verb extracted file from tarball deps\http_parser\http_parser.h
gyp verb extracted file from tarball deps\gtest\src\gtest-internal-inl.h
gyp verb extracted file from tarball deps\gtest\include\gtest\gtest-death-test.h

gyp verb extracted file from tarball deps\gtest\include\gtest\gtest-message.h
gyp verb extracted file from tarball deps\gtest\include\gtest\gtest-param-test.h

gyp verb extracted file from tarball deps\gtest\include\gtest\gtest-printers.h
gyp verb extracted file from tarball deps\gtest\include\gtest\gtest-spi.h
gyp verb extracted file from tarball deps\gtest\include\gtest\gtest-test-part.h
gyp verb extracted file from tarball deps\gtest\include\gtest\gtest-typed-test.h

gyp verb extracted file from tarball deps\gtest\include\gtest\gtest.h
gyp verb extracted file from tarball deps\gtest\include\gtest\gtest_pred_impl.h
gyp verb extracted file from tarball deps\gtest\include\gtest\gtest_prod.h
gyp verb extracted file from tarball deps\gtest\include\gtest\internal\gtest-dea
th-test-internal.h
gyp verb extracted file from tarball deps\gtest\include\gtest\internal\gtest-fil
epath.h
gyp verb extracted file from tarball deps\gtest\include\gtest\internal\gtest-int
ernal.h
gyp verb extracted file from tarball deps\gtest\include\gtest\internal\gtest-lin
ked_ptr.h
gyp verb extracted file from tarball deps\gtest\include\gtest\internal\gtest-par
am-util-generated.h
gyp verb extracted file from tarball deps\gtest\include\gtest\internal\gtest-par
am-util.h
gyp verb extracted file from tarball deps\gtest\include\gtest\internal\gtest-por
t.h
gyp verb extracted file from tarball deps\gtest\include\gtest\internal\gtest-str
ing.h
gyp verb extracted file from tarball deps\gtest\include\gtest\internal\gtest-tup
le.h
gyp verb extracted file from tarball deps\gtest\include\gtest\internal\gtest-typ
e-util.h
gyp verb extracted file from tarball deps\cares\common.gypi
gyp verb extracted file from tarball deps\cares\src\ares_data.h
gyp verb extracted file from tarball deps\cares\src\ares_dns.h
gyp verb extracted file from tarball deps\cares\src\ares_getenv.h
gyp verb extracted file from tarball deps\cares\src\ares_getopt.h
gyp verb extracted file from tarball deps\cares\src\ares_inet_net_pton.h
gyp verb extracted file from tarball deps\cares\src\ares_iphlpapi.h
gyp verb extracted file from tarball deps\cares\src\ares_ipv6.h
gyp verb extracted file from tarball deps\cares\src\ares_library_init.h
gyp verb extracted file from tarball deps\cares\src\ares_llist.h
gyp verb extracted file from tarball deps\cares\src\ares_nowarn.h
gyp verb extracted file from tarball deps\cares\src\ares_platform.h
gyp verb extracted file from tarball deps\cares\src\ares_private.h
gyp verb extracted file from tarball deps\cares\src\ares_rules.h
gyp verb extracted file from tarball deps\cares\src\ares_setup.h
gyp verb extracted file from tarball deps\cares\src\ares_strcasecmp.h
gyp verb extracted file from tarball deps\cares\src\ares_strdup.h
gyp verb extracted file from tarball deps\cares\src\ares_writev.h
gyp verb extracted file from tarball deps\cares\src\bitncmp.h
gyp verb extracted file from tarball deps\cares\src\config-win32.h
gyp verb extracted file from tarball deps\cares\src\setup_once.h
gyp verb extracted file from tarball deps\cares\include\ares.h
gyp verb extracted file from tarball deps\cares\include\ares_version.h
gyp verb extracted file from tarball deps\cares\include\nameser.h
gyp verb extracted file from tarball deps\cares\config\sunos\ares_config.h
gyp verb extracted file from tarball deps\cares\config\openbsd\ares_config.h
gyp verb extracted file from tarball deps\cares\config\netbsd\ares_config.h
gyp verb extracted file from tarball deps\cares\config\linux\ares_config.h
gyp verb extracted file from tarball deps\cares\config\freebsd\ares_config.h
gyp verb extracted file from tarball deps\cares\config\darwin\ares_config.h
gyp verb extracted file from tarball deps\cares\config\cygwin\ares_config.h
gyp verb extracted file from tarball deps\cares\config\android\ares_config.h
gyp verb extracted file from tarball deps\cares\config\aix\ares_config.h
gyp verb tarball done parsing tarball
gyp verb on Windows; need to download `node.lib`...
gyp verb 32-bit node.lib dir C:\Users\Lenovo\.node-gyp\5.0.0\ia32
gyp verb 64-bit node.lib dir C:\Users\Lenovo\.node-gyp\5.0.0\x64
gyp verb `node.lib` 32-bit url http://nodejs.org/dist/v5.0.0/node.lib
gyp verb `node.lib` 64-bit url http://nodejs.org/dist/v5.0.0/x64/node.lib
gyp verb check download content checksum, need to download `SHASUMS256.txt`...
gyp verb checksum url http://nodejs.org/dist/v5.0.0/SHASUMS256.txt
gyp http GET http://nodejs.org/dist/v5.0.0/SHASUMS256.txt
gyp verb streaming 32-bit node.lib to: C:\Users\Lenovo\.node-gyp\5.0.0\ia32\node
.lib
gyp http GET http://nodejs.org/dist/v5.0.0/node.lib
gyp verb streaming 64-bit node.lib to: C:\Users\Lenovo\.node-gyp\5.0.0\x64\node.
lib
gyp http GET http://nodejs.org/dist/v5.0.0/x64/node.lib
gyp http 404 http://nodejs.org/dist/v5.0.0/x64/node.lib
gyp WARN install got an error, rolling back install
gyp verb command remove [ '5.0.0' ]
gyp verb remove using node-gyp dir: C:\Users\Lenovo\.node-gyp
gyp verb remove removing target version: 5.0.0
gyp verb remove removing development files for version: 5.0.0
gyp http 404 http://nodejs.org/dist/v5.0.0/node.lib
gyp http 200 http://nodejs.org/dist/v5.0.0/SHASUMS256.txt
gyp verb checksum data {"node-v5.0.0-darwin-x64.tar.gz":"26f3e42df814b9b42f0b004
5901c84eb79233d8196d0dcdf77a6a3c975c6f25d","node-v5.0.0-darwin-x64.tar.xz":"060d
4bdf5872047ef74f3b1f3daaa466c2506e34ad916128f4b9279d005bc205","node-v5.0.0-heade
rs.tar.gz":"5133b6145df7083133e272e1b8c96b59c58a19d004d5aacdec80ea78e58c7e46","n
ode-v5.0.0-headers.tar.xz":"47dc88a17c416285de6c517ea6107322b65920618e8f59e1c49a
83c6dd423f31","node-v5.0.0-linux-arm64.tar.gz":"2c4517d3fdefc29b5c61aa6ea3386a0d
afca831357d3bcd30fc14e97b49139d1","node-v5.0.0-linux-arm64.tar.xz":"5fd1939b1540
6d537bf17828a707898f2d710c3c9ddf243b6070353fd13f5880","node-v5.0.0-linux-armv6l.
tar.gz":"96629e271e34d14bdb7be93067a8770cb5326977b9168cf2344c80a721040784","node
-v5.0.0-linux-armv6l.tar.xz":"82178863010dba66076fdda215e5ad505c1b83571df1d018dc
e2060d24f260d7","node-v5.0.0-linux-armv7l.tar.gz":"6bf5f19cac9f01cb31b7088685d9d
6df6d24c9c2a4531ace839387763b8a28ec","node-v5.0.0-linux-armv7l.tar.xz":"97575c7e
c3f042acf85f9b6de3ec6db027b0ef4a828eaa5e0f66504c72884bd9","node-v5.0.0-linux-x64
.tar.gz":"ef73b59048a0ed11d01633f0061627b7a9879257deb9add2255e4d0808f8b671","nod
e-v5.0.0-linux-x64.tar.xz":"1c3e8e7df3320e648f748d721115e6018e0701a206232a6a7332
970d211e3706","node-v5.0.0-linux-x86.tar.gz":"6484c4cac1724f2818354e3f2a8ede6630
8617b648cd3db624596b8cd58b5f6b","node-v5.0.0-linux-x86.tar.xz":"46a56d8c00a791f4
6666dd9d2401b7c26ee7ac8455762fbb106c1497867c9c4b","node-v5.0.0.pkg":"f23ca05d3d7
e642ab9b0c8090b0b88fb29dec987b07d67f307bf3aef81e95b14","node-v5.0.0-sunos-x64.ta
r.gz":"7cfbed6e6658d8304f8593eae9dd28f8f83b57e7a6345b32f4d5e9830b80203f","node-v
5.0.0-sunos-x64.tar.xz":"047bd9fbb25fc6a3349781bddf5210966943b06fa62c6e275d12216
13c9f3423","node-v5.0.0-sunos-x86.tar.gz":"2e9d65dff65843ebfa5c9d623c5b930bd0af7
252101cc9c69c55aa8c880fa9eb","node-v5.0.0-sunos-x86.tar.xz":"c7038764010eba883b5
fa638123b7b94e82b86960a0792a7b10123451d978e9a","node-v5.0.0.tar.gz":"698d9662067
ae6a20a2586e5c09659735fc0050769a0d8f76f979189ceaccdf4","node-v5.0.0.tar.xz":"cf4
f261618e19517c8cbf2fdde00d0b5160e271760abee00f387b11a0b3ca834","node-v5.0.0-x64.
msi":"8a066f8cf38f4dd979366c223d90d6242076d2446f48856abb091b2becc939ef","node-v5
.0.0-x86.msi":"07826a6b60702a0ce9a77240103bf20091a06ee740e646e9f7d6ca760c64e45a"
,"win-x64/node.exe":"27c819be0958fdb4b63be29fb032525965e997da8e0f6b4a6e9123350b7
b22e0","win-x64/node.lib":"27992ac24ab67099d243e76fc52382b42caf4bf75b4b792d64735
9221dfa5d0f","win-x86/node.exe":"b2a5caab041d6e0a3fefc3a0b557df71ce9174c9ca344e5
a690b9accb9f76d84","win-x86/node.lib":"f79d9545ad99221d090c30e415af74431eae15c72
9e820a96385b051be3837f2"}
gyp verb download contents checksum {"node-v5.0.0.tar.gz":"698d9662067ae6a20a258
6e5c09659735fc0050769a0d8f76f979189ceaccdf4"}
gyp verb validating download checksum for node-v5.0.0.tar.gz (698d9662067ae6a20a
2586e5c09659735fc0050769a0d8f76f979189ceaccdf4 == 698d9662067ae6a20a2586e5c09659
735fc0050769a0d8f76f979189ceaccdf4)
gyp ERR! configure error
gyp ERR! stack Error: 404 status code downloading 64-bit node.lib
gyp ERR! stack     at Request.<anonymous> (C:\Program Files\nodejs\node_modules\
npm\node_modules\node-gyp\lib\install.js:395:20)
gyp ERR! stack     at emitOne (events.js:82:20)
gyp ERR! stack     at Request.emit (events.js:169:7)
gyp ERR! stack     at Request.onResponse (C:\Program Files\nodejs\node_modules\n
pm\node_modules\request\request.js:1085:10)
gyp ERR! stack     at ClientRequest.g (events.js:260:16)
gyp ERR! stack     at emitOne (events.js:77:13)
gyp ERR! stack     at ClientRequest.emit (events.js:169:7)
gyp ERR! stack     at HTTPParser.parserOnIncomingClient (_http_client.js:421:21)

gyp ERR! stack     at HTTPParser.parserOnHeadersComplete (_http_common.js:88:23)

gyp ERR! stack     at Socket.socketOnData (_http_client.js:311:20)
gyp ERR! System Windows_NT 10.0.10240
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodej
s\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--f
allback-to-build" "--module=C:\\Users\\Lenovo\\AppData\\Roaming\\npm\\node_modul
es\\serialport\\build\\Release\\node-v47-win32-x64\\serialport.node" "--module_n
ame=serialport" "--module_path=C:\\Users\\Lenovo\\AppData\\Roaming\\npm\\node_mo
dules\\serialport\\build\\Release\\node-v47-win32-x64"
gyp ERR! cwd C:\Users\Lenovo\AppData\Roaming\npm\node_modules\serialport
gyp ERR! node -v v5.0.0
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp.cmd configure --fallb
ack-to-build --module=C:\Users\Lenovo\AppData\Roaming\npm\node_modules\serialpor
t\build\Release\node-v47-win32-x64\serialport.node --module_name=serialport --mo
dule_path=C:\Users\Lenovo\AppData\Roaming\npm\node_modules\serialport\build\Rele
ase\node-v47-win32-x64' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (C:\Users\Lenovo\AppData
\Roaming\npm\node_modules\serialport\node_modules\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:818:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/chi
ld_process.js:211:5)
node-pre-gyp ERR! System Windows_NT 10.0.10240
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Leno
vo\\AppData\\Roaming\\npm\\node_modules\\serialport\\node_modules\\node-pre-gyp\
\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\Lenovo\AppData\Roaming\npm\node_modules\serialpor
t
node-pre-gyp ERR! node -v v5.0.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.13
node-pre-gyp ERR! not ok
Failed to execute 'node-gyp.cmd configure --fallback-to-build --module=C:\Users\
Lenovo\AppData\Roaming\npm\node_modules\serialport\build\Release\node-v47-win32-
x64\serialport.node --module_name=serialport --module_path=C:\Users\Lenovo\AppDa
ta\Roaming\npm\node_modules\serialport\build\Release\node-v47-win32-x64' (1)

npm verb unsafe-perm in lifecycle true
npm info serialport@2.0.5 Failed to exec install script
npm ERR! serialport@2.0.5 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the serialport@2.0.5 install script.
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! System Windows_NT 10.0.10240
npm ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodej
s\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "serialport" "--verbose"
npm ERR! cwd C:\WINDOWS\system32
npm ERR! node -v v5.0.0
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm verb exit [ 1, true ]
npm verb node_modules\serialport unbuild
npm info preuninstall serialport@2.0.5
npm info uninstall serialport@2.0.5
npm verb true,C:\Users\Lenovo\AppData\Roaming\npm\node_modules,C:\Users\Lenovo\A
ppData\Roaming\npm\node_modules unbuild serialport@2.0.5
npm verb C:\Users\Lenovo\AppData\Roaming\npm,[object Object] binRoot
npm info postuninstall serialport@2.0.5
npm ERR! not ok code 0

Can you downgrade to nodejs v4.x.x?

@kennethlimcp @Moors7

Awesome , finally i get it working … Thanks to you guys
Simply i did so :

  • Downgrade node js to version v4.2.2
  • npm install -g serialport --verbose
1 Like

Is there anywhere in the particle documentation that says what version of nodejs it needs to be? There is version 5.0.0 out now – and that does not work.