electron-code-editor icon indicating copy to clipboard operation
electron-code-editor copied to clipboard

Fail to start application - "electron-forge: command not found"

Open ulvesked opened this issue 8 years ago • 6 comments

Installing and running using the app using the commands from the README fails.

git clone https://github.com/felixrieseberg/electron-code-editor
cd electron-code-editor
npm install
npm start

Gives me the following error.

> [email protected] start /Users/anders/Apps/electron-code-editor
> electron-forge start

sh: electron-forge: command not found

I have git, node and npm installed. However I do not have electron forge, as it is not stated as a prerequisite. Do I need to install that manually first?

Running this on macOS Sierra (10.12.5) with GIT 2.10.1, NODE 7.9.0 and NPM 4.2.0.

ulvesked avatar Aug 02 '17 14:08 ulvesked

@felixrieseberg I can repro this. @ulvesked you need to npm install -g electron-forge to get that to go, but if you do, Felix, I got this output:

npm WARN deprecated [email protected]: wrench.js is deprecated! You should check out fs-extra (https://github.com/jprichardson/node-fs-extra) for any operations you were using wrench for. Thanks for all the usage over the years.
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

However, having done that it runs fine. Thanks, Felix, and see you around!

squillace avatar Aug 06 '17 23:08 squillace

@felixrieseberg some feedback: put 'save' also under the 'file' submenu. also, 'load' and 'save as' would be nice features. And access to change the styling would be a cool feature. I know you can fork it, but from a UX perspective it's nice what atom and sublime text do. Great job, though.

binyamin avatar Sep 04 '18 17:09 binyamin

npm install electron Run this command after npm install. Then this will work fine

kailashlimba avatar May 14 '20 05:05 kailashlimba

I did npm install -g electron-forge then got this error msg ,I am using ubuntu on my laptop

Error: EACCES: permission denied, mkdir '/home/node_modules' npm ERR! [Error: EACCES: permission denied, mkdir '/home/node_modules'] { npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'mkdir', npm ERR! path: '/home/node_modules' npm ERR! } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator.

fesimaxu avatar Sep 23 '22 13:09 fesimaxu

I fixed the error above with the link below https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally

fesimaxu avatar Sep 23 '22 14:09 fesimaxu

But the foundry forge init is still not working

fesimaxu avatar Sep 23 '22 14:09 fesimaxu