For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

ecolauce's avatar
ecolauce
Icon for Nimbostratus rankNimbostratus
Nov 27, 2025
Solved

BIG-IP device fails to install node-inspector

Hi all, when I followed the steps in 'Steps to Setup Node-Inspector on BIG-IP' and executed the following command, an error occurred.

command:
[root@bigip1:Active:Standalone] ~ # npm install -g node-inspector@0.12.8


errors:
npm ERR! Linux 3.10.0-862.14.4.el7.ve.x86_64
npm ERR! argv "/usr/bin/node" "/usr/bin/.npm__" "install" "-g" "node-inspector@0.12.8"
npm ERR! node v6.9.1
npm ERR! npm  v3.10.8
npm ERR! path /usr/lib/node_modules
npm ERR! code EROFS
npm ERR! errno -30
npm ERR! syscall access

npm ERR! rofs EROFS: read-only file system, access '/usr/lib/node_modules'
npm ERR! rofs This is most likely not a problem with npm itself
npm ERR! rofs and is related to the file system being read-only.
npm ERR! rofs
npm ERR! rofs Often virtualized file systems, or other file systems
npm ERR! rofs that don't support symlinks, give this error.

npm ERR! Please include the following file with any support request:
npm ERR!     /root/npm-debug.log

logs:
[root@bigip1:Active:Standalone] ~ # tail -30 /root/npm-debug.log
7616 silly idealTree   | `-- lodash@3.10.1
7616 silly idealTree   +-- xmldom@0.1.31
7616 silly idealTree   +-- xtend@4.0.2
7616 silly idealTree   +-- y18n@3.2.2
7616 silly idealTree   `-- yargs@3.32.0
7617 silly generateActionsToTake Starting
7618 silly install generateActionsToTake
7619 warn checkPermissions Missing write access to /usr/lib/node_modules
7620 silly rollbackFailedOptional Starting
7621 silly rollbackFailedOptional Finishing
7622 silly runTopLevelLifecycles Finishing
7623 silly install printInstalled
7624 verbose stack Error: EROFS: read-only file system, access '/usr/lib/node_modules'
7624 verbose stack     at Error (native)
7625 verbose cwd /root
7626 error Linux 3.10.0-862.14.4.el7.ve.x86_64
7627 error argv "/usr/bin/node" "/usr/bin/.npm__" "install" "-g" "node-inspector@0.12.8"
7628 error node v6.9.1
7629 error npm  v3.10.8
7630 error path /usr/lib/node_modules
7631 error code EROFS
7632 error errno -30
7633 error syscall access
7634 error rofs EROFS: read-only file system, access '/usr/lib/node_modules'
7635 error rofs This is most likely not a problem with npm itself
7635 error rofs and is related to the file system being read-only.
7635 error rofs
7635 error rofs Often virtualized file systems, or other file systems
7635 error rofs that don't support symlinks, give this error.
7636 verbose exit [ -30, true ]


This seems like a directory access permission issue, but I can't change the read/write permissions on the F5 device. How should this be resolved?

f5-appsvcs-extension/contributing/node_inspector_profiling_as3.md at v3.54.2 · F5Networks/f5-appsvcs-extension

4 Replies

  • Hey ecolauce​ , try checking out this guide, you can set /usr to read-write mode. K20330103: Mounting the /usr file system in read-write mode https://my.f5.com/manage/s/article/K20330103

    But keep in mind, the following:

    Important Considerations:

    • Security: F5 mounts /usr as read-only by default to enhance system security. Reverting it to read-only after modifications is crucial.
    • Impact: While this procedure generally does not impact traffic, it is best performed during a maintenance window to avoid potential issues.
    • Upgrades: Changes made to files in /usr might not persist across software upgrades. If an upgrade is performed, you may need to repeat the process.
    • ecolauce's avatar
      ecolauce
      Icon for Nimbostratus rankNimbostratus

      Thank you very much. Based on the reference you provided, I resolved the restrictions caused by read and write permissions, but there are new issues in the subsequent installation steps.

      command:
      [root@bigip1:Active:Standalone] ~ # npm install -g node-inspector@0.12.8

      errors:

      node-pre-gyp ERR! Tried to download(403): https://node-inspector.s3.amazonaws.com/debug/v0.7.7/node-v48-linux-x64.tar.gz
      node-pre-gyp ERR! Pre-built binaries not found for v8-debug@0.7.7 and node@6.9.1 (node-v48 ABI, glibc) (falling back to source compile with node-gyp)
      gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/6.9.1"
      gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/node-inspector/node_modules/v8-debug/.node-gyp"
      make: Entering directory `/usr/lib/node_modules/node-inspector/node_modules/v8-debug/build'
      make: *** No rule to make target `../.node-gyp/6.9.1/include/node/common.gypi', needed by `Makefile'.  Stop.
      make: Leaving directory `/usr/lib/node_modules/node-inspector/node_modules/v8-debug/build'
      gyp ERR! build error
      gyp ERR! stack Error: `make` failed with exit code: 2
      gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
      gyp ERR! stack     at emitTwo (events.js:106:13)
      gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
      gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
      gyp ERR! System Linux 3.10.0-862.14.4.el7.ve.x86_64
      gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/usr/lib/node_modules/node-inspector/node_modules/v8-debug/build/debug/v0.7.7/node-v48-linux-x64/debug.node" "--module_name=debug" "--module_path=/usr/lib/node_modules/node-inspector/node_modules/v8-debug/build/debug/v0.7.7/node-v48-linux-x64"
      gyp ERR! cwd /usr/lib/node_modules/node-inspector/node_modules/v8-debug
      gyp ERR! node -v v6.9.1
      gyp ERR! node-gyp -v v3.4.0
      gyp ERR! not ok
      node-pre-gyp ERR! build error
      node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/lib/node_modules/node-inspector/node_modules/v8-debug/build/debug/v0.7.7/node-v48-linux-x64/debug.node --module_name=debug --module_path=/usr/lib/node_modules/node-inspector/node_modules/v8-debug/build/debug/v0.7.7/node-v48-linux-x64' (1)
      node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/node-inspector/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
      node-pre-gyp ERR! stack     at emitTwo (events.js:106:13)
      node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
      node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:877:16)
      node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
      node-pre-gyp ERR! System Linux 3.10.0-862.14.4.el7.ve.x86_64
      node-pre-gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/node-inspector/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
      node-pre-gyp ERR! cwd /usr/lib/node_modules/node-inspector/node_modules/v8-debug
      node-pre-gyp ERR! node -v v6.9.1
      node-pre-gyp ERR! node-pre-gyp -v v0.6.39
      node-pre-gyp ERR! not ok
      Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/lib/node_modules/node-inspector/node_modules/v8-debug/build/debug/v0.7.7/node-v48-linux-x64/debug.node --module_name=debug --module_path=/usr/lib/node_modules/node-inspector/node_modules/v8-debug/build/debug/v0.7.7/node-v48-linux-x64' (1)
      /usr/lib
      `-- (empty)

      npm ERR! Linux 3.10.0-862.14.4.el7.ve.x86_64
      npm ERR! argv "/usr/bin/node" "/usr/bin/.npm__" "install" "-g" "node-inspector@0.12.8"
      npm ERR! node v6.9.1
      npm ERR! npm  v3.10.8
      npm ERR! code ELIFECYCLE

      npm ERR! v8-debug@0.7.7 install: `node-pre-gyp install --fallback-to-build`
      npm ERR! Exit status 1
      npm ERR!
      npm ERR! Failed at the v8-debug@0.7.7 install script 'node-pre-gyp install --fallback-to-build'.
      npm ERR! Make sure you have the latest version of node.js and npm installed.
      npm ERR! If you do, this is most likely a problem with the v8-debug package,
      npm ERR! not with npm itself.
      npm ERR! Tell the author that this fails on your system:
      npm ERR!     node-pre-gyp install --fallback-to-build
      npm ERR! You can get information on how to open an issue for this project with:
      npm ERR!     npm bugs v8-debug
      npm ERR! Or if that isn't available, you can get their info via:
      npm ERR!     npm owner ls v8-debug
      npm ERR! There is likely additional logging output above.

      npm ERR! Please include the following file with any support request:
      npm ERR!     /root/npm-debug.log
      npm ERR! code 1

       

      logs:

      [root@bigip1:INOPERATIVE:Standalone] ~ # tail -50 npm-debug.log
      23516 silly install serve-favicon@2.5.1 /usr/lib/node_modules/.staging/serve-favicon-63dec771
      23517 info lifecycle serve-favicon@2.5.1~install: serve-favicon@2.5.1
      23518 silly lifecycle serve-favicon@2.5.1~install: no script for install, continuing
      23519 silly install strong-data-uri@1.0.6 /usr/lib/node_modules/.staging/strong-data-uri-b35e28ad
      23520 info lifecycle strong-data-uri@1.0.6~install: strong-data-uri@1.0.6
      23521 silly lifecycle strong-data-uri@1.0.6~install: no script for install, continuing
      23522 silly install v8-debug@0.7.7 /usr/lib/node_modules/.staging/v8-debug-8568d751
      23523 info lifecycle v8-debug@0.7.7~install: v8-debug@0.7.7
      23524 verbose lifecycle v8-debug@0.7.7~install: unsafe-perm in lifecycle false
      23525 verbose lifecycle v8-debug@0.7.7~install: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/usr/lib/node_modules/node-inspector/node_modules/v8-debug/node_modules/.bin:/usr/lib/node_modules/node-inspector/node_modules/.bin:/usr/lib/node_modules/.bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
      23526 verbose lifecycle v8-debug@0.7.7~install: CWD: /usr/lib/node_modules/node-inspector/node_modules/v8-debug
      23527 silly lifecycle v8-debug@0.7.7~install: Args: [ '-c', 'node-pre-gyp install --fallback-to-build' ]
      23528 silly lifecycle v8-debug@0.7.7~install: Returned: code: 1  signal: null
      23529 info lifecycle v8-debug@0.7.7~install: Failed to exec install script
      23530 verbose unlock done using /root/.npm/_locks/staging-a072192f34a17023.lock for /usr/lib/node_modules/.staging
      23531 silly rollbackFailedOptional Starting
      23532 silly rollbackFailedOptional Finishing
      23533 silly runTopLevelLifecycles Finishing
      23534 silly install printInstalled
      23535 verbose stack Error: v8-debug@0.7.7 install: `node-pre-gyp install --fallback-to-build`
      23535 verbose stack Exit status 1
      23535 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:255:16)
      23535 verbose stack     at emitTwo (events.js:106:13)
      23535 verbose stack     at EventEmitter.emit (events.js:191:7)
      23535 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/lib/utils/spawn.js:40:14)
      23535 verbose stack     at emitTwo (events.js:106:13)
      23535 verbose stack     at ChildProcess.emit (events.js:191:7)
      23535 verbose stack     at maybeClose (internal/child_process.js:877:16)
      23535 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
      23536 verbose pkgid v8-debug@0.7.7
      23537 verbose cwd /root
      23538 error Linux 3.10.0-862.14.4.el7.ve.x86_64
      23539 error argv "/usr/bin/node" "/usr/bin/.npm__" "install" "-g" "node-inspector@0.12.8"
      23540 error node v6.9.1
      23541 error npm  v3.10.8
      23542 error code ELIFECYCLE
      23543 error v8-debug@0.7.7 install: `node-pre-gyp install --fallback-to-build`
      23543 error Exit status 1
      23544 error Failed at the v8-debug@0.7.7 install script 'node-pre-gyp install --fallback-to-build'.
      23544 error Make sure you have the latest version of node.js and npm installed.
      23544 error If you do, this is most likely a problem with the v8-debug package,
      23544 error not with npm itself.
      23544 error Tell the author that this fails on your system:
      23544 error     node-pre-gyp install --fallback-to-build
      23544 error You can get information on how to open an issue for this project with:
      23544 error     npm bugs v8-debug
      23544 error Or if that isn't available, you can get their info via:
      23544 error     npm owner ls v8-debug
      23544 error There is likely additional logging output above.
      23545 verbose exit [ 1, true ]

       

      Or is there any other  way to debug AS3 and other iControl LX Extensions on BIG-IP?