PhoneGap Cordova error Windows 10 - windows

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

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.

ionic installation issue: xmlbuilder

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

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

Web Essentials Nightly 2.2.4 can not compile Sass because it can not find module 'node-sass'

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.

Error installing testacular with latest version of nodejs 0.8.19

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.

Resources