After running Gulp in cmd, I get the following error message :
module.js:549
throw err;
^
Error: Cannot find module 'laravel-elixir'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/Applications/XAMPP/xamppfiles/htdocs/pmp/gulpfile.js:14:14)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
I have tried installing and uninstalling npm, it didn't work at all. Can anyone help?
Install laravel-elixir
npm install laravel-elixir
Also did you run:
npm install
If not, run that too.
Related
cant get ionic to setup and run because of the xmlbuilder error and have tried every possibilty of trying it but no luck:
C:\Program Files (x86)\nodejs\node_modules>ionic start todo blank
Error: Cannot find module 'xmlbuilder'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (C:\Users\armaan\AppData\Roaming\npm\node_modules\ionic\node_modules\xml2js\lib\xml2js.js:12:13)
at Object. (C:\Users\armaan\AppData\Roaming\npm\node_modules\ionic\node_modules\xml2js\lib\xml2js.js:436:4)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
npm install -g xmlbuilder
just this!
hope that helps ;)
i installed the file-upload module in deployd and cannot more start the deployd server.
To install, i used those commands:
npm install dpd-fileupload --save
cd dpd-fileupload
npm link
and when i start the server, i get this error
Error loading module node_modules/dpd-fileupload
Error: Cannot find module 'deployd/lib/resource'
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:287:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object.<anonymous> (/Users/me/project/node_modules/dpd-fileupload/index.js:6:18)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at /Users/me/deployd/lib/type-loader.js:26:32
at doNTCallback0 (node.js:417:9)
at process._tickDomainCallback (node.js:387:13)
I just created a link to deployd and it works.
The command:
npm link deployd
;-)
I set up a laravel/homestead environment to study the Laravel 5.1, while trying to run gulp --production command get the error below:
Error: Cannot find module 'strip-bom'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/vagrant/app/node_modules/gulp/node_modules/vinyl-fs/lib/src/getContents/bufferFile.js:4:16)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
I've looked hard and found nothing to correct the error.
You don't have strip-bom installed. You have to install it like this.
npm install --save strip-bom
I tried to run my files with gulp, and it showed:
Last login: Fri Dec 5 11:09:12 on ttys001
Macs-MacBook-Pro:responsive mac$ gulp
Error: Cannot find module 'gulp-browserify'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/Users/mac/Desktop/responsive/gulpfile.js:3:18)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
What should I do?
Thanks.
I've just reinstalled gulp (and all required modules) globally and locally; like:
sudo npm install -g gulp gulp-watch gulp-stylus gulp-file-include browser-sync kouto-swiss gulp-browserify browserify
and then in project folder:
npm install gulp gulp-watch gulp-stylus gulp-file-include browser-sync kouto-swiss gulp-browserify browserify
and that helped for me
I get the following error when I run below command..
⚡ sudo npm -g install testacular
module.js:340
throw err;
^
Error: Cannot find module 'npmlog'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at /usr/local/bin/npm:19:11
at Object.<anonymous> (/usr/local/bin/npm:87:3)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
Try re-installing node.js - http://nodejs.org/download/
This happened to me after an old version of n failed to install node v0.10.5, then I upgraded n and had it install node. It apparently didn't install npm quite correctly.