After not using NR on a Pi0W, I decided to update everything. No dice.
Running the recommended script:
pi@pizza:~/.node-red $ bash <(curl -sL https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/update-nodejs-and-nodered)
Finishes without obvious error (green checkmarks) and tells me to start NR with start-node-red. This yields
Node-RED is not yet fully installed
Fetching Node-RED update.
If I answer "y" at the end, the whole cycle runs again with the same result.
RPI OS: Raspbian Jessie 8
I ran sudo apt update and sudo apt full-upgrade and everything is up to date.
There are some strange entries in the logs.
In /var/log/nodered-install.log we see this:
Started : Mon Nov 19 01:28:08 CST 2018
Running for user pi at /home/pi
Found global nodes: :
Reading package lists...
Building dependency tree...
Reading state information...
Package 'nodered' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
npm WARN using --force I sure hope you know what you are doing.
npm ERR! asyncWrite is not a function
npm ERR! pna.nextTick is not a functionnpm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-11-19T07_28_39_932Z-debug.log> node-red-dashboard@2.8.2 postinstall /home/pi/.node-red/node_modules/node-red-dashboard
> node fixfa.js> node-red-node-pi-neopixel@0.0.16 postinstall /home/pi/.node-red/node_modules/node-red-node-pi-neopixel
> scripts/checklib.jsPython library found OK.
> node-red-node-pi-sense-hat@0.0.15 postinstall /home/pi/.node-red/node_modules/node-red-node-pi-sense-hat
> scripts/checklib.shSense HAT python library is installed
serialport@6.1.1 install /home/pi/.node-red/node_modules/serialport
prebuild-install || node-gyp rebuild
... and then just some warnings about deprecated modules...
In /root/.npm/_logs/2018-11-19T07_28_39_932Z-debug.log we see this:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node',
1 verbose cli '/usr/bin/npm',
1 verbose cli 'i',
1 verbose cli '-g',
1 verbose cli '--unsafe-perm',
1 verbose cli '--no-progress',
1 verbose cli 'node-red@latest' ]
2 info using npm@6.4.1
3 info using node@v8.12.0
4 verbose npm-session 2290de93fea7561b
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 verbose stack TypeError: asyncWrite is not a function
7 verbose stack at onwrite (/usr/lib/node_modules/npm/node_modules/readable-stream/lib/_stream_writable.js:480:7)
7 verbose stack at WritableState.onwrite (/usr/lib/node_modules/npm/node_modules/readable-stream/lib/_stream_writable.js:180:5)
7 verbose stack at WriteStream.to [as _worker] (/usr/lib/node_modules/npm/node_modules/pacote/node_modules/make-fetch-happen/cache.js:154:13)
7 verbose stack at WriteStream._write (/usr/lib/node_modules/npm/node_modules/mississippi/node_modules/flush-write-stream/index.js:35:13)
7 verbose stack at doWrite (/usr/lib/node_modules/npm/node_modules/readable-stream/lib/_stream_writable.js:428:64)
7 verbose stack at writeOrBuffer (/usr/lib/node_modules/npm/node_modules/readable-stream/lib/_stream_writable.js:417:5)
7 verbose stack at WriteStream.Writable.write (/usr/lib/node_modules/npm/node_modules/readable-stream/lib/_stream_writable.js:334:11)
7 verbose stack at WriteStream.to [as _worker] (/usr/lib/node_modules/npm/node_modules/pacote/node_modules/make-fetch-happen/cache.js:171:25)
7 verbose stack at WriteStream._write (/usr/lib/node_modules/npm/node_modules/mississippi/node_modules/flush-write-stream/index.js:35:13)
7 verbose stack at doWrite (/usr/lib/node_modules/npm/node_modules/readable-stream/lib/_stream_writable.js:428:64)
7 verbose stack at writeOrBuffer (/usr/lib/node_modules/npm/node_modules/readable-stream/lib/_stream_writable.js:417:5)
7 verbose stack at WriteStream.Writable.write (/usr/lib/node_modules/npm/node_modules/readable-stream/lib/_stream_writable.js:334:11)
7 verbose stack at WriteStream.to [as _worker] (/usr/lib/node_modules/npm/node_modules/pacote/node_modules/make-fetch-happen/cache.js:182:19)
7 verbose stack at WriteStream._write (/usr/lib/node_modules/npm/node_modules/mississippi/node_modules/flush-write-stream/index.js:35:13)
7 verbose stack at doWrite (/usr/lib/node_modules/npm/node_modules/readable-stream/lib/_stream_writable.js:428:64)
7 verbose stack at writeOrBuffer (/usr/lib/node_modules/npm/node_modules/readable-stream/lib/_stream_writable.js:417:5)
8 verbose cwd /home/pi
9 verbose Linux 4.9.35+
10 verbose argv "/usr/bin/node" "/usr/bin/npm" "i" "-g" "--unsafe-perm" "--no-progress" "node-red@latest"
11 verbose node v8.12.0
12 verbose npm v6.4.1
13 error asyncWrite is not a function
14 verbose exit [ 1, true ]
pi@pizza:~/.node-red $
Any suggestions??
Thanks,
--Jeff