Error installing testacular with latest version of nodejs 0.8.19 - installation

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.

Related

Gulp - cannot find module 'laravel-elixir'

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.

deployd Error: Cannot find module 'deployd/lib/resource'

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
;-)

PhoneGap Cordova error Windows 10

I am trying to use phoneGap for mobileapp but cordova throws error on any command and even -v on Windows 10
c:\cordova -v
module.js:340
throw err;
^
Error: Cannot find module 'proto-list'
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\Damjan\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\npm\node_modules\config-chain\index.js:1:79)
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 had a similar error twice in W10, but you can try the following
1) Run as administrator CMD
2) Copy all your files located in WWW and add a new project.
That has worked for me, good luck.
On my Windows 10 the command
c:\cordova -v
return
5.3.3
Have you upgrade your stack to :
cordova 5.3.3
npm 3.3.8
node 4.2.1
npm-windows-upgrade 0.4.6

Error when running gulp --production Vagrant Laravel / Homestead

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

How to resolve "Error: Cannot find module 'gulp-browserify'"

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

Resources