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
Related
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.
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 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
My scss won't compile in VS2013. The node-sass folder exists at the same level as the node-sass-middleware folder and has the node-sass module in it. Has anyone else seen this error? Do I need a new version of node? Does that node-sass module need to be copied somewhere else?
Error 11 module.js:340
throw err;
^
Error: Cannot find module 'node-sass'
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> (C:\Users\chris\AppData\Local\Microsoft\VisualStudio\12.0\Extensions\yiqxufal.vun\Resources\nodejs\tools\node_modules\node-sass-middleware\middleware.js:1:74)
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) 1 1
I have fixed this by install the node-sass module using npm
npm install -g node-sass
and then I copied the module into web essentials directory - from C:\Users\me\AppData\Roaming\npm\node_modules\node-sass to C:\Users\me\AppData\Local\Microsoft\VisualStudio\12.0\Extensions\[something]\Resources\nodejs\tools\node_modules\node-sass.