Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Installation stuck both from palette and command-line #17

Open
Killerloop2 opened this issue Aug 30, 2021 · 4 comments
Open

[BUG] Installation stuck both from palette and command-line #17

Killerloop2 opened this issue Aug 30, 2021 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@Killerloop2
Copy link

Describe the bug
Installing the package both from palette and "npm i unified-red" from the NPM folder remains stuck forever on : "idealtree: request: sill fetch manifest node-gyp@3.x"

To Reproduce
Steps to reproduce the behavior:

  1. Go to .node-red folder
  2. Execute "npm i unified-red"

Expected behavior
A complete installation of unified-red

Environment (please select one or more):
[x ] Node-RED
[ ] Unified-RED
[ ] Backend

Additional context
Issues happened both on Windows 10 system and Ubuntu 20.04 LTS OS

@Killerloop2 Killerloop2 added the bug Something isn't working label Aug 30, 2021
@wac-dirka
Copy link
Contributor

Hi Killerloop2,

I was able to successfully install on Ubuntu 20.04.01 LTS using node.js v12.22.6 and npm 6.14.15.

What version of nodejs and npm are you currently running?

@wac-dirka wac-dirka self-assigned this Sep 1, 2021
@Killerloop2
Copy link
Author

Hi wac-dirka,
I am running on:

node v16.8.0
npm 7.21.1
node-red 2.0.5

I've tried to run "sudo npm i unified-red --verbose" to understand what is happening and apparently the installation process gets stuck on repeating respectively:

"npm timing idealtree:node_modules/@angular/animations"
"npm timing idealtree:node_modules/@agm/core"

which reports as completed but looks like it is in a loop as they get repeated over and over non stop.

@wac-dirka
Copy link
Contributor

I was able to reproduce the issue on node 16.8.0 and npm 7.21.1. We have some dependencies that don’t currently build under v16 and will need to investigate further. If possible, please try the latest LTS version 14.17.6 (npm 6.14.15). You should be able to build with that.

@OriolFM
Copy link

OriolFM commented Apr 9, 2024

I also had issues installing unified-red on Windows Server. Installing it with Manage Pallette doesn't work.

Next, I decided to wipe Node-Red and do a clean install. My Node.js version is v20.11.1, and npm 10.5.1.

This is the output:

npm i unified-red
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @angular/material-moment-adapter@10.2.7
npm WARN Found: @angular/core@9.1.13
npm WARN node_modules/unified-red/node_modules/@angular/core
npm WARN @angular/core@"^9.1.0" from unified-red@2.4.0
npm WARN node_modules/unified-red
npm WARN unified-red@"" from the root project
npm WARN 13 more (@angular/animations, @angular/cdk, @angular/common, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer @angular/core@"^10.0.0 || ^11.0.0-0" from @angular/material-moment-adapter@10.2.7
npm WARN node_modules/unified-red/node_modules/@angular/material-moment-adapter
npm WARN @angular/material-moment-adapter@"^10.1.2" from unified-red@2.4.0
npm WARN node_modules/unified-red
npm WARN
npm WARN Conflicting peer dependency: @angular/core@11.2.14
npm WARN node_modules/@angular/core
npm WARN peer @angular/core@"^10.0.0 || ^11.0.0-0" from @angular/material-moment-adapter@10.2.7
npm WARN node_modules/unified-red/node_modules/@angular/material-moment-adapter
npm WARN @angular/material-moment-adapter@"^10.1.2" from unified-red@2.4.0
npm WARN node_modules/unified-red
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @angular/material-moment-adapter@10.2.7
npm WARN Found: @angular/material@9.2.4
npm WARN node_modules/unified-red/node_modules/@angular/material
npm WARN @angular/material@"^9.2.0" from unified-red@2.4.0
npm WARN node_modules/unified-red
npm WARN unified-red@"
" from the root project
npm WARN 1 more (mat-table-exporter)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer @angular/material@"10.2.7" from @angular/material-moment-adapter@10.2.7
npm WARN node_modules/unified-red/node_modules/@angular/material-moment-adapter
npm WARN @angular/material-moment-adapter@"^10.1.2" from unified-red@2.4.0
npm WARN node_modules/unified-red
npm WARN
npm WARN Conflicting peer dependency: @angular/material@10.2.7
npm WARN node_modules/@angular/material
npm WARN peer @angular/material@"10.2.7" from @angular/material-moment-adapter@10.2.7
npm WARN node_modules/unified-red/node_modules/@angular/material-moment-adapter
npm WARN @angular/material-moment-adapter@"^10.1.2" from unified-red@2.4.0
npm WARN node_modules/unified-red
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @ng-idle/core@8.0.0-beta.4
npm WARN Found: @angular/common@9.1.13
npm WARN node_modules/unified-red/node_modules/@angular/common
npm WARN @angular/common@"^9.1.0" from unified-red@2.4.0
npm WARN node_modules/unified-red
npm WARN unified-red@"" from the root project
npm WARN 11 more (@angular/cdk, @angular/forms, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer @angular/common@"^8.0.0" from @ng-idle/core@8.0.0-beta.4
npm WARN node_modules/unified-red/node_modules/@ng-idle/core
npm WARN @ng-idle/core@"^8.0.0-beta.4" from unified-red@2.4.0
npm WARN node_modules/unified-red
npm WARN
npm WARN Conflicting peer dependency: @angular/common@8.2.14
npm WARN node_modules/@angular/common
npm WARN peer @angular/common@"^8.0.0" from @ng-idle/core@8.0.0-beta.4
npm WARN node_modules/unified-red/node_modules/@ng-idle/core
npm WARN @ng-idle/core@"^8.0.0-beta.4" from unified-red@2.4.0
npm WARN node_modules/unified-red
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @ng-idle/core@8.0.0-beta.4
npm WARN Found: @angular/core@9.1.13
npm WARN node_modules/unified-red/node_modules/@angular/core
npm WARN @angular/core@"^9.1.0" from unified-red@2.4.0
npm WARN node_modules/unified-red
npm WARN unified-red@"
" from the root project
npm WARN 13 more (@angular/animations, @angular/cdk, @angular/common, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer @angular/core@"^8.0.0" from @ng-idle/core@8.0.0-beta.4
npm WARN node_modules/unified-red/node_modules/@ng-idle/core
npm WARN @ng-idle/core@"^8.0.0-beta.4" from unified-red@2.4.0
npm WARN node_modules/unified-red
npm WARN
npm WARN Conflicting peer dependency: @angular/core@8.2.14
npm WARN node_modules/@angular/core
npm WARN peer @angular/core@"^8.0.0" from @ng-idle/core@8.0.0-beta.4
npm WARN node_modules/unified-red/node_modules/@ng-idle/core
npm WARN @ng-idle/core@"^8.0.0-beta.4" from unified-red@2.4.0
npm WARN node_modules/unified-red
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: ngx-mask@8.2.0
npm WARN Found: @angular/common@9.1.13
npm WARN node_modules/unified-red/node_modules/@angular/common
npm WARN @angular/common@"^9.1.0" from unified-red@2.4.0
npm WARN node_modules/unified-red
npm WARN unified-red@"" from the root project
npm WARN 11 more (@angular/cdk, @angular/forms, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer @angular/common@"^6.0.0 || ^7.0.0 || ^8.0.0" from ngx-mask@8.2.0
npm WARN node_modules/unified-red/node_modules/ngx-mask
npm WARN ngx-mask@"^8.1.7" from unified-red@2.4.0
npm WARN node_modules/unified-red
npm WARN
npm WARN Conflicting peer dependency: @angular/common@8.2.14
npm WARN node_modules/@angular/common
npm WARN peer @angular/common@"^6.0.0 || ^7.0.0 || ^8.0.0" from ngx-mask@8.2.0
npm WARN node_modules/unified-red/node_modules/ngx-mask
npm WARN ngx-mask@"^8.1.7" from unified-red@2.4.0
npm WARN node_modules/unified-red
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: ngx-mask@8.2.0
npm WARN Found: @angular/core@9.1.13
npm WARN node_modules/unified-red/node_modules/@angular/core
npm WARN @angular/core@"^9.1.0" from unified-red@2.4.0
npm WARN node_modules/unified-red
npm WARN unified-red@"
" from the root project
npm WARN 13 more (@angular/animations, @angular/cdk, @angular/common, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer @angular/core@"^6.0.0 || ^7.0.0 || ^8.0.0" from ngx-mask@8.2.0
npm WARN node_modules/unified-red/node_modules/ngx-mask
npm WARN ngx-mask@"^8.1.7" from unified-red@2.4.0
npm WARN node_modules/unified-red
npm WARN
npm WARN Conflicting peer dependency: @angular/core@8.2.14
npm WARN node_modules/@angular/core
npm WARN peer @angular/core@"^6.0.0 || ^7.0.0 || ^8.0.0" from ngx-mask@8.2.0
npm WARN node_modules/unified-red/node_modules/ngx-mask
npm WARN ngx-mask@"^8.1.7" from unified-red@2.4.0
npm WARN node_modules/unified-red
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: ngx-mask@8.2.0
npm WARN Found: @angular/forms@9.1.13
npm WARN node_modules/unified-red/node_modules/@angular/forms
npm WARN @angular/forms@"^9.1.0" from unified-red@2.4.0
npm WARN node_modules/unified-red
npm WARN unified-red@"*" from the root project
npm WARN 3 more (@angular/material, @ng-bootstrap/ng-bootstrap, @swimlane/ngx-charts)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer @angular/forms@"^6.0.0 || ^7.0.0 || ^8.0.0" from ngx-mask@8.2.0
npm WARN node_modules/unified-red/node_modules/ngx-mask
npm WARN ngx-mask@"^8.1.7" from unified-red@2.4.0
npm WARN node_modules/unified-red
npm WARN
npm WARN Conflicting peer dependency: @angular/forms@8.2.14
npm WARN node_modules/@angular/forms
npm WARN peer @angular/forms@"^6.0.0 || ^7.0.0 || ^8.0.0" from ngx-mask@8.2.0
npm WARN node_modules/unified-red/node_modules/ngx-mask
npm WARN ngx-mask@"^8.1.7" from unified-red@2.4.0
npm WARN node_modules/unified-red
npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (debug-js/debug#797)
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (debug-js/debug#797)
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (debug-js/debug#797)
npm WARN deprecated multer@1.4.4: Multer 1.x is affected by CVE-2022-24434. This is fixed in v1.4.4-lts.1 which drops support for versions of Node.js before 6. Please upgrade to at least Node.js 6 and version 1.4.4-lts.1 of Multer. If you need support for older versions of Node.js, we are open to accepting patches that would fix the CVE on the main 1.x release line, whilst maintaining compatibility with Node.js 0.10.
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see request/request#3142
npm WARN deprecated ngx-perfect-scrollbar@9.0.0: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

added 495 packages, and audited 542 packages in 38s

38 packages are looking for funding
run npm fund for details

37 vulnerabilities (8 low, 16 moderate, 13 high)

To address issues that do not require attention, run:
npm audit fix

To address all issues possible (including breaking changes), run:
npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run npm audit for details.

After installation, Node-Red initializes, but after a few seconds, it crashes and exits the process:

node-red
8 Apr 15:21:56 - [info]

Welcome to Node-RED

8 Apr 15:21:56 - [info] Node-RED version: v3.0.2
8 Apr 15:21:56 - [info] Node.js version: v20.11.1
8 Apr 15:21:56 - [info] Windows_NT 10.0.17763 x64 LE
8 Apr 15:21:57 - [info] Loading palette nodes
8 Apr 15:21:58 - [info] Settings file : C:\Users\ferrerons.node-red\settings.js
8 Apr 15:21:58 - [info] Context store : 'default' [module=memory]
8 Apr 15:21:58 - [info] User directory : \Users\ferrerons.node-red
8 Apr 15:21:58 - [warn] Projects disabled : editorTheme.projects.enabled=false
8 Apr 15:21:58 - [info] Flows file : \Users\ferrerons.node-red\flows.json
8 Apr 15:21:58 - [info] Creating new flow file
8 Apr 15:21:58 - [warn]


Your flow credentials file is encrypted using a system-generated key.

If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.

You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.

8 Apr 15:21:58 - [warn] Encrypted credentials not found
8 Apr 15:21:58 - [info] Server now running at http://127.0.0.1:1880/
8 Apr 15:21:58 - [info] Starting flows
8 Apr 15:21:58 - [info] Started flows
8 Apr 15:22:58 - [info] Installing module: unified-red, version: 2.4.0
8 Apr 15:23:43 - [info] Installed module: unified-red
8 Apr 15:23:44 - [info] Unified-RED Dashboard version 2.4.0 started at /ui
8 Apr 15:23:44 - [info] Added node types:
8 Apr 15:23:44 - [info] - unified-red:ur_base
8 Apr 15:23:44 - [info] - unified-red:ur_button
8 Apr 15:23:44 - [info] - unified-red:ur_compare
8 Apr 15:23:44 - [info] - unified-red:ur_chart
8 Apr 15:23:44 - [info] - unified-red:ur_datalog
8 Apr 15:23:44 - [info] - unified-red:ur_gauge
8 Apr 15:23:44 - [info] - unified-red:ur_folder
8 Apr 15:23:44 - [info] - unified-red:ur_page
8 Apr 15:23:44 - [info] - unified-red:ur_group
8 Apr 15:23:44 - [info] - unified-red:ur_form
8 Apr 15:23:44 - [info] - unified-red:ur_tab
8 Apr 15:23:44 - [info] - unified-red:ur_text
8 Apr 15:23:44 - [info] - unified-red:ur_text_input
8 Apr 15:23:44 - [info] - unified-red:ur_template
8 Apr 15:23:44 - [info] - unified-red:ur_alarm
8 Apr 15:23:44 - [info] - unified-red:ur_alarm_console
8 Apr 15:23:44 - [info] - unified-red:ur_animation
8 Apr 15:23:44 - [info] - unified-red:ur_table
8 Apr 15:23:44 - [info] - unified-red:ur_pagerduty_config
8 Apr 15:23:44 - [info] - unified-red:ur_pagerduty
8 Apr 15:23:44 - [info] - unified-red:ur_schedule
8 Apr 15:23:44 - [info] - unified-red:ur_schedule_holidays_config
8 Apr 15:23:44 - [info] - unified-red:ur_link
8 Apr 15:23:54 - [red] Uncaught Exception:
8 Apr 15:23:54 - [error] MongooseError: Operation roles.findOne() buffering timed out after 10000ms
at Timeout. (C:\Users\ferrerons.node-red\node_modules\mongoose\lib\drivers\node-mongodb-native\collection.js:198:23)
at listOnTimeout (node:internal/timers:573:17)
at process.processTimers (node:internal/timers:514:7)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants