Yeoman generator install and get ran from different file locactions - path

Excuse my ignorance as I am still getting comfortable with adding folders to paths. That being said my yeoman generators are being installed to ~/.node/lib/node_modules and ran my /usr/local/lib/node_modules.
How can I change where my yo generators install? Or how to can I add them to my yeoman path?

I just manually dragged them to the other folder

Related

electron-packager: How to include specific node_modules in dist?

I'm very new to Electron and I have created this dumb demo app.
It works fine if I run it with electron ., but when I build it with electron-packager, the dev tools tell me that it did not find several node_modules (like bootstrap, jquery), which I wanted to use.
How can I include bootstrap, jquery and electron-notifications (and their dependencies) in dist?
How do Electron users usually resolve this problem and how do they include specific node_modules?
Thanks in advance!
electron-packager will work with other node modules but I found my issue to be that I had the module I was using to be in both "dependencies" and "devDependencies" You need these modules to be in "dependencies" only and not in both. It will prune any modules listed in "devDependencies".
I think the easiest way is to reinstall the modules with
$ nmp install <package name> --save
Than you have the modules saved. And you don't have to change your code.
You can also write after the --save --dev
just use electron-builder. it works as expected right out of the box

Trying to get auto Update to work with electron

I keep trying different tutorials, but they all seem to be scattered and out dated.
Everyone that I am trying I am running into many errors or deprecated code.
Are there any newer tutorials or modules I can use to simplify this process?
Currently I am using electron-simple-updater, but with this I keep getting the error in the .app file that it can't find the require module. It finds it when i just run npm run electron though.
Also when I distribute the update, should it be in the .app file or the built -dist folder?

Yeoman install location always set to desktop

I seem to be having trouble with yeoman scaffold installer.
I can cd to fresh directories which would be for the project files but for some reason using the yo starter it always installs build directories to desktop.
was working before, not sure what happened
You probably have a .yo-rc.json file in a parent directory.
Delete this file and it'll scaffold into your current directory.
Yeoman is warning you when this is happening, so if you read what the tool is telling you, you'll see why your issue is happening.

Is ReactJs on bower?

I'm very interested in some of the concepts in ReactJs and would like to play around with it. I'm trying to start a project to play around with it but I've been looking all over and I can't seem to find it on bower. But then again bower search kind of sucks...
Is it on there and I'm just not seeing it? If is there something about it that makes it not a good fit for the bower model? I would expect that both projects are popular enough they would work together.
I'm not sure on the particulars of bower, but we have this repository:
https://github.com/reactjs/react-bower
which should be available as bower install react.
$ bower lookup react
react git://github.com/facebook/react-bower.git
$
To bower installation, you need to install to Git Shell, using command promt of it, your project have got a bower file. When you installed them, you should be follow the command below:
> cd d:/yourappfolder/
> bower install

iOS where can i find cordova-1.8.0.js?

I would like to update from cordova-1.7.1.js to cordova-1.8.0.js but there's no way i can find the latter
I followed the API Documentation on how to upgrade from 1.7.0 projects to 1.8.x but when it says
2 - Copy the www/cordova-1.8.0.js file from the new project into your www folder, and delete your www/cordova-1.7.x.js file
I can't find cordova-1.8.0.js nor the folder www anywhere.
Seems like the likely answer is here:
https://groups.google.com/forum/?fromgroups=#!topic/phonegap/ZgW8-v9ZITQ
Suggest downloading the version you want from github https://github.com/phonegap/phonegap/tags and then looking in the ios subdirectory...
After installing Cordova, there's a javascript folder under /Users/xxxx/Documents/CordovaLib that contains the js file.

Resources