You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following advice from this nodejs/node-v0.x-archive#3911 (comment) I installed nodejs-legacy but then got the following error when I tried to run the script:
module.js:340
throw err;
^
Error: Cannot find module 'shelljs/global'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/home/hellocatfood/Desktop/svg-resizer/svg-resizer.js:3:1)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
Problem Author : @hellocatfood
Cause of Bug : node.js is not accessible by the desired module("svg-resizer") since it may not be defined in global PATH variable
Steps#1 : Try to download the latest "nodejs" from official website( https://nodejs.org/en/download/ ) for your required OS(Linux/Ubuntu)
Steps#2 : Install the node using
2.1) move to downloaded directory cd "<to_the_directory_containing_the_downloaded_file>"
2.2) Install by extracting the content from the file and move it to /usr/local tar Xvf -C /usr/local ./node-v4.4.0-linux-x64.tar.xz
Steps#3 : Add the node to the global variable PATH to access by every application through console(Terminal)
3.1) Edit the initializer using any of your text editor(here i am using gedit) gedit ~/.bashrc
3.2) Add the node repository to your PATH by exporting command
add the above lines of code to the end of ".bashrc" file export PATH=/usr/local/nodejs/bin:$PATH
When I run svg-resizer on Ubuntu 15.10 I get the following error:
/usr/bin/env: node: No such file or directory
I already have nodejs installed
The text was updated successfully, but these errors were encountered: