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.

npm run broken since 0.8.0

See original GitHub issue

Hi there,

and thanks for you amazing work.

  • Laravel Mix Version: 0.8.0
  • Node Version (node -v): v7.4.0
  • NPM Version (npm -v): 4.3.0
  • OS: Mac Sierra

Description:

Since upgrading to 0.8.0 (was working with 0.7) I can not run npm run hot anymore

> @ hot /Users/rd/Web/code
> node_modules/cross-env/bin/cross-env.js NODE_ENV=development webpack-dev-server --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js

module.js:472
    throw err;
    ^

Error: Cannot find module 'autoprefixer'
    at Function.Module._resolveFilename (module.js:470:15)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/rd/Web/code/node_modules/laravel-mix/setup/webpack.config.js:101:21)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at requireConfig (/Users/rd/Web/code/node_modules/webpack/bin/convert-argv.js:96:18)
    at /Users/rd/Web/code/node_modules/webpack/bin/convert-argv.js:109:17
    at Array.forEach (native)
    at module.exports (/Users/rd/Web/code/node_modules/webpack/bin/convert-argv.js:107:15)

npm ERR! Darwin 16.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "hot"
npm ERR! node v7.4.0
npm ERR! npm  v4.3.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ hot: `node_modules/cross-env/bin/cross-env.js NODE_ENV=development webpack-dev-server --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @ hot script 'node_modules/cross-env/bin/cross-env.js NODE_ENV=development webpack-dev-server --inline --hot --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=development webpack-dev-server --inline --hot --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!     /Users/rd/.npm/_logs/2017-02-15T19_38_27_428Z-debug.log

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
kohenkatzcommented, Feb 15, 2017

Running npm install autoprefixer fixes it, but it really shouldn’t be broken out of the box.

2reactions
maiolicacommented, Feb 15, 2017

Can confirm npm run dev is broken since 0.8.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm install (-g) (everything) completely broken after upgrade ...
I have two machines that both have Node.js & npm installed on them. They are both Windows 7 x64. After upgrading to npm...
Read more >
Common errors | npm Docs
Broken npm installation​​ If your npm is broken: On Mac or Linux, reinstall npm. Windows: If you're on Windows and you have a...
Read more >
npm WARN npm npm does not support Node.js v9.1.0
It turns out that the current installed npm is not compatible with the new node and has a hard time updating. The solution...
Read more >
How To Reinstall NPM And Node.js On Any System
Go to the Windows Control Panel and uninstall the Node.js program. · If any Node.js installation directories are still remaining, delete them.
Read more >
NPM Pack - Hugo
Hugo 0.75 comes with a new "hugo mod npm pack" command, several improvements re. Hugo Modules and the Node tools, and more.
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