Situation
I'm developing an extension for Google Chrome, and I need to use some NodeJs modules so I've found the Browserify tool so I can add modules to use it in the browser
Environment
I have the NodeJs, NPM and Browserify installed on my ubuntu machine, the module I want is in node_module/uniq
Main.js
var unique = require('uniq');
var data = [1, 2, 2, 3, 4, 5, 5, 5, 6];
console.log(unique(data));
Command
I give the following command to write browser-based code
browserify main.js -o bundle.js
It returns me this
Error
/ usr / bin / env: node: File or directory not found