Posts

Showing posts with the label linux

install & un-install adobe flash plugin

Install Adobe Flash plugin Open terminal copy and paste it sudo apt-get update Now copy and paste sudo apt-get install adobe-flashplugin Un-Install Adobe Flash plugin Open terminal copy and paste it sudo apt-get update Now copy and paste sudo apt-get remove adobe-flashplugin

Install Google Chrome in Ubuntu 16.04 || 14.04

Install Google Chrome in Ubuntu 16.04 || 14.04 Open terminal. Copy and paste command wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - copy and paste this sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' Now install Chrome Browser sudo apt-get update sudo apt-get install google-chrome-stable launch Google Chrome google-chrome

you should install 'babel-loader@7'. || babel version

If you are Getting any error in compiling main.js or app.js or in Entry file of React App You have to Update Babel versions and dependency npm install -D babel-loader @babel/core @babel/preset-env webpack And change config file options: {           presets: ['@babel/preset-env']         }

Create react app by live-server || live Server || React App

Image
First install node and check node -v and npm -v Create a directory mkdir <your_directory_name> Run command npm init (press enter and use all defaults) by this command package.json file will be created in root directory for creating Dependency we run this command npm install --save-dev babel-cli babel-preset-react npm install --save-dev babel-cli babel-preset-env sudo npm install -g  babel-cli babel-preset-env babel-preset-react ( Installed "babel-cli@6.26.0" with binaries:  - babel-doctor  - babel - babel-node  - babel-external-helpers ) this packages are created. Install live server npm  install  -g  live - server Now again make a directory inside root directory mkdir public (you can take name as you want) mkdir src (you can take name what ever you want you want) inside public folder create two new file index.html index.js inside src folder create one new file  main.js ( this is file where react app execution is start. you can take