IBM i Global

IBM i 

A space for professionals working with IBM’s integrated OS for Power systems to exchange ideas, ask questions, and share expertise on topics like RPG and COBOL development, application modernization, open source integration, system administration, and business continuity.


#Power


#IBMi
#Power
 View Only
  • 1.  Node.js & IBM i

    Posted Tue September 27, 2022 10:13 AM
    After installing and testing succesfully Django framework on IBM i, I tried (on a V7R3 machine) to install and run Vue.js framework.
    I succesfully (in order):
    - installed nodejs v16 from ACS Open source package manager
    - installed vue.js from npm (npm --without-ssl -g install @vue/cli from ssh)
    - created a vue app ( /QOpenSys/pkgs/lib/nodejs16/bin/vue create app_name)

    When I try to run nodejs vue development server (npm run serve) I obtain this error message:
    Watchpack Error (watcher): Error: ENOSYS: function not implemented, watch '/home/SADOCCO/app_name/node_modules/webpack-dev-server/client/modules'

    Searching on google (Error from chokidar (/home/KAPILT/slapp3/src/assets): Error: ENOSYS: function not implemented, watch '/home/KAPILT/slapp3/src/assets/.gitkeep' )
    Bitbucket remove preview
    Error from chokidar (/home/KAPILT/slapp3/src/assets): Error: ENOSYS: function not implemented, watch '/home/KAPILT/slapp3/src/assets/.gitkeep'
    There are multiple error lines coming on the screen when i doing ng serve I am using Putty SSH client . ‌ Error line - ‌ Error from chokidar \(/home/KAPILT/slapp3/src/assets\): Error: ENOSYS: function not implemented, watch '/home/KAPILT/slapp3/src/assets/.gitkeep'
    View this on Bitbucket >
    )

    I realized that the nodejs on IBM i lacks of a low-level implementation of fs.watch() sys functions, needed for hot-reload of vue.js code.

    Does anyone find a way to run vue.js (or another framwork/app that use this low-level api) on IBM i?

    ------------------------------
    SAMUELE SADOCCO
    ------------------------------