question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error with npm run production

See original GitHub issue

When I use (npm run dev) everything done as is. but when use (npm run production) I got error with following:

npm ERR! Linux 4.4.0-59-generic npm ERR! argv “/usr/bin/nodejs” “/usr/bin/npm” “run” “production” npm ERR! node v7.4.0 npm ERR! npm v4.0.5 npm ERR! code ELIFECYCLE npm ERR! @ production: node_modules/cross-env/bin/cross-env.js NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the @ production script ‘node_modules/cross-env/bin/cross-env.js NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js’. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node_modules/cross-env/bin/cross-env.js NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs npm ERR! Or if that isn’t available, you can get their info via: npm ERR! npm owner ls npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /home/mohamedsabil83/www/blacklist/npm-debug.log

npm-debug.log.zip

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
mohamedsabil83commented, Jan 31, 2017

@betteryourweb I’m upgrading to node7 many days ago but not sure for that. you suggest to remove npm package from my laravel project and install it again the try (npm run production) again?

0reactions
mohamedsabil83commented, Jan 31, 2017

Thanx @betteryourweb, as you suggest, I removed node_modules folder and install libraries again with order (npm install). now it’s work at a glance.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error npm run production
Wehn running npm production get error like bellow: Copy Code [hrace009@ko2svr hrace009.com]$ npm run prod > @ prod /var/www/hrace009.com > npm run ......
Read more >
Failed at the @ production script. Error running npm run ...
It was issue with my node_modules folder. there were some extra useless packages so simply i just deleted node_modules and install it again ......
Read more >
Error when 'npm run production' · Issue #836 · laravel-mix ...
It may be that some locked dependencies haven't updated properly. Try to delete node_modules folder and then do simple stupid npm install. I...
Read more >
How To Fix “Laravel Mix NPM run dev error” - YouTube
This video will help you to solve the annoying “Laravel Mix NPM run dev error ” that you probably have seen before when...
Read more >
DigitalOcean App, Laravel, npm run production fails
DigitalOcean App, Laravel, npm run production fails ... Please run the following command: `npm update` ERROR Failed to compile with 1 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found