I have installed the packacge multi.js
as npm install --global --verbose multi.js
and also set the NODE_PATH
environment variable to the export NODE_PATH=/home/wasim/.nvm/versions/node/v13.1.0/lib/node_module
. I can also view that module is indeed installed globally as,
npm list -g -depth 0
├── http-server@0.12.3
├── multi.js@0.5.1
├── npm@6.14.8
├── xls@0.5.1
└── xlsx@0.16.6
However, when I load the module as const multi_js = require('multi.js');
, I get error: Cannot find module 'multi.js'
as shown in the screenshot below
What I'm missing here? Thanks
Note: this error also occurs for local installation of multi.js package.