How to install Nodejs using bash script in Windows Server 2012 - node.js

I have a bash file. It has to install some dependency apps like Nodejs(MSI file) and Chrome(EXE file) when I run it in Windows server.
Can you help me, please?

Related

How to upload laravel project on remote server

I'm trying to install new laravel project via ssh connection on remote server based on ubuntu. I've faced following problem:
This project requires php 7.2 zip extension I guess. But I've already had php 7.2.
Can someone help me with this?
P.S. I've tried every command like sudo apt-get install php7*- and etc...

How to install nodejs and npm on windows using command lines

I am creating a package installer which has nodejs, redis, and socket.io as prerequisites. The problem is that I don't want the developers to install the prerequisites own their own.
I figured out a way of doing that using on mac and ubuntu by including brew install node for mac
and sudo apt-get install nodejs, sudo apt-get install npm
I am now looking for a way to install nodejs on window using a command or two.
Any Idea? Please.
You can install using this msiexec, select the version that's most suitable for you in the link
msiexec.exe /a https://nodejs.org/dist/v8.3.0/node-v8.3.0-x64.msi /quiet
Nodejs Alternative For Windows
Using Chocolatey:
cinst nodejs
or for full install with npm
cinst nodejs.install
Using Scoop:
scoop install nodejs
You could use:
cinst nodejs.install
This is great install with npm.
Install nodejs version 8.10.0 on window
download the installer from the url given below
https://nodejs.org/download/release/v8.10.0/
download .mis file from this page
you can download all versions form this url just by changing version number in the end of url
2.Install Angular 6 on window
Open command line as administrator
run below command in command line
npm install -g #angular/cli#6
I was running in the ServerCore windows container on Gitlab so the msiexec.exe did not work for me. However found another answer that did work over here from user Witcher: Docker + Node.js + Windows
The commands in the container that ended up working in my gitlab yml file before_script were:
Invoke-WebRequest 'https://nodejs.org/dist/v18.12.0/node-v18.12.0-win-x64.zip' OutFile 'C:/nodejs.zip'
Expand-Archive C:\nodejs.zip -DestinationPath C:\
Rename-Item "C:\\node-v18.12.0-win-x64" C:\nodejs
$Env:Path += ";C:\nodejs"
This is downloading the Zip file from Nodejs's site to the root of C, expanding the archive, and setting the nodejs path to the environment path variable so the "npm" command is recognized.

How to run the Reactjs Web Application in localhost:3000 in windows

I'm a new React Developer, and I'm having a problem in running it to my chrome. I already did the npm install in cmd, and then I npm start by its not starting because of error in cmd. And my OS is Windows 10.
What should I do?
in your package.json file the script define rm command witch is not available in windows that's why you are getting error
insted of rm change it to del
and if there is any UNIX specific command then change it to windows equivalent

How to install Cloud9 Local IDE on Chromebook

i'm using a Chromebook HP 11 in developer mode.
I installed Ubuntu v12.04 Unity on it, with Crouton.
On Ubuntu, i installed Nodejs (v0.6.12), npm (v1.1.4) and build-essential as it's said here : https://c9.io/site/blog/2012/06/cloud9ide-new-features/
But i don't know how to install the Cloud9 Local IDE, which i downloaded here :
http://static.c9.io/c9local/prod/c9local-latest.tgz
Can someone tell me how i should do it ?
In advance, Thanks.
you can do this two ways...
if you plan to install it directly to chromeOS you will need to put your machine into developer mode and have writeable rootfs. There's a tutorial here. NOTE- it's my understanding that this option voids a warranty, although perhaps that's true also with option #2 below
The other option is to install Ubuntu with Crouton as it's own OS and then install node/npm.
I opted for the later and have the cloud9 service running locally with Apache and MySql. Ubuntu will share the Downloads folder, so you can set up a folder there to manage all your local virtual hosts, etc.

/xampp/lang.php not found

I am new to linux(ubuntu). I installed XAMPP server in my system.. but after installing when i am using browser it shows the following error:
Not Found
The requested URL /xampp/lang.php was not found on this server.
Apache/2.2.22 (Ubuntu) Server at localhost Port 80
If you are using linux, you don't need xampp, linux has native packages for PHP development, called lamp (linux, apache, MySQL, PHP). In fact almost all web servers around the world that runs PHP are linux servers.
There are some easy steps that you can quickly install lamp unsing ubuntu's terminal.
sudo apt-get install lamp-server^
Note The caret (^) at the end of the command is important.
This will install the latest PHP, MySQL and Apache2 that is it in the Ubuntu repository (depending on your ubuntu version)
You can also install each component individually, here you can find the complete steps
Install LAMP Server on Ubuntu with a 1-line Command
It is also a good idea for development environment to setup a workspace directory in your home folder to hold your projects and than making virtualhost files in your /etc/apache2/sites-available folder (you need sudo privileges).
More about virtual hosts on Apache virtual hosts
This approach helps a lot with permissions of read/writes on your project files.
Best regards,

Resources