Node-Red Basic Authentication Installation ErrorsNode installation: No module named gyp.commonWhy is...
This message is flooding my syslog, how to find where it comes from?
Spoken encryption
What are the exact meanings of roll, pitch and yaw?
(1 of 11: Numberlink) What is Pyramid Cult's Favorite Activity?
Why can't my huge trees be chopped down?
Using "Kollege" as "university friend"?
kids pooling money for Lego League and taxes
Why isn't there a serious attempt at creating a third mass-appeal party in the US?
Is it legal to use cash pulled from a credit card to pay the monthly payment on that credit card?
What does "see" in "the Holy See" mean?
Does academia have a lazy work culture?
How to get the two pictures aligned
What was the rationale behind 36 bit computer architectures?
How to contact Apple to check if they will permit an iOS app?
Inadvertently nuked my disk permission structure - why?
Where to place an artificial gland in the human body?
Trapped in an ocean Temple in Minecraft?
The seven story archetypes. Are they truly all of them?
Is it legal for private citizens to "impound" e-scooters?
Explanation for a joke about a three-legged dog that walks into a bar
On the strategic interest of giving long lasting stock orders
High income, sudden windfall
Is there anything wrong with Thrawn?
Which Roman general was killed by his own soldiers for not letting them to loot a newly conquered city?
Node-Red Basic Authentication Installation Errors
Node installation: No module named gyp.commonWhy is permission denied for npm start using node-dev?stop node server in tmuxLaunch node & chrome after system bootNode JS - get FQDNUsing an older version of Node and NPM on FreeBSDHow to fix node in armv5npm installation not working under Debian Stretchnpm : Depends: node-gyp (>= 3.6.2~) but it is not going to be installedUsing different node versions on centos 6
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
Node-RED and NPM 6.10.2 were installed per these instructions and an attempt to install basic authentication resulted in errors.
The log indicates warnings of permissions problems. What are the next steps for root-cause diagnosis and resolution of error messages?
Tests performed:
pi@raspberrypi:~ $ ls /usr/lib/node_modules/node-red-admin/node_modules/
ajv delayed-stream jsbn read
asn1 ecc-jsbn json-schema request
assert-plus extend json-schema-traverse safe-buffer
asynckit extsprintf json-stringify-safe safer-buffer
aws4 fast-deep-equal jsprim sshpk
aws-sign2 fast-json-stable-stringify mime-db tough-cookie
bcryptjs forever-agent mime-types tunnel-agent
bcrypt-pbkdf form-data minimist tweetnacl
caseless getpass mute-stream uri-js
cli-table har-schema oauth-sign uuid
colors har-validator performance-now verror
combined-stream http-signature psl when
core-util-is isstream punycode
dashdash is-typedarray qs
pi@raspberrypi:~ $ ls /usr/lib/node_modules/node-red-admin/node_modules/bcrypt/lib
ls: cannot access '/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/lib': No such file or directory
pi@raspberrypi:~ $ sudo ls -l /root/.cache/node-gyp/8.11.1
ls: cannot access '/root/.cache/node-gyp/8.11.1': No such file or directory
Failed remedy attempts
Change permissions:
pi@raspberrypi:~/.node-red $ sudo chmod -R 777 /usr/lib/node_modules/node-red-admin/node_modules/
pi@raspberrypi:~/.node-red $ ls -l s /usr/lib/node_modules/node-red-admin| grep node_modules
ls: cannot access 's': No such file or directory
/usr/lib/node_modules/node-red-admin:
drwxrwxrwx 57 root root 4096 Jul 26 14:13 node_modules
pi@raspberrypi:~/.node-red $ sudo npm install -g node-red-admin;date
Logs
NPM Install (no errors):
pi@raspberrypi:~ $ # https://bitluni.net/how-to-node-red
pi@raspberrypi:~ $ update-nodejs-and-nodered
npm now version 6.10.2
Security Install (errors below):
pi@raspberrypi:~ $ date
Fri Jul 26 12:10:23 EDT 2019
pi@raspberrypi:~ $ cd ~/.node-red
pi@raspberrypi:~/.node-red $ sudo npm install -g node-red-admin
/usr/bin/node-red-admin -> /usr/lib/node_modules/node-red-admin/node-red-admin.js
> bcrypt@3.0.6 install /usr/lib/node_modules/node-red-admin/node_modules/bcrypt
> node-pre-gyp install --fallback-to-build
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Pre-built binaries not installable for bcrypt@3.0.6 and node@8.11.1 (node-v57 ABI, glibc) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error EACCES: permission denied, mkdir '/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/lib'
gyp WARN EACCES user "nobody" does not have permission to access the dev dir "/root/.cache/node-gyp/8.11.1"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/.node-gyp'
gyp ERR! System Linux 4.19.57-v7+
gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/lib/binding/bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/lib/binding" "--napi_version=1" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v57"
gyp ERR! cwd /usr/lib/node_modules/node-red-admin/node_modules/bcrypt
gyp ERR! node -v v8.11.1
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/lib/binding/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/lib/binding --napi_version=1 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v57' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/usr/lib/node_modules/node-red-admin/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:126:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:214:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:925:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
node-pre-gyp ERR! System Linux 4.19.57-v7+
node-pre-gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/node-red-admin/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /usr/lib/node_modules/node-red-admin/node_modules/bcrypt
node-pre-gyp ERR! node -v v8.11.1
node-pre-gyp ERR! node-pre-gyp -v v0.12.0
node-pre-gyp ERR! not ok
Failed to execute '/usr/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/lib/binding/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/lib/binding --napi_version=1 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v57' (1)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bcrypt@3.0.6 (node_modules/node-red-admin/node_modules/bcrypt):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bcrypt@3.0.6 install: `node-pre-gyp install --fallback-to-build`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
+ node-red-admin@0.1.5
added 57 packages from 74 contributors in 33.973s
permissions raspberry-pi node.js npm
add a comment |
Node-RED and NPM 6.10.2 were installed per these instructions and an attempt to install basic authentication resulted in errors.
The log indicates warnings of permissions problems. What are the next steps for root-cause diagnosis and resolution of error messages?
Tests performed:
pi@raspberrypi:~ $ ls /usr/lib/node_modules/node-red-admin/node_modules/
ajv delayed-stream jsbn read
asn1 ecc-jsbn json-schema request
assert-plus extend json-schema-traverse safe-buffer
asynckit extsprintf json-stringify-safe safer-buffer
aws4 fast-deep-equal jsprim sshpk
aws-sign2 fast-json-stable-stringify mime-db tough-cookie
bcryptjs forever-agent mime-types tunnel-agent
bcrypt-pbkdf form-data minimist tweetnacl
caseless getpass mute-stream uri-js
cli-table har-schema oauth-sign uuid
colors har-validator performance-now verror
combined-stream http-signature psl when
core-util-is isstream punycode
dashdash is-typedarray qs
pi@raspberrypi:~ $ ls /usr/lib/node_modules/node-red-admin/node_modules/bcrypt/lib
ls: cannot access '/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/lib': No such file or directory
pi@raspberrypi:~ $ sudo ls -l /root/.cache/node-gyp/8.11.1
ls: cannot access '/root/.cache/node-gyp/8.11.1': No such file or directory
Failed remedy attempts
Change permissions:
pi@raspberrypi:~/.node-red $ sudo chmod -R 777 /usr/lib/node_modules/node-red-admin/node_modules/
pi@raspberrypi:~/.node-red $ ls -l s /usr/lib/node_modules/node-red-admin| grep node_modules
ls: cannot access 's': No such file or directory
/usr/lib/node_modules/node-red-admin:
drwxrwxrwx 57 root root 4096 Jul 26 14:13 node_modules
pi@raspberrypi:~/.node-red $ sudo npm install -g node-red-admin;date
Logs
NPM Install (no errors):
pi@raspberrypi:~ $ # https://bitluni.net/how-to-node-red
pi@raspberrypi:~ $ update-nodejs-and-nodered
npm now version 6.10.2
Security Install (errors below):
pi@raspberrypi:~ $ date
Fri Jul 26 12:10:23 EDT 2019
pi@raspberrypi:~ $ cd ~/.node-red
pi@raspberrypi:~/.node-red $ sudo npm install -g node-red-admin
/usr/bin/node-red-admin -> /usr/lib/node_modules/node-red-admin/node-red-admin.js
> bcrypt@3.0.6 install /usr/lib/node_modules/node-red-admin/node_modules/bcrypt
> node-pre-gyp install --fallback-to-build
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Pre-built binaries not installable for bcrypt@3.0.6 and node@8.11.1 (node-v57 ABI, glibc) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error EACCES: permission denied, mkdir '/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/lib'
gyp WARN EACCES user "nobody" does not have permission to access the dev dir "/root/.cache/node-gyp/8.11.1"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/.node-gyp'
gyp ERR! System Linux 4.19.57-v7+
gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/lib/binding/bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/lib/binding" "--napi_version=1" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v57"
gyp ERR! cwd /usr/lib/node_modules/node-red-admin/node_modules/bcrypt
gyp ERR! node -v v8.11.1
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/lib/binding/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/lib/binding --napi_version=1 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v57' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/usr/lib/node_modules/node-red-admin/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:126:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:214:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:925:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
node-pre-gyp ERR! System Linux 4.19.57-v7+
node-pre-gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/node-red-admin/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /usr/lib/node_modules/node-red-admin/node_modules/bcrypt
node-pre-gyp ERR! node -v v8.11.1
node-pre-gyp ERR! node-pre-gyp -v v0.12.0
node-pre-gyp ERR! not ok
Failed to execute '/usr/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/lib/binding/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/lib/binding --napi_version=1 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v57' (1)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bcrypt@3.0.6 (node_modules/node-red-admin/node_modules/bcrypt):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bcrypt@3.0.6 install: `node-pre-gyp install --fallback-to-build`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
+ node-red-admin@0.1.5
added 57 packages from 74 contributors in 33.973s
permissions raspberry-pi node.js npm
add a comment |
Node-RED and NPM 6.10.2 were installed per these instructions and an attempt to install basic authentication resulted in errors.
The log indicates warnings of permissions problems. What are the next steps for root-cause diagnosis and resolution of error messages?
Tests performed:
pi@raspberrypi:~ $ ls /usr/lib/node_modules/node-red-admin/node_modules/
ajv delayed-stream jsbn read
asn1 ecc-jsbn json-schema request
assert-plus extend json-schema-traverse safe-buffer
asynckit extsprintf json-stringify-safe safer-buffer
aws4 fast-deep-equal jsprim sshpk
aws-sign2 fast-json-stable-stringify mime-db tough-cookie
bcryptjs forever-agent mime-types tunnel-agent
bcrypt-pbkdf form-data minimist tweetnacl
caseless getpass mute-stream uri-js
cli-table har-schema oauth-sign uuid
colors har-validator performance-now verror
combined-stream http-signature psl when
core-util-is isstream punycode
dashdash is-typedarray qs
pi@raspberrypi:~ $ ls /usr/lib/node_modules/node-red-admin/node_modules/bcrypt/lib
ls: cannot access '/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/lib': No such file or directory
pi@raspberrypi:~ $ sudo ls -l /root/.cache/node-gyp/8.11.1
ls: cannot access '/root/.cache/node-gyp/8.11.1': No such file or directory
Failed remedy attempts
Change permissions:
pi@raspberrypi:~/.node-red $ sudo chmod -R 777 /usr/lib/node_modules/node-red-admin/node_modules/
pi@raspberrypi:~/.node-red $ ls -l s /usr/lib/node_modules/node-red-admin| grep node_modules
ls: cannot access 's': No such file or directory
/usr/lib/node_modules/node-red-admin:
drwxrwxrwx 57 root root 4096 Jul 26 14:13 node_modules
pi@raspberrypi:~/.node-red $ sudo npm install -g node-red-admin;date
Logs
NPM Install (no errors):
pi@raspberrypi:~ $ # https://bitluni.net/how-to-node-red
pi@raspberrypi:~ $ update-nodejs-and-nodered
npm now version 6.10.2
Security Install (errors below):
pi@raspberrypi:~ $ date
Fri Jul 26 12:10:23 EDT 2019
pi@raspberrypi:~ $ cd ~/.node-red
pi@raspberrypi:~/.node-red $ sudo npm install -g node-red-admin
/usr/bin/node-red-admin -> /usr/lib/node_modules/node-red-admin/node-red-admin.js
> bcrypt@3.0.6 install /usr/lib/node_modules/node-red-admin/node_modules/bcrypt
> node-pre-gyp install --fallback-to-build
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Pre-built binaries not installable for bcrypt@3.0.6 and node@8.11.1 (node-v57 ABI, glibc) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error EACCES: permission denied, mkdir '/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/lib'
gyp WARN EACCES user "nobody" does not have permission to access the dev dir "/root/.cache/node-gyp/8.11.1"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/.node-gyp'
gyp ERR! System Linux 4.19.57-v7+
gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/lib/binding/bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/lib/binding" "--napi_version=1" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v57"
gyp ERR! cwd /usr/lib/node_modules/node-red-admin/node_modules/bcrypt
gyp ERR! node -v v8.11.1
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/lib/binding/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/lib/binding --napi_version=1 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v57' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/usr/lib/node_modules/node-red-admin/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:126:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:214:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:925:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
node-pre-gyp ERR! System Linux 4.19.57-v7+
node-pre-gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/node-red-admin/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /usr/lib/node_modules/node-red-admin/node_modules/bcrypt
node-pre-gyp ERR! node -v v8.11.1
node-pre-gyp ERR! node-pre-gyp -v v0.12.0
node-pre-gyp ERR! not ok
Failed to execute '/usr/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/lib/binding/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/lib/binding --napi_version=1 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v57' (1)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bcrypt@3.0.6 (node_modules/node-red-admin/node_modules/bcrypt):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bcrypt@3.0.6 install: `node-pre-gyp install --fallback-to-build`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
+ node-red-admin@0.1.5
added 57 packages from 74 contributors in 33.973s
permissions raspberry-pi node.js npm
Node-RED and NPM 6.10.2 were installed per these instructions and an attempt to install basic authentication resulted in errors.
The log indicates warnings of permissions problems. What are the next steps for root-cause diagnosis and resolution of error messages?
Tests performed:
pi@raspberrypi:~ $ ls /usr/lib/node_modules/node-red-admin/node_modules/
ajv delayed-stream jsbn read
asn1 ecc-jsbn json-schema request
assert-plus extend json-schema-traverse safe-buffer
asynckit extsprintf json-stringify-safe safer-buffer
aws4 fast-deep-equal jsprim sshpk
aws-sign2 fast-json-stable-stringify mime-db tough-cookie
bcryptjs forever-agent mime-types tunnel-agent
bcrypt-pbkdf form-data minimist tweetnacl
caseless getpass mute-stream uri-js
cli-table har-schema oauth-sign uuid
colors har-validator performance-now verror
combined-stream http-signature psl when
core-util-is isstream punycode
dashdash is-typedarray qs
pi@raspberrypi:~ $ ls /usr/lib/node_modules/node-red-admin/node_modules/bcrypt/lib
ls: cannot access '/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/lib': No such file or directory
pi@raspberrypi:~ $ sudo ls -l /root/.cache/node-gyp/8.11.1
ls: cannot access '/root/.cache/node-gyp/8.11.1': No such file or directory
Failed remedy attempts
Change permissions:
pi@raspberrypi:~/.node-red $ sudo chmod -R 777 /usr/lib/node_modules/node-red-admin/node_modules/
pi@raspberrypi:~/.node-red $ ls -l s /usr/lib/node_modules/node-red-admin| grep node_modules
ls: cannot access 's': No such file or directory
/usr/lib/node_modules/node-red-admin:
drwxrwxrwx 57 root root 4096 Jul 26 14:13 node_modules
pi@raspberrypi:~/.node-red $ sudo npm install -g node-red-admin;date
Logs
NPM Install (no errors):
pi@raspberrypi:~ $ # https://bitluni.net/how-to-node-red
pi@raspberrypi:~ $ update-nodejs-and-nodered
npm now version 6.10.2
Security Install (errors below):
pi@raspberrypi:~ $ date
Fri Jul 26 12:10:23 EDT 2019
pi@raspberrypi:~ $ cd ~/.node-red
pi@raspberrypi:~/.node-red $ sudo npm install -g node-red-admin
/usr/bin/node-red-admin -> /usr/lib/node_modules/node-red-admin/node-red-admin.js
> bcrypt@3.0.6 install /usr/lib/node_modules/node-red-admin/node_modules/bcrypt
> node-pre-gyp install --fallback-to-build
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Pre-built binaries not installable for bcrypt@3.0.6 and node@8.11.1 (node-v57 ABI, glibc) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error EACCES: permission denied, mkdir '/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/lib'
gyp WARN EACCES user "nobody" does not have permission to access the dev dir "/root/.cache/node-gyp/8.11.1"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/.node-gyp'
gyp ERR! System Linux 4.19.57-v7+
gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/lib/binding/bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/lib/binding" "--napi_version=1" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v57"
gyp ERR! cwd /usr/lib/node_modules/node-red-admin/node_modules/bcrypt
gyp ERR! node -v v8.11.1
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/lib/binding/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/lib/binding --napi_version=1 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v57' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/usr/lib/node_modules/node-red-admin/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:126:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:214:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:925:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
node-pre-gyp ERR! System Linux 4.19.57-v7+
node-pre-gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/node-red-admin/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /usr/lib/node_modules/node-red-admin/node_modules/bcrypt
node-pre-gyp ERR! node -v v8.11.1
node-pre-gyp ERR! node-pre-gyp -v v0.12.0
node-pre-gyp ERR! not ok
Failed to execute '/usr/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/lib/binding/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/usr/lib/node_modules/node-red-admin/node_modules/bcrypt/lib/binding --napi_version=1 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v57' (1)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bcrypt@3.0.6 (node_modules/node-red-admin/node_modules/bcrypt):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bcrypt@3.0.6 install: `node-pre-gyp install --fallback-to-build`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
+ node-red-admin@0.1.5
added 57 packages from 74 contributors in 33.973s
permissions raspberry-pi node.js npm
permissions raspberry-pi node.js npm
edited 29 mins ago
muru
42.4k5 gold badges103 silver badges177 bronze badges
42.4k5 gold badges103 silver badges177 bronze badges
asked 7 hours ago
gatorbackgatorback
3311 silver badge13 bronze badges
3311 silver badge13 bronze badges
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f532366%2fnode-red-basic-authentication-installation-errors%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f532366%2fnode-red-basic-authentication-installation-errors%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown