install vue

  2015 node -v

2016 cd ~
2017 curl -sL https://deb.nodesource.com/setup_16.x -o /tmp/nodesource_setup.sh
2018 nano /tmp/nodesource_setup.sh
2019 sudo bash /tmp/nodesource_setup.sh
2020 sudo apt install nodejs
2021 node -v
2022 nvm install v14.10.0
2023 node -v
2024 cd www
2025 cd ma-dash-ui/
2026 history


npm -v
node -v
sudo apt-get remove nodejs
sudo apt update
sudo apt install nodejs
nvm install v14.10.0
npm install vue@2.6.10
vue --version
vue create ma-dash-ui
pick a project version 2
npm run serve



# npm version
npm -v

### node version
node -v

### To upgrade node js version to some other version
sudo apt-get remove nodejs

### update
sudo apt update

### install node js
sudo apt install nodejs

### install required version
nvm install v14.10.0

### install vuejs
npm install vue@2.6.10

### vue version
vue --version

### create vue template
vue create ma-dash-ui
pick a project version 2

### run the vue
npm run serve



ERROR: for web Cannot start service web: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/home/pc/www/ma-dash-ui/nginx/default.conf" to rootfs at "/etc/nginx/conf.d/default.conf": mount /home/pc/www/ma-dash-ui/nginx/default.conf:/etc/nginx/conf.d/default.conf (via /proc/self/fd/6), fl Starting node ... error



  • The file /home/pc/www/ma-dash-ui/nginx/default.conf does not exist.

remove write protected nginx



chmod +w nginx.conf




ERROR: for node Cannot start service node: driver failed programming external connectivity on endpoint node (895cbd89a968bb1e7a5c0 Starting web ... done ERROR: for node Cannot start service node: driver failed programming external connectivity on endpoint node (895cbd89a968bb1e7a5c01621b816eeca00d7489440e281c432f4fd33cc6fd4f): Error starting userland proxy: listen tcp4 0.0.0.0:8080: bind: address already in use ERROR: Encountered errors while bringing up the project.



netstat -an | grep 8080

sudo lsof -i:80





docker-compose up -d ./dock node npm run serve

No comments:

Post a Comment

Event listening in react

 How we can listen to som eevents some envents fire like click or automatically user enters into input button , that is event on word type i...