Aldo
Aldo

Reputation: 171

"electron-forge" is not recognized as an internal or external command

I was working lately with electron-forge and I had no problem, after I installed Norton I cannot use electron-forge anymore (with the Windows CMD) and I get the message: "electron-forge" is not recognized as an internal or external command. Can someone please help me solve this issue. Thanks in advance!

Upvotes: 4

Views: 6853

Answers (3)

Deepak Singh
Deepak Singh

Reputation: 1145

simply used:-

npm install --save-dev @electron-forge/cli
npx electron-forge import
npm run make

for more info.

Upvotes: 3

Aldo
Aldo

Reputation: 171

I already solved the problem, I just had to add to the "path" environment variable the .bin folder inside node_modules folder.

Upvotes: 1

Leonardo Buscemi
Leonardo Buscemi

Reputation: 1177

Sorry I can't comment yet :(

Did you install electron-forge with the -g attribute?

Upvotes: 4

Related Questions