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.

This dependency was not found in node_modules: * pace

See original GitHub issue

When I do


    'resources/assets/js/core/libraries/jquery.min.js', // 2.1.4
    'resources/assets/js/core/libraries/bootstrap.min.js', // v3.3.6
    'resources/assets/js/core/app.js',
], 'public/js/guest_app.js');

it works well

but when I add a line:

    'resources/assets/js/plugins/loaders/pace.min.js',
    'resources/assets/js/core/libraries/jquery.min.js', // 2.1.4
    'resources/assets/js/core/libraries/bootstrap.min.js', // v3.3.6
    'resources/assets/js/core/app.js',
], 'public/js/guest_app.js');

I get :

 ERROR  Failed to compile with 1 errors

This dependency was not found in node_modules:

* pace

Did you forget to run npm install --save for it?
            Asset      Size  Chunks                    Chunk Names
 /js/guest_app.js    482 kB       0  [emitted]  [big]  /js/guest_app
mix-manifest.json  44 bytes          [emitted]         

npm ERR! Darwin 16.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "dev"
npm ERR! node v6.9.4
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! @ dev: `node node_modules/cross-env/bin/cross-env.js 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 @ dev script 'node node_modules/cross-env/bin/cross-env.js NODE_ENV=development 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 node_modules/cross-env/bin/cross-env.js NODE_ENV=development 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!     /Users/user/Documents/Proyectos/laravel/npm-debug.log

I checked that the file : resources/assets/js/plugins/loaders/pace.min.js, exists.

  • Laravel Mix Version: 0.6.0
  • Node Version (node -v): v6.9.4
  • NPM Version 3.10.10
  • OS: Mac OS X Sierra

package.json

  "private": true,
  "scripts": {
    "dev": "node node_modules/cross-env/bin/cross-env.js NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
    "watch": "node node_modules/cross-env/bin/cross-env.js NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
    "hot": "node node_modules/cross-env/bin/cross-env.js NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
    "production": "node 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"
  },
  "devDependencies": {
    "axios": "^0.15.2",
    "laravel-mix": "^0.6.0",
    "jquery": "^3.1.0",
    "lodash": "^4.16.2",
    "vue": "^2.0.1",
    "vue-resource": "^0.9.3",
    "phantomjs-prebuilt": "^2.1.7"
  }
}

Why is it asking me for pace module?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
tillkrusscommented, Feb 15, 2017

That solved it. Not sure why that wasn’t installed. Using regular NPM, not Yarn.

0reactions
tillkrusscommented, Feb 15, 2017

Thanks @JeffreyWay!

Read more comments on GitHub >

github_iconTop Results From Across the Web

This dependency was not found in node_modules: * pace #381
ERROR Failed to compile with 1 errors This dependency was not found in node_modules: * pace Did you forget to run npm install...
Read more >
laravel-mix running npm run dev throw "This dependency was ...
Then run npm run dev and I get this error: ERROR Failed to compile with 1 errors 14:37:37 This dependency was not found:...
Read more >
Compiling assets with npm run dev throw "This dependency ...
ERROR Failed to compile with 1 errors 14:37:37 This dependency was not found: * pace in ./resources/assets/js/pace.js To install it, you can run:...
Read more >
pace-js - npm
Start using pace-js in your project by running `npm i pace-js`. ... Pace is fully automatic, no configuration is necessary to get started....
Read more >
Specifying dependencies in Node.js - Cloud Functions
When this script is executed, the dependencies in the dependencies and devDependencies fields of your package.json file are available. After executing your ...
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