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