HEX
Server: nginx/1.18.0
System: Linux vcwordpress 5.15.0-174-generic #184-Ubuntu SMP Fri Mar 13 18:41:50 UTC 2026 x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //snap/node/11560/snap/snapcraft.yaml
name: node
version: '22.22.3'
summary: Node.js
description: |
  A JavaScript runtime built on Chrome's V8 JavaScript engine. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient. Node.js' package ecosystem, npm, is the largest ecosystem of open source libraries in the world. https://nodejs.org/

grade: stable
confinement: classic
base: core22

apps:
  node:
    command: bin/node
  npm:
    command: bin/npm
  npx:
    command: bin/npx
  yarn:
    command: bin/yarn.js
  yarnpkg:
    command: bin/yarn.js

parts:
  node:
    plugin: make
    source-type: tar
    source: https://nodejs.org/download/release/v22.22.3/node-v22.22.3.tar.gz
    build-packages:
      # Ensure these and the build environment below match the minimum GCC and G++ versions for this Node release.
      # https://github.com/nodejs/node/blob/main/BUILDING.md#building-nodejs-on-supported-platforms
      - gcc-10
      - g++-10
      - python3-distutils
    stage-packages:
      # Include C++ runtime libraries that Node.js needs
      - libstdc++6
      - libgcc-s1
    build-environment:
      - CC: gcc-10
      - CXX: g++-10
      - LINK: g++-10
      - V: ""
    make-parameters:
      - V=
      - LDFLAGS=-Wl,-rpath=/snap/node/current/lib/$(SNAPCRAFT_ARCH_TRIPLET):/snap/node/current/usr/lib/$(SNAPCRAFT_ARCH_TRIPLET):/snap/core22/current/lib/$(SNAPCRAFT_ARCH_TRIPLET):/snap/core22/current/usr/lib/$(SNAPCRAFT_ARCH_TRIPLET)
    override-build: |
      ./configure --verbose --prefix=/ --release-urlbase=https://nodejs.org/download/release/ --tag=
      craftctl default
      mkdir -p $CRAFT_PART_INSTALL/etc
      echo "prefix = /usr/local" >> $CRAFT_PART_INSTALL/etc/npmrc
  yarn:
    source-type: tar
    source: https://yarnpkg.com/latest.tar.gz
    plugin: dump
    # Yarn has a problem with lifecycle scripts when used inside snap, they don't complete properly, with exit code !=0.
    # Replacing the spinner with proper stdio appears to fix it.
    override-build: |
      craftctl default
      chmod -R g-s $CRAFT_PART_INSTALL
      sed -i "s/var stdio = spinner ? undefined : 'inherit';/var stdio = 'inherit';/" $CRAFT_PART_INSTALL/lib/cli.js