• Register
1 vote
576 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.

6 5 3
6,930 points

Please log in or register to answer this question.

2 Answers

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 :

9 7 4
38,600 points
0 votes

Solution:

Delete your package-lock.json file and node_modules folder. Later perform npm cache clean

npm cache clean --force

exercise npm install

again and run

Lastly, I figure out a solution to this issue without reinstalling npm and I'm posting it since in future it will help someone, Most of the time this error happens javascript heap went out of the memory. As the error tells itself this is not a problem with npm. Just we have to do is

instead of,

npm  run build -prod

Enhance the javascript memory by following,

node --max_old_space_size=4096 node_modules/@angular/cli/bin/ng build --prod

Inside that directory, you can run various commands:

npm start
Starts the development server.

npm run build
Bundles the app into static files for production.

npm test
Starts the test runner.

npm run eject
Removes this tool and copies build dependencies, configuration files
and scripts into the app directory. If you do this, you can’t go back!

We suggest that you begin by typing:

cd myapp
npm start

 

10 6 4
31,120 points

Related questions

0 votes
1 answer 33 views
33 views
Problem: The error: npm err! This is probably not a problem with npm. There is likely additional logging output above.
asked Feb 23 Muneeb Saadii 130k points
0 votes
1 answer 29 views
29 views
Problem: this is probably not a problem with npm. there is likely additional logging output above.
asked Feb 23 Muneeb Saadii 130k points
0 votes
1 answer 2 views
2 views
Problem: So my problem is that when i try adding a new dependence (npm install --save socket.io). The JSON file is also valid. I get this error: Failed to parse json
asked Apr 2 ummesalma 25.2k points
1 vote
1 answer 2 views
2 views
Problem : I try to create Searching JSON keys by keywords,I don’t know why, It not working properly . Here is my code : var itemWanted = 'ak fire serpent'; var message = itemWanted.split(" "); for(var price in prices){ var splitfast = price.split(" "); if( ... ().includes(message[0].toLowerCase())){ console.log(price + ' - ' + prices[price]); } } }Can someone please give some suggestion?
asked Mar 29 Shovo210 13.8k points
0 votes
1 answer 16 views
16 views
Problem npm err! unexpected end of json input while parsing near.
asked Feb 24 Dan phillip 4.8k points
0 votes
1 answer 3 views
3 views
Problem: I tried to install grunt on a mac with Yosemite. node is already installed in the newest version. If I type "node -v" in the terminal I get the line v0.12.5. thats good. But when I want to install something with npm I get only a error. I tried " ... 32) at Function.Module._load (module.js:310:12) at Module.require (module.js:365:17) Someone knows what's the problem or better a solution?
asked 3 days ago Atik03 10.1k points
0 votes
2 answers 646 views
646 views
Problem : I want to to run my NodeJS version with the nvm but getting following error: $ nvm use v4.2.4 nvm is not compatible with the npm config "prefix" option: currently set to "/Users/z/.npm-global"Run `npm config delete prefix` or `nvm use --delete- ... it. I have set the prefix on purpose to avoid the sudo npm How can I use nvm without losing the prefix for my globally installed packages?
asked Nov 29, 2019 alecxe 7.5k points
1 vote
1 answer 2 views
2 views
Problem : I'm getting these errors when running npm install: Error: Cannot find module 'semver' at Function.Module._resolveFilename (module.js:337:15) Any ideas on what I need to do to fix this? Thanks!
asked Mar 29 Shovo210 13.8k points
0 votes
1 answer 380 views
0 votes
1 answer 6 views
6 views
Problem: Why I am getting this error? There was an error sending your trade offer. please try again later. (26)
asked Mar 19 ummesalma 25.2k points