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.

Dependencies were not found

See original GitHub issue
  • Laravel Mix Version: 1.2.0 (npm list --depth=0)
  • Node Version (node -v): 8.1.4
  • NPM Version (npm -v): 5.2.0
  • OS: macOS Sierra 10.12.5 (16F73)

Description:

Although app.js and app.scss exist, NPM doesn’t compile.

Steps To Reproduce:

  1. Install Laravel
  2. Install NPM npm install
  3. Run npm run dev or npm run production

Here is the output;

> @ dev /Users/burak/Sites/laravel5
> npm run development


> @ development /Users/burak/Sites/laravel5
> cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

 95% emitting

 ERROR  Failed to compile with 2 errors                                                     16:49:26

These dependencies were not found:

* /Users/burak/Sites/laravel5/resources/assets/js/app.js in multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss
* /Users/burak/Sites/laravel5/resources/assets/sass/app.scss in multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss

To install them, you can run: npm install --save /Users/burak/Sites/laravel5/resources/assets/js/app.js /Users/burak/Sites/laravel5/resources/assets/sass/app.scss
     Asset     Size  Chunks             Chunk Names
/js/app.js  2.78 kB       0  [emitted]  /js/app
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @ development: `cross-env NODE_ENV=development 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 @ development script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/burak/.npm/_logs/2017-07-12T13_49_26_389Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @ dev: `npm run development`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the @ dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/burak/.npm/_logs/2017-07-12T13_49_26_428Z-debug.log

Issue Analytics

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

github_iconTop GitHub Comments

9reactions
JeffreyWaycommented, Jul 13, 2017

@straube Clear your cache too. So try this:

  1. npm -v shouldn’t return 5.2
  2. rm -rf node_modules
  3. npm cache clear
  4. rm -rf package-lock.json
  5. npm install
6reactions
straubecommented, Jul 13, 2017

Finally! It’s working! 🎉

A side note: I had to add the --force flag to get the cache cleared:

npm cache clear --force
Read more comments on GitHub >

github_iconTop Results From Across the Web

These dependencies were not found error in Vue.js
After updating npm & node to their last versions, I get following errors when I try to run my vue project: These dependencies...
Read more >
"Dependencies were not found" - on npm run serve #4472
I solved the issue by installing core-js@2 as well downgrading the version of my npm and node. It seemed that the latest versions...
Read more >
Dependencies were not found error for previously working ...
Now I get this error when ever I try to npm run serve my project. have tried the solution provided on stackoverflow and...
Read more >
IPFS and Vue; dependency not found - Help
I'm using IPFS with Vue but cannot get the app to start because of a dependency error. I have a very simple setup:...
Read more >
How to fix "These dependencies were not found:" when ...
[Solved]-How to fix "These dependencies were not found:" when deploying with Netlify given that yarn run serve works on local machine-Vue.js ... If...
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