How to install node.js & angular.js on a google instance - angularjs

How do i install node.js & angular.js on a google instance running CentOS7
I can't find Instructions that work. The instance has no GUI installed
Regards

You can access CentOS terminal and download dependencies, like in freshly installed Ubuntu we use apt-get install npm and apt-get install node to install npm and node and then with npm we can install further packages.
Use terminal for this, check this if this helps you How To Install Node.js on a CentOS 7 server
Once npm install is done, you can install angularJS or any other npm packages.
Hope it helps you

Related

error opening web version react native in VS

I write in terminal npm start and after that I choose to run in web version. And i get this error
I tried to fix this problem like that "npm install react-native-web" But it didn't work
It looks like you're trying to use web support but don't have the required dependencies installed.
Please install react-native-web#~0.18.7, react-dom#18.0.0,
#expo/webpack-config#^0.17.0 by running:
npx expo install react-native-web#~0.18.7 react-dom#18.0.0
#expo/webpack-config#^0.17.0
If you're not using web, please ensure you remove the "web" string
from the platforms array in the project Expo config.
try this command: expo start --web
Installing both with legacy peer deps worked for me
npm i react-native-web --legacy-peer-deps
npm i react-dom --legacy-peer-deps
Install using this command:
Open Visual Studio Code terminal in the folder to install
npx expo install react-native-web#~0.18.7
npm install #expo/webpack-config#^0.17.0
npm install react-dom#18.0
Run this app with npm start

ExperimentalWarning when run the npm install

npm install
(node:17132) ExperimentalWarning: The fs.promises API is experimental
up to date, audited 1 package in 10s
I downloaded the Github project and opened it, I tried to install the node modules for it, I could not install the node modules.
Upgrade your nodejs version like this: npm install npm#latest -g

Error Trying to Install React on Windows 10

I'm trying to install react on windows 10 using npm install -g create-react-app.
The install fails and I get the following error message:
Error: EINVAL: invalid argument, mkdir 'C:\Program Files\Git\'C:\Users\User\AppData\Roaming\npm''
I should mention that I installed nodejs version 12.16.3 LTS on my windows machine right before I got this error.
Does anyone know why this is, or if there's a solution to this problem?
Please help!
First of all you are not trying to install react. You are trying to install create-react-app terminal tool. With that tool you can easily create react projects.
Let's do some checks first.
# Remove if you have installed it before
npm uninstall -g create-react-app
# Check if you have installed 'git' (if not install git)
git --version
# Check node.js (if not install node.js)
node --version
# Check npm (if not install npm)
npm --version
If they are all installed, now you can start installing create-react-app. I am not windows user but i would suggest you to use powershell. On linux i would use sudo command for this install.
# install create-react-app
npm install -g create-react-app
# check if it is installed
create-react-app --version

can't run npm install in laravel project how to fix it

I'm creating a laravel application with react template, when I run npm install
throws an error exception, I also tried changing folder permissions, removed
node_modules then reinstalled it but not working any solutions???
Judging by the error I see in your console:
pngquant failed to build, make sure that libpng-dev is installed
Seems like you don't have a pngquant package installed. Try the following steps:
Install package locally:
sudo apt-get install libpng-dev
Install npm package:
npm install -g pngquant-bin
If you already have node_modules directory in your project, delete it and install node_modules again:
npm install
According to Image Provided, Everything seems to be fine until it hits this missing package causing the exception to be thrown.
The missing package is libpng-dev: A virtual package.
See the Debian policy for a definition of virtual packages.
You can see here for details.
You have to Run this Command
sudo apt-get install libpng-dev
In case you hit an error saying it has been installed before, It means you have installed another build of this package. Hence, you have to reinstall it.
sudo apt-get install --reinstall libpng12-0=1.2.51-0ubuntu3
And then, try running npm install
I hope it works.
I solved similar issue in my localhost environment by moving libraries from devDependencies{} into dependencies{}
Otherwise
You should set global Node environment called NODE_ENV to development
NODE_ENV=development
References
How to set NODE_ENV to production/development in OS X
Environment variables in Node.js. The Right way!

Install NPM on linux

My purpose is to install angularjs !
For that i need => npm,so I want to install nodejs for having "NPM" but i have this error :
File "./configure", line 16, in <module>
from gyp.common import GetFlavor
File "./tools/gyp/pylib/gyp/__init__.py", line 8, in <module>
import gyp.input
File "./tools/gyp/pylib/gyp/input.py", line 873
except ImportError as e:
Probably the problem is the version of python 2.5 : The problem is i don't have right to update python.
PLZ, how can i install npm on linux without Nodejs
Helps appreciated.
Regards
First update your system's package and make sure you have newest versions of packages and their dependencies.
sudo apt-get update
Then install npm(and/or nodejs if needed)
sudo apt-get install npm nodejs
Finally, you may install angular with following command
npm install angular
FYI, The best way to install npm is to install node using the node.js installer. npm is installed as part of node.

Resources