• Register
Welcome to Kodlogs, programming questions and answer website.
+1 vote
20 views

Problem :

Looking for solution on bellow npm error

npm err! this is probably not a problem with npm. there is likely additional logging output above.

by (6.9k points)  

1 Answer

0 votes

Solution :

It looks similar to a bug reported in electron-packager. As a workaround you can downgrade electron-packager to e.g. ^7.7.0. Also you must update the build command slightly as shown bellow:

{
  "scripts": {                                                 
    "build": "electron-packager ./ --platform=linux --arch=x64"
  },                                                           
  "dependencies": {                                            
    "electron": "^1.6.11"                                      
  },                                                           
  "devDependencies": {
    "electron-packager": "^7.7.0"                              
  }                                                            
}                                                              

Note: you can use --all to build for all platforms.

I followed above instructions and my issue got ressolved.

Further Readings :

by (36.1k points)  
...