Forum Discussion
NPM Package Installation Error
You can install npm modules on BIG-IP but with some restrictions.
1) No -g option. The option attempts to install the module under /usr/lib/node_module but the filesystem is read-only. This is the reason why you got the "EROFS: read-only file system, access '/usr/lib/node_modules'" message. Try without -g under the extension directory under the workspace directory. See also Getting Started with iRules LX, Part 4: NPM & Best Practices for the exact steps.
2) No C/C++ code. Some node modules have C/C++ components which require compilation. BIG-IP does not have development environment. If you see "stack Error: `make` failed with exit code: 2" error, that's the case. Seems like you attempted to install 'feo', which requires to compile iconv. You need to find a pure Node.js module with similar functionalities.
3) No symlink. Some node modules contain symlink inside. Creating a symbolic link under the workspace directory is prohibited. Expand the npm locally and if this is the case, try --no-bin-links option. See also the npm-install man page.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com