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:
- Install Laravel
- Install NPM
npm install
- Run
npm run dev
ornpm 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:
- Created 6 years ago
- Comments:14 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@straube Clear your cache too. So try this:
npm -v
shouldn’t return 5.2rm -rf node_modules
npm cache clear
rm -rf package-lock.json
npm install
Finally! It’s working! 🎉
A side note: I had to add the
--force
flag to get the cache cleared: