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

error when installing npm on a ccu3 #6810

Closed
2 tasks done
averlon opened this issue Sep 15, 2023 · 7 comments
Closed
2 tasks done

error when installing npm on a ccu3 #6810

averlon opened this issue Sep 15, 2023 · 7 comments
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 10.x

Comments

@averlon
Copy link

averlon commented Sep 15, 2023

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

`curl -qL https://www.npmjs.com/install.sh | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3755 100 3755 0 0 18406 0 --:--:-- --:--:-- --:--:-- 18497
fetching: https://registry.npmjs.org/npm/-/npm-10.1.0.tgz
removing existing npm
/tmp/npm.5571/package/lib/es6/validate-engines.js:31
throw err
^

Error: Cannot find module 'timers/promises'
`

Expected Behavior

No response

Steps To Reproduce

  1. In this environment... running on a CCU§
  2. With this config... curl -qL https://www.npmjs.com/install.sh | sh
  3. Run '...'
  4. See error...

Environment

  • npm: is not working anymore!
  • Node.js: v8.11.4
  • OS Name: Linux f42240c3 4.14.34 archive: committable offline dependency archive #1 SMP PREEMPT Wed Jul 19 18:21:15 CEST 2023 armv7l GNU/Linux
  • System Model Name:
  • npm config: O.K. - after reboot of the device I can get some output:
npm config ls
npm WARN npm npm does not support Node.js v14.16.0
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
npm WARN npm You can find the latest version at https://nodejs.org/
; cli configs
metrics-registry = "https://registry.npmjs.org/"
scope = ""
user-agent = "npm/5.6.0 node/v14.16.0 linux arm"

; globalconfig /usr/local/addons/redmatic/etc/npmrc
cache = "/usr/local/addons/redmatic/var/npm-cache"
prefix = "/usr/local/addons/redmatic"

; node bin location = /usr/local/addons/redmatic/bin/node
; cwd = /usr/local/addons/redmatic
; HOME = /usr/local/addons/redmatic/home
; "npm config ls -l" to show all defaults.
; copy and paste output from `npm config ls` here
@averlon averlon added Bug thing that needs fixing Needs Triage needs review for next steps Release 10.x labels Sep 15, 2023
@ljharb
Copy link
Contributor

ljharb commented Sep 15, 2023

That implies you have too old a version of node.

Also what’s a ccu?

@averlon
Copy link
Author

averlon commented Sep 15, 2023

CCU3 = Homematic IP Controller. I assume based on Raspberry but with some very specific setup!

Any Idea how I could deinstall the current version?

@ljharb
Copy link
Contributor

ljharb commented Sep 15, 2023

Please fill out the “environment” section in the template.

@averlon
Copy link
Author

averlon commented Sep 15, 2023

most of that is unknown to me - but I will try! and npm config ls will not work anymore!

@ljharb
Copy link
Contributor

ljharb commented Sep 15, 2023

node 8 is the problem; the oldest version of node that’s still supported is 18, and node 8 has been EOL for many years.

@averlon
Copy link
Author

averlon commented Sep 15, 2023

any idea how I could update?

@averlon
Copy link
Author

averlon commented Sep 15, 2023

since npm is back working again - to some extend - I will stay with this. I only use npm to install or upgrade node red. All other updates are done via propriatary procedures of Homematic IP.
Thanks for help!

@averlon averlon closed this as completed Sep 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 10.x
Projects
None yet
Development

No branches or pull requests

2 participants