I need help for REACT in windows - windows

Today i installed react in my pc with windows, i had to install chocolaley, i didnt like this, but no problem, i installed chocolaley. Now, when i want to create a app (in the powershell of windows) using the command meteor install my_app the Meteor is so slow, and the instalation dont finish, the message that show all the time is meteor loading package standard-minified css I need hellp, and now i cant use linux or OSX. I have to tried the solution but i cant now.

Try npm cache clean --force to clear your npm cache then install meteor again

Related

Hyperledger composer disappears after turning off the PC

I follow this guide for installation (on Mac)
https://hyperledger.github.io/composer/latest/installing/development-tools.html#appendix
and this one for developing a business network
https://hyperledger.github.io/composer/v0.16/tutorials/developer-tutorial
everything is fine, unless when I shutdown the computer, the composer seems to be uninstalled!! Mac's terminal does not recognize composer commands and I have to uninstall and install all them again! Can you give your idea about what the cause is? Thanks
Make sure You have install all composer package with -g and Not using nvm. If using nvm then make sure to be on same version every time you use composer command.

trying to install Polymer 2 CLI

I am trying to run a web app using Polymer. I recently installed Bower & Polymer CLI via Bower – however, whenever I attempt to run 'polymer serve' I receive the message '-bash: polymer: command not found' on Terminal.
Any tips on how I can get this working?
Thanks.
You should update the polymer-cli then create a project using polymer init, use polymer 3.0 app which use npm instead of bower the run polymer serve
This is usually due to an old version of node. I suggest you update node, as well as npm and git. Try installing polymer-cli again with the new node. Then you should be able to run polymer command.
This generally happens when the module is not installed or configured properly or an outdated version. Install or update the required module i.e, polymer-cli. After installing open new terminal or restart terminal and run polymer serve command.

How can I set up a mean stack app with mean.io which uses angular 1.4 and bower?

I want to code an app in angular 1.4 and for that I came across mean.io the best scaffolding tool presently.But when i downloaded it,i got webpack and tons of various unfamiliar stuff.Please tell me how i can download a mean.io app which uses angular 1.4 or if not then a nice scaffolding tool for angular 1.4 and steps to install it.That would be a great help !
Thanks in advance.
What you can do is head over to the Github page for the mean.io framekwork at this link Mean.io Github version 0.7.0. From there take a look at the read me and scroll follow the instructions.
You'll need to install mongo database on your machine and make sure its running each time you want to run your application. Here is a good link, follow it step by step. MongoDB install - windows
Then you will have to have the latest version of node.js installed. It can be installed here. node js download
You will also need to install the latest version of Git to your machine. It can be installed here Git download
Once the above are done, you will need to navigate to a directory on your computer using the command prompt/terminal and type the following commands. I suggest you go to C:\Users\YourName
npm install -g npm
npm update -g
npm install -g mean-cli
npm install -g bower
They will take some time so be patient.
Then type this command to clone the boilerplate code to your machine
mean init <yourAppTitle>
When that is done change directories into the project folder you just made like this
cd yourAppTitle
Then inside this folder type the following commands to install to your project
npm install
bower install
You may see some warning signs/errors and you can ignore them for now and proceed.
Finally, type this command inside your project folder - this will start your app. Remember to have mongodb running simultaneously or this will not work
gulp
Head over to your browser and type in localhost:3000
You should see the boilerplate code.
If you cannot get Mean.io working you can try installing a different angular scaffold here - angular scaffold. Read through the readme file and you will see steps to install the angular scaffold

MEAN install not working

I am not sure why my MEAN install is not working. I am trying to get a test page on localhost:3000 for a class that I am taking. here is a screenshot of my terminal:
my terminal
Your must be install yeoman to install and create a MeanJS project.
The scaffolding tool (you may have already installed it as it is part of the Yeoman tool set). To globally install yo, you will need to use npm:
$ npm install -g yo
Install the generator, with:
$ npm install -g generator-meanjs
Finnaly, create a project
$ yo meanjs
I noticed you're trying to use mean-cli. Taking into account that you included the meanjs tag, I will respond based on this.
Well, you do not specify what mean framework you're using, I think Mean.IO is that.

'ionic' is not recognized as an internal or external command

I have successfully installed Ionic. In fact, I have ran it many times already and it worked perfectly fine (on my browser using "ionic serve" command).. But when I have not done "Ionic stuffs" for a few days, and tried doing it this morning, the command is now unrecognized. What is wrong with this?
Running Windows 7 and ran into this issue myself. I ensured that I was running my command line as Administrator, cleaned the cache as suggested but continued to get the error that 'ionic' is not recognized...
After trying several other suggestions, I finally browsed to my nodejs location: C:\Program Files\nodejs
I ran the nodevars.bat to open the nodejs command prompt, ran the ionic command and everything worked as expected. I'm not sure what the issue is but running command from that .bat file appears to fix it.
I added this the path and all worked well.
%APPDATA%\npm;
I already solved it. :) For some unknown reason my ionic installation went MIA. And I didn't solve that directly, it had errors that says "Run as Administrator", etc when in fact I'm running Admin... The trick was to clean the cache before reinstalling Ionic using the npm cache clean command.
It had errors that says:
Run as Administrator
etc, when in fact I'm running as Admin... The trick was to clean the cache before reinstalling Ionic using the command:
npm cache clean
It worked for me. Just run npm command for cache clean and reinstall the ionic as:
npm install -g ionic
and it works perfectly fine.
After a couples days of this exact issue, I found my solution. Remove all of corodva with npm uninstall cordova and ionic with npm uninstall ionic. Then clear the cache with npm cache clear. View this for full removal https://stackoverflow.com/a/29429357/5144902
I then found that there was a couple folders still in my C:\Users\USERNAME\AppData\Roaming\npm. I could not remove this, as the file extension was too long. I opened cmd, and removed it with the DEL command. I then found that a node_modules folder was under my user folder. I removed that.
Then Global install with npm install -g ionic cordova. Works perfectly.
None of the solutions worked as permanent fix for me and it was pretty disgusting to use a fix every time I intended to use ionic. So, while browsing for a solution, I read some solutions that eventually led to this:
Go to your system settings->Advanced system settings->environment path. In my case, while the 'npm' was indeed added to the system path, it was separated by a single comma inspite of a colon (;). So, I replaced it with a colon and bingo! Please do restart your CMs before trying to test it. Hope it helps!
If you are on Windows, use Git Bash shell and have issues calling cordova and ionic,
maybe you'll have to add a path value to
c:\users[your username].bash_profile
this helped comparing windows path (cmd - echo %path%) with git bash shell path:
Git Bash doesn't see my PATH
for me, global paths were there, but user paths not. I had to add:
PATH=$PATH:/c/Program Files (x86)/Microsoft VS Code/bin:/C/Users/[my username]/AppData/Roaming/npm
answer here
İf "ionic" is installed;
1-Download and upgrade nodejs to latest version.
download nodejs
2- run command:
npm uninstall -g ionic
3-Clear these files:
C:\Users\user\AppData\Roaming\npm
C:\Users\user\AppData\Roaming\npm-cache
3-run command:
npm install -g #ionic/cli
İt is done:)
Go to nodejs installed directory ( in my case it's C:\Program Files\nodejs), then run the bat script "nodevars.bat" with administator permission. That solves my problem.
In the Windows environment, when we install packages with -g option they are not available sometimes while running the package through the command prompt. Steps below that worked for me —
Create a .npmrc file at C:\Users{username}\
Write below line in the .npmrc file. Write path as per the location of nodejs installed in your machine. Add double back slash wherever you have a back slash in the path.
prefix="D:\\programs\\nodejs"
Run the command to install the package again
npm install -g ionic
Run the new command
ionic serve
Variable Name: Path
Variable value: C:\Program Files\nodejs\bin
Try adding this to your user and environment variables , and then close the command prompt window and open.
The bin folder needs to be given for both user and environment variables
I got my problem resolved :)
You can uninstall as
npm uninstall -g ionic cordova
then clear cache
npm cache clean -f
then re-install as
npm install -g ionic cordova
Just go to your C:/users/(your name)/node_mudules, and uninstall node_mudules folder. Once uninstalled, open up node js command prompt and type
npm install -g ionic cordova
this worked for me

Resources