分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 技术分享

ubatu 安装nodejs npm liveserver

发布时间:2023-09-06 02:28责任编辑:胡小海关键词:jsnodejs
更新ubuntu软件源sudo apt-get updatesudo apt-get install -y python-software-properties software-properties-commonsudo add-apt-repository ppa:chris-lea/node.jssudo apt-get update安装nodejssudo apt-get install nodejssudo apt install nodejs-legacysudo apt install npm更新npm的包镜像源,方便快速下载sudo npm config set registry https://registry.npm.taobao.orgsudo npm config list全局安装n管理器(用于管理nodejs版本)sudo npm install n -g安装最新的nodejs(stable版本)sudo n stablesudo node -v1:安装node.js的版本控制工具nvm,在终端中执行:安装npmsudo apt install npm安装curlsudo apt install curlcurl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash2:关闭终端后,重新进入终端,安装nodenvm install node3:安装live-server:npm install live-server4:使用live-server在前段文件中运行live-server

ubatu 安装nodejs npm liveserver

原文地址:https://www.cnblogs.com/duanlinxiao/p/10202230.html

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved