how to solve npm deprecation installation error - node.js

I am new to node-red interface, and I am trying to set up a distributed flow using DNR editor created by JS Foundation. While attempting to install via both npm and git clone I have encountered many errors that prevented installation. Could someone please help me take a look at the problem and see what I have done wrong? I have copied the shell log to a text file with some images attached. Thanks in advance for your time and attention!
I tried to reinstall one "deprecated" package (bcrypt#3.0.) but the npm deprecate message still persist.
C:\Users\WILL>npm install -g dnr-editor
npm WARN deprecated bcrypt#1.0.3: bcrypt < v2.0.0 is susceptible to bcrypt wrap-around bug. Upgrade to bcrypt >= v2.0.0 for improved support for newer bcrypt hashes
npm WARN deprecated mongodb#2.1.21: Please upgrade to 2.2.19 or higher
npm WARN deprecated node-uuid#1.4.8: Use uuid module instead
npm WARN deprecated mailparser#0.6.2: Mailparser versions older than v2.3.0 are deprecated
npm WARN deprecated nodemailer#1.11.0: All versions below 4.0.1 of Nodemailer are deprecated. See https://nodemailer.com/status/
npm WARN deprecated mimelib#0.3.1: This project is unmaintained
npm WARN deprecated mailcomposer#2.1.0: This project is unmaintained
npm WARN deprecated buildmail#2.0.0: This project is unmaintained
C:\Users\WILL\AppData\Roaming\npm\dnr-editor -> C:\Users\WILL\AppData\Roaming\npm\node_modules\dnr-editor\red.js

npm uninstall --save bcrypt
&&
npm install --save bcryptjs

Related

Unable to install Expo CLI. (NPM WARN Deprecated)

So, I'm running the following command to install it: I'm using MACOS
npm install -g expo-cli
And this is what I get:
npm WARN deprecated u/hapi/joi#17.1.1: Switch to 'npm install joi'
npm WARN deprecated u/hapi/address#4.1.0: Moved to 'npm install u/sideway/address'
npm WARN deprecated u/hapi/formula#2.0.0: Moved to 'npm install u/sideway/formula'
npm WARN deprecated u/hapi/pinpoint#2.0.0: Moved to 'npm install u/sideway/pinpoint'
npm WARN deprecated core-js#2.6.12: core-js#<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated request#2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator#5.1.5: this library is no longer supported
npm WARN deprecated resolve-url#0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix#0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated chokidar#2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated fsevents#1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated joi#11.4.0: 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 topo#2.0.2: 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 hoek#4.2.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).
/Users/lachitbaruah/.npm-global/bin/expo-cli -> /Users/lachitbaruah/.npm-global/lib/node_modules/expo-cli/bin/expo.js
/Users/lachitbaruah/.npm-global/bin/expo -> /Users/lachitbaruah/.npm-global/lib/node_modules/expo-cli/bin/expo.js
npm WARN u/pmmmwh/react-refresh-webpack-plugin#0.3.3 requires a peer of react-refresh#^0.8.2 but none is installed. You must install peer dependencies yourself.
expo-cli#4.4.4
updated 14 packages in 102.228s
I have tried almost everything!! But I want the solution for this particular thing.
I found a fix that don't require using yarn or enabling an unsafe flag as of today (12 Mar 2022), and it's all because of this issue: https://github.com/npm/cli/issues/3472
Basically npm can't fix the dependencies (v. 7 or 8), simply run npm install -g npm#6 and continue with the installation process.
On an editorial note, it's pretty insane that a year old bug carried over into 2 majors prevents the installation of something as popular as React Native. I really hope this answer will help people like me who try to get started because I almost abandoned myself.
Try sudo npm install expo-cli -g --unsafe-perm
Run these two commands
sudo npm install npm#latest -g
sudo npm install -g expo-cli

npm install complains 'node' is not recognized as an internal or external command while node is in the path

I have am doing Jenkins build now, but at some point of doing "npm install" I got a error message saying "'node' is not recognized as an internal or external command, operable program or batch file." However, I do have node in my path and I have verify that but doing "where node" before npm install.
Both "where node" and "npm install" are located in the same Execute Windows batch command section of my Jenkins job.
I have read some posts. Sometimes this error is encountered for not handling the spaces inside the path correct. I do not have space in my path.
I also do not have convenient access to the machine for the build environment. I can only try Jenkins' Execute Windows batch command.
below is my build log inlcuding the error message.
npm install
14:48:56 npm WARN deprecated ng2-bootstrap#1.6.3: ng2-bootstrap is renamed to ngx-bootstrap, please do npm i ngx-bootstrap -S
14:48:57 npm WARN deprecated hapi#13.5.3: This version is no longer maintained. Please upgrade to the latest version of the framework.
14:48:58 npm WARN deprecated gulp-util#3.0.7: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
14:48:59 npm WARN deprecated joi#8.1.1: This version is no longer maintained. Please upgrade to the latest version.
14:48:59 npm WARN deprecated joi#10.6.0: This version is no longer maintained. Please upgrade to the latest version.
14:48:59 npm WARN deprecated boom#3.2.2: This version is no longer maintained. Please upgrade to the latest version.
14:48:59 npm WARN deprecated joi#8.4.2: This version is no longer maintained. Please upgrade to the latest version.
14:48:59 npm WARN deprecated call#3.0.4: This version is no longer maintained. Please upgrade to the latest version.
14:48:59 npm WARN deprecated kilt#2.0.2: This module is no longer maintained.
14:48:59 npm WARN deprecated hoek#3.0.4: This version is no longer maintained. Please upgrade to the latest version.
14:48:59 npm WARN deprecated peekaboo#2.0.2: This module is no longer maintained.
14:48:59 npm WARN deprecated statehood#4.1.0: This version is no longer maintained. Please upgrade to the latest version.
14:48:59 npm WARN deprecated subtext#4.4.1: This version is no longer maintained. Please upgrade to the latest version.
14:48:59 npm WARN deprecated fast-safe-stringify#1.0.9: use 1.1.0+ see https://github.com/davidmarkclements/fast-safe-stringify/issues/4
14:48:59 npm WARN deprecated browserslist#1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
14:49:00 npm WARN deprecated boom#4.3.1: This version is no longer maintained. Please upgrade to the latest version.
14:49:00 npm WARN deprecated joi#9.2.0: This version is no longer maintained. Please upgrade to the latest version.
14:49:05 npm WARN deprecated boom#3.2.0: This version is no longer maintained. Please upgrade to the latest version.
14:49:05 npm WARN deprecated call#3.0.2: This version is no longer maintained. Please upgrade to the latest version.
14:49:05 npm WARN deprecated joi#8.1.0: This version is no longer maintained. Please upgrade to the latest version.
14:49:05 npm WARN deprecated kilt#2.0.1: This module is no longer maintained.
14:49:05 npm WARN deprecated peekaboo#2.0.1: This module is no longer maintained.
14:49:05 npm WARN deprecated statehood#4.0.1: This version is no longer maintained. Please upgrade to the latest version.
14:49:05 npm WARN deprecated subtext#4.0.3: This version is no longer maintained. Please upgrade to the latest version.
14:49:05 npm WARN deprecated wreck#7.2.1: This version is no longer maintained. Please upgrade to the latest version.
14:55:08
14:55:08 > node-sass#4.5.3 install F:\JENKINS-SLAVE\workspace\some_appcode\jenkins_job_code\app_folder\node_modules\node-sass
14:55:08 > node scripts/install.js
14:55:08
14:55:08 'node' is not recognized as an internal or external command,
14:55:08 operable program or batch file.
Add nodejs new system variable to your PC under Control Panel -> System -> Advanced System Settings
;C:\Program Files\nodejs\
After that, re-run command:
npm
The actual solution was to clear the cache of Jenkins' VM and it will work. It was a cache issue of Jenkins.

Can't install Gulp on node 8.12.0

When I try the sudo npm install --save-dev gulp command, it returns this error:
npm WARN deprecated gulp-util#3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated graceful-fs#3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
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 minimatch#0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs#1.2.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN gus#1.0.0 No description
npm WARN gus#1.0.0 No repository field.
I've reinstalled gulp (multiple times) and node (& npm) and it still won't work.
What do I do?
(I'm using macOS 10.13.6 and I installed node via homebrew)
Why are you trying to install with --save-dev?
Installing Gulp globally should be done with --global
Have you checked their installation guide?
https://gulpjs.org/getting-started.html

How to suppress deprecation warning from npm/nvm in zsh?

I am using nvm for managing node versions. I have installed it as a plugin to zsh via zsh-nvm. I have installed two versions of node - v6.1.0 and v.0.10.42. Since I am working on a project, which uses the latter one, I have set it at the default one. Now, every time I open a terminal window, I get these warnings:
npm WARN deprecated This version of npm lacks support for important features,
npm WARN deprecated such as scoped packages, offered by the primary npm
npm WARN deprecated registry. Consider upgrading to at least npm#2, if not the
npm WARN deprecated latest stable version. To upgrade to npm#2, run:
npm WARN deprecated
npm WARN deprecated npm -g install npm#latest-2
npm WARN deprecated
npm WARN deprecated To upgrade to the latest stable version, run:
npm WARN deprecated
npm WARN deprecated npm -g install npm#latest
npm WARN deprecated
npm WARN deprecated (Depending on how Node.js was installed on your system, you
npm WARN deprecated may need to prefix the preceding commands with `sudo`, or if
npm WARN deprecated on Windows, run them from an Administrator prompt.)
npm WARN deprecated
npm WARN deprecated If you're running the version of npm bundled with
npm WARN deprecated Node.js 0.10 LTS, be aware that the next version of 0.10 LTS
npm WARN deprecated will be bundled with a version of npm#2, which has some small
npm WARN deprecated backwards-incompatible changes made to `npm run-script` and
npm WARN deprecated semver behavior.
I tried adding a ~/.npmrc file, in which I put loglevel="error", but I still get these warnings. I guess I need to put some setting in my .zshrc file. Could you point me to which one?
As far as I'm aware, the only way to suppress these warnings (from npm) is to use a version of npm that doesn't emit them.
NODE_NO_WARNINGS=1 npm install ...

Install ember#1.13.13 on Windows 7 and it keeps hanging on the extract of bower

I'm trying to "npm install -g ember#1.13.13" on Windows 7 and it keeps hanging on the extract of bower. I've tried clearing the npm cache and the bower cache but it still hangs. I'm installing that specific version of ember as that is the version required for the project I'm involved with. Here is the command window output;
C:\Windows\System32>npm install -g ember-cli#1.13.13
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 graceful-fs#2.0.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs#^4.0.0 as soon as possible. Use 'npm ls gracef
ul-fs' to find it in the tree.
npm WARN deprecated lodash-node#2.4.1: This package has been discontinued in favor of lodash#^4.0.0.
npm WARN deprecated lodash-node#3.10.2: This package has been discontinued in favor of lodash#^4.0.0.
npm WARN deprecated cross-spawn-async#2.2.4: cross-spawn no longer requires a build toolchain, use it instead!
npm WARN deprecated socket.io-pure#1.3.12: socket.io-pure is no longer maintained as the original socket.io removed all native dependencies. Please use the original.
npm WARN deprecated lodash#2.3.0: lodash#<3.0.0 is no longer maintained. Upgrade to lodash#^4.0.0.
npm WARN deprecated minimatch#0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated engine.io-pure#1.5.9: engine.io-purce is no longer maintained as the original engine.io removed all native dependencies. Please use the original.
npm WARN deprecated socket.io-client-pure#1.3.12: socket.io-client-pure is no longer maintained as the original socket.io removed all native dependencies. Please use the original.
npm WARN deprecated ws-pure#0.8.0: ws-pure is no longer maintained as the original ws removed all native dependencies. Please use the original ws.
npm WARN deprecated engine.io-client-pure#1.5.9: engine-io-client-pure is no longer maintained as the original engine-io-client removed all native dependencies. Please use the orig
inal.
extract:bower ▌ ╢██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
These are the installed versions of
node: v4.4.7
npm: 3.3.12
bower: 1.7.9

Resources