<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[bash: npm: command not found RPI 3B]]></title><description><![CDATA[<p dir="auto">I have looked through the forums for anyone else having asked this question so as to not create another but I couldn’t locate a previous post about my exact issue.</p>
<p dir="auto">I am trying to install using the manual instructions on the MagicMirror2 website but I am unable to complete them.  When I get to step 4 (npm install) I get the following.</p>
<p dir="auto"><strong><strong>pi@raspberrypi:~ $ curl -sL <a href="https://deb.nodesource.com/setup_14.x" target="_blank" rel="noopener noreferrer nofollow ugc">https://deb.nodesource.com/setup_14.x</a> | sudo -E bash -<br />
sudo apt install -y nodejs<br />
E: dpkg was interrupted, you must manually run ‘sudo dpkg --configure -a’ to correct the problem.<br />
pi@raspberrypi:~ $ sudo dpkg --configure -a<br />
Processing triggers for hicolor-icon-theme (0.17-2) …<br />
Processing triggers for gnome-menus (3.36.0-1) …<br />
Processing triggers for man-db (2.9.4-2) …<br />
Processing triggers for mailcap (3.69) …<br />
Processing triggers for desktop-file-utils (0.26-1) …<br />
pi@raspberrypi:~ $ git clone <a href="https://github.com/MichMich/MagicMirror" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/MichMich/MagicMirror</a><br />
Cloning into ‘MagicMirror’…<br />
remote: Enumerating objects: 21940, done.<br />
remote: Counting objects: 100% (2/2), done.<br />
remote: Compressing objects: 100% (2/2), done.<br />
remote: Total 21940 (delta 0), reused 0 (delta 0), pack-reused 21938<br />
Receiving objects: 100% (21940/21940), 18.26 MiB | 1.15 MiB/s, done.<br />
Resolving deltas: 100% (13428/13428), done.<br />
pi@raspberrypi:~ $ cd MagicMirror/<br />
pi@raspberrypi:~/MagicMirror $ npm install<br />
bash: npm: command not found<br />
pi@raspberrypi:~/MagicMirror $</strong></strong></p>
<p dir="auto">I am using the latest full version of Raspberry Pi OS with Desktop and recommended software Kernel version 5.10 on Pi 3B.</p>
<p dir="auto">I have been playing with the rpi since 2015 on and off but I am for sure no expert user so any help would be great.  Thank you in advance for your time and help!</p>
<p dir="auto">-L.G.</p>
]]></description><link>https://forum.magicmirror.builders/topic/16041/bash-npm-command-not-found-rpi-3b</link><generator>RSS for Node</generator><lastBuildDate>Thu, 13 Aug 2026 08:36:27 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/16041.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 20 Dec 2021 01:45:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to bash: npm: command not found RPI 3B on Mon, 20 Dec 2021 03:46:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/d_n_i" aria-label="Profile: d_n_i">@<bdi>d_n_i</bdi></a> ok, this is bullseye base if u downloaded since oct 30.</p>
<p dir="auto">so you need to use the one for bullseye</p>
<p dir="auto">and you will have to reflash the SD card, as the bad install messes up everything.</p>
]]></description><link>https://forum.magicmirror.builders/post/97640</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/97640</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 20 Dec 2021 03:46:04 GMT</pubDate></item><item><title><![CDATA[Reply to bash: npm: command not found RPI 3B on Mon, 20 Dec 2021 03:38:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> English is my native language and I do know how to use translate but thank you.</p>
<p dir="auto">I’ve tried what’s on the page you sent all day as well as the the one stated above but I still have not gotten anywhere unfortunately.  I’ve tried on Pi3B and Pi4 and running the script you sent gives me the following,</p>
<p dir="auto">pi@raspberrypi:~ $ bash -c  “$(curl -sL <a href="https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/raspberry.sh" target="_blank" rel="noopener noreferrer nofollow ugc">https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/raspberry.sh</a>)”</p>
<p dir="auto">$$\      $$\                     $$\           $$\      $$\ $$\                                          $$$$$$<br />
$$$\    $$$ |                    _<em>|          $$$\    $$$ |_</em>|                                        $$  <strong>$$<br />
$$$$\  $$$$ | $$$$$$\   $$$$$$\  $$\  $$$$$$$\ $$$$\  $$$$ |$$\  $$$$$$\   $$$$$$\   $$$$$$\   $$$$$$\  _<em>/  $$ |<br />
$$$$$$ $$ | _</em></strong>$$\ $$  <strong>$$\ $$ |$$  <strong><em><strong>|$$$$$$ $$ |$$ |$$  <strong>$$\ $$  <strong>$$\ $$  <em><em>$$\ $$  <strong>$$\  $$$$$$  |<br />
$$ $$$  $$ | $$$$$$$ |$$ /  $$ |$$ |$$ /      $$ $$$  $$ |$$ |$$ |  _<em>|$$ |  _</em>|$$ /  $$ |$$ |  _<em>|$$  <strong><em><em>/<br />
$$ |$  /$$ |$$  __$$ |$$ |  $$ |$$ |$$ |      $$ |$  /$$ |$$ |$$ |      $$ |      $$ |  $$ |$$ |      $$ |<br />
$$ | _/ $$ |$$$$$$$ |$$$$$$$ |$$ |$$$$$$$\ $$ | _/ $$ |$$ |$$ |      $$ |      $$$$$$  |$$ |      $$$$$$$$<br />
_</em>|     _</em>| _</strong></em></strong></em>| _</em></strong>$$ |_<em>| _</em></strong></strong></em>|_<em>|     _</em>|_<em>|_</em>|      __|       _</strong></strong><em>/ _<em>|      _</em>______|<br />
$$\   $$ |<br />
$$$$$$  |<br />
_</em>____/</p>
<p dir="auto">install log being saved to /home/pi/install.log<br />
Installing helper tools …<br />
E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).<br />
Updating packages …<br />
bash: line 141: pv: command not found<br />
Check current Node installation …<br />
Node currently installed. Checking version number.<br />
node: error while loading shared libraries: libnode.so.72: cannot open shared object file: No such file or directory<br />
Minimum Node version: v14.0.0<br />
Installed Node version: V1.0.0<br />
Node should be upgraded.<br />
Installing Node.js …<br />
Reading package lists… Done<br />
Building dependency tree… Done<br />
Reading state information… Done<br />
The following packages were automatically installed and are no longer required:<br />
gyp libc-ares2 libfuse2 libjs-highlight.js libjs-inherits libjs-is-typedarray libjs-psl<br />
libjs-typedarray-to-buffer libssl-dev libuv1-dev node-abbrev node-agent-base node-ajv node-ansi node-ansi-regex<br />
node-ansi-styles node-ansistyles node-aproba node-archy node-are-we-there-yet node-asap node-asn1<br />
node-assert-plus node-asynckit node-aws-sign2 node-aws4 node-balanced-match node-bcrypt-pbkdf<br />
node-brace-expansion node-builtins node-cacache node-caseless node-chalk node-chownr node-clone<br />
node-color-convert node-color-name node-colors node-columnify node-combined-stream node-concat-map<br />
node-console-control-strings node-copy-concurrently node-core-util-is node-dashdash node-debug node-defaults<br />
node-delayed-stream node-delegates node-depd node-ecc-jsbn node-encoding node-err-code node-escape-string-regexp<br />
node-extend node-extsprintf node-fast-deep-equal node-forever-agent node-form-data node-fs-write-stream-atomic<br />
node-fs.realpath node-function-bind node-gauge node-getpass node-glob node-graceful-fs node-har-schema<br />
node-har-validator node-has-flag node-has-unicode node-hosted-git-info node-http-signature node-https-proxy-agent<br />
node-iconv-lite node-iferr node-imurmurhash node-indent-string node-inflight node-inherits node-ini node-ip<br />
node-ip-regex node-is-typedarray node-isarray node-isexe node-isstream node-jsbn node-json-parse-better-errors<br />
node-json-schema node-json-schema-traverse node-json-stable-stringify node-json-stringify-safe node-jsonify<br />
node-jsonparse node-jsonstream node-jsprim node-leven node-lockfile node-lru-cache node-mime node-mime-types<br />
node-minimatch node-mkdirp node-move-concurrently node-ms node-mute-stream node-nopt node-normalize-package-data<br />
node-npm-bundled node-npm-package-arg node-npmlog node-number-is-nan node-oauth-sign node-object-assign node-once<br />
node-opener node-osenv node-p-map node-path-is-absolute node-performance-now node-process-nextick-args<br />
node-promise-inflight node-promise-retry node-promzard node-psl node-puka node-punycode node-qs node-read<br />
node-read-package-json node-readable-stream node-request node-resolve node-resolve-from node-retry node-rimraf<br />
node-run-queue node-safe-buffer node-semver node-set-blocking node-signal-exit node-slash node-spdx-correct<br />
node-spdx-exceptions node-spdx-expression-parse node-spdx-license-ids node-sshpk node-ssri node-string-decoder<br />
node-string-width node-strip-ansi node-supports-color node-tar node-text-table node-through node-tough-cookie<br />
node-tunnel-agent node-tweetnacl node-typedarray-to-buffer node-unique-filename node-universalify node-uri-js<br />
node-util-deprecate node-uuid node-validate-npm-package-license node-validate-npm-package-name node-verror<br />
node-wcwidth.js node-which node-wide-align node-wrappy node-write-file-atomic node-yallist nodejs-doc<br />
python-is-python2<br />
Use ‘sudo apt autoremove’ to remove them.<br />
The following packages will be upgraded:<br />
nodejs<br />
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.<br />
Need to get 0 B/23.0 MB of archives.<br />
After this operation, 115 MB of additional disk space will be used.<br />
apt-listchanges: Reading changelogs…<br />
(Reading database … 168913 files and directories currently installed.)<br />
Preparing to unpack …/nodejs_14.18.2-deb-1nodesource1_armhf.deb …<br />
Unpacking nodejs (14.18.2-deb-1nodesource1) over (12.22.5~dfsg-2~11u1) …<br />
dpkg: error processing archive /var/cache/apt/archives/nodejs_14.18.2-deb-1nodesource1_armhf.deb (–unpack):<br />
trying to overwrite ‘/usr/share/doc/nodejs/api/fs.html’, which is also in package nodejs-doc 12.22.5~dfsg-2~11u1<br />
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)<br />
Errors were encountered while processing:<br />
/var/cache/apt/archives/nodejs_14.18.2-deb-1nodesource1_armhf.deb<br />
E: Sub-process /usr/bin/dpkg returned an error code (1)<br />
node version is node: error while loading shared libraries: libnode.so.72: cannot open shared object file: No such file or directory<br />
node: error while loading shared libraries: libnode.so.72: cannot open shared object file: No such file or directory<br />
Node.js installation Done! version=<br />
Check current NPM installation …<br />
npm is not installed.<br />
Installing npm …<br />
E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).<br />
sudo: npm: command not found<br />
bash: line 275: npm: command not found<br />
npm installation Done! version=V<br />
Cloning MagicMirror …<br />
Cloning into ‘MagicMirror’…<br />
remote: Enumerating objects: 325, done.<br />
remote: Counting objects: 100% (325/325), done.<br />
remote: Compressing objects: 100% (290/290), done.<br />
remote: Total 325 (delta 52), reused 139 (delta 22), pack-reused 0<br />
Receiving objects: 100% (325/325), 478.06 KiB | 529.00 KiB/s, done.<br />
Resolving deltas: 100% (52/52), done.<br />
Cloning MagicMirror Done!<br />
touch: cannot touch ‘/etc/chromium-browser/customizations/01-disable-update-check’: No such file or directory<br />
tee: /etc/chromium-browser/customizations/01-disable-update-check: No such file or directory<br />
Installing dependencies …<br />
bash: line 340: npm: command not found<br />
Unable to install dependencies!<br />
pi@raspberrypi:~ $</p>
]]></description><link>https://forum.magicmirror.builders/post/97639</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/97639</guid><dc:creator><![CDATA[d_n_i]]></dc:creator><pubDate>Mon, 20 Dec 2021 03:38:29 GMT</pubDate></item><item><title><![CDATA[Reply to bash: npm: command not found RPI 3B on Mon, 20 Dec 2021 03:28:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/d_n_i" aria-label="Profile: d_n_i">@<bdi>d_n_i</bdi></a> read the page. if your native language is not English  translate the page.</p>
]]></description><link>https://forum.magicmirror.builders/post/97638</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/97638</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 20 Dec 2021 03:28:55 GMT</pubDate></item><item><title><![CDATA[Reply to bash: npm: command not found RPI 3B on Mon, 20 Dec 2021 03:24:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> thanks for the reply!  Can you direct me any further on what specifically that looks like? I’m not quite sure I understand where on the link you gave to look.</p>
]]></description><link>https://forum.magicmirror.builders/post/97637</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/97637</guid><dc:creator><![CDATA[d_n_i]]></dc:creator><pubDate>Mon, 20 Dec 2021 03:24:25 GMT</pubDate></item><item><title><![CDATA[Reply to bash: npm: command not found RPI 3B on Mon, 20 Dec 2021 03:26:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/d_n_i" aria-label="Profile: d_n_i">@<bdi>d_n_i</bdi></a> use my install script<br />
many platforms don’t have node &amp; npm installed</p>
<p dir="auto">see<br />
<a href="https://github.com/sdetweil/MagicMirror_scripts" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/sdetweil/MagicMirror_scripts</a></p>
<p dir="auto">have to delete the MagicMirror folder first.</p>
]]></description><link>https://forum.magicmirror.builders/post/97634</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/97634</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 20 Dec 2021 03:26:51 GMT</pubDate></item></channel></rss>