Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot find module 'findup-sync' when trying to run grunt

I am having trouble running grunt-cli after installing it. I run

npm install -g grunt-cli 

then running grunt errors with

    node.js:63     throw e;     ^ Error: Cannot find module 'findup-sync'     at loadModule (node.js:275:15)     at require (node.js:411:14)     at Object.<anonymous> (/home/tmartin/bin/grunt:9:14)     at Module._compile (node.js:462:23)     at Module._loadScriptSync (node.js:469:10)     at Module.loadSync (node.js:338:12)     at Object.runMain (node.js:522:24)     at Array.<anonymous> (node.js:756:12)     at EventEmitter._tickCallback (node.js:55:22)     at node.js:773:9 

This is what I have installed:

tmartin@timcomp:~$ npm list -g /home/tmartin/lib └─┬ [email protected]   ├─┬ [email protected]   │ ├─┬ [email protected]   │ │ ├── [email protected]   │ │ ├── [email protected]   │ │ └─┬ [email protected]   │ │   ├── [email protected]   │ │   └── [email protected]   │ └── [email protected]   └─┬ [email protected]     └── [email protected] 
like image 807
Tim Martin Avatar asked Mar 16 '13 00:03

Tim Martin


1 Answers

I had to install and link findup-sync and a few other npm packages to get these dependency issues to go away. I though npm was supposed to handle them for us, but installing the dependencies manually made the issues go away.

npm install findup-sync -g

npm link findup-sync

like image 100
Matthew Fotzler Avatar answered Sep 24 '22 22:09

Matthew Fotzler