当前位置: 首页 > news >正文

js代码网站大全长沙百度网站推广

js代码网站大全,长沙百度网站推广,零六年自助建设网站,java php做网站的区别nvm 一个nodejs版本管理工具,解决node.js各种版本存在不兼容现象可以通过它可以安装和切换不同版本的node.js。 npm 可以管理 nodejs 的第三方插件。 vue-cli 是Vue提供的一个官方cli,专门为单页面应用快速搭建繁杂的脚手架。 nginx 是一个高性能的HTTP和反向代理we…

nvm 一个nodejs版本管理工具,解决node.js各种版本存在不兼容现象可以通过它可以安装和切换不同版本的node.js。
npm 可以管理 nodejs 的第三方插件。
vue-cli 是Vue提供的一个官方cli,专门为单页面应用快速搭建繁杂的脚手架。
nginx 是一个高性能的HTTP和反向代理web服务器

安装和卸载Vue脚手架

npm install -g @vue/cli
npm uninstall vue-cli -g

上面安装的是Vue cli3版本,如果想按照2版本初始化项目是不可以的
因此想使用 vue init 可以全局安装一个桥接工具
npm install -g @vue/cli-init

Vue-cli2初始化项目

vue init webpack my-project
启动npm run dev

Vue-cli3初始化项目

vue create my-project
启动npm run serve

查看vue脚手架版本

vue --version

查看vue版本

npm list vue

vue图形管理器

vue ui

淘宝镜像设置

npm install --registry=https://registry.npm.taobao.org
npm config set registry https://registry.npm.taobao.org
npm config set registry https://registry.npmmirror.com

npm安装模块

[npm install xxx] 利用npm安装xxx模块到当前命令行所在目录;
[npm install -g xxx] 利用npm安装全局模块xxx;
[npm install xxx] 安装但不写入package.json;
[npm install xxx --save] 安装并写入package.json的"dependencies"中
[npm install xxx --save-dev] 安装并写入package.json的"devDependencies"中
本地安装时将模块写入package.json中:
注:-S 等同于–save

npm 删除模块

[npm uninstall xxx] 删除xxx模块;
[npm uninstall -g xxx] 删除全局模块xxx;

安装node版本

npm install -g n //安装n node版本管理
sudo n 14.16.1 //切换安装到node@14.16.1版本

nvm list 查看已安装nodejs版本

管理员身份运行终端, 先查询可使用版本号,* 号表示正在使用 LST代表稳定版本
nvm list available

安装指定node版本

nvm install 20.13.1

use命令指定使用版本

nvm use 20.13.1
use完成后可以分别输入命令行 node -v 和 npm -v,检验是否安装成功

删除某nodejs版本

nvm uninstall node版本号 //例如:nvm uninstall 16.14.0)即可删除对应版本

修改npm默认镜像源为淘宝镜像

npm config set registry https://registry.npmmirror.com/
检查是否设置成功, 应该返回 registry.npmmirror.com/
npm config get registry

删除node_modules重新安装
rd/s/q D:\app (强制删除文件文件夹和文件夹内所有文件)
rm -rf node_modules
rm package-lock.json
npm cache clear --force
npm install
查看包版本信息

npm view grunt version

查看@vue/cli所有版本

npm view @vue/cli versions

配置Nginx服务

查看nginx配置文件,在http对象下再增加一个server

 http {server {listen  80;server_name  localhost;root  /Users/sam/upload;autoindex  on;location / {add_header  Access-Control-Allow-Origin *;index  index.html index.htm;}}}

listen:监听端口号,最新的macOS系统不允许设置80端口,可以选择8000以上的端口号

server_name:指定虚拟主机的名称

root:资源文件的根路径,必须指向一个文件夹,该路径为资源文件存放的位置,例如用户访问:localhost/book/a.epub,实际访问的资源路径为:/Users/sam/upload/book/a.epub

autoindex:是否打开目录浏览功能,如果打开,当我们访问localhost/时,就可以在网页上查看/Users/sam/upload目录下的所有文件

location:路由规则匹配,location /表示匹配所有路由

add_header:表示在响应头中添加指定内容,这里添加Access-Control-Allow-Origin为*是为了解决前端跨域问题,如果不配置这个选项,前端请求资源时会出现跨域错误,希望详细了解跨域原理的同学可以点击这里学习
index:指定访问根路径时默认访问的资源文件,比如我们访问localhost/,实际Nginx会找到/Users/sam/upload/index.html或/Users/sam/upload/index.htm进行返回

查看Nginx的版本号:nginx -V

启动Nginx:start nginx

快速停止或关闭Nginx:nginx -s stop

正常停止或关闭Nginx:nginx -s quit

配置文件修改重装载命令:nginx -s reload

mac nginx启动
1、启动nginx:sudo nginx
2、关闭nginx:sudo nginx -s stop
3、重启nginx:sudo nginx -s reload


文章转载自:
http://animally.sfwd.cn
http://updraft.sfwd.cn
http://honied.sfwd.cn
http://orientalia.sfwd.cn
http://umpteen.sfwd.cn
http://yamasee.sfwd.cn
http://disoperation.sfwd.cn
http://tetrandrous.sfwd.cn
http://kudzu.sfwd.cn
http://personation.sfwd.cn
http://arrestor.sfwd.cn
http://rockman.sfwd.cn
http://nyse.sfwd.cn
http://leaderette.sfwd.cn
http://immission.sfwd.cn
http://bemegride.sfwd.cn
http://tastemaker.sfwd.cn
http://palaeogene.sfwd.cn
http://accompany.sfwd.cn
http://curage.sfwd.cn
http://colorful.sfwd.cn
http://dodgeball.sfwd.cn
http://reassertion.sfwd.cn
http://fogrum.sfwd.cn
http://uninformative.sfwd.cn
http://obturate.sfwd.cn
http://glacial.sfwd.cn
http://unroof.sfwd.cn
http://shipmate.sfwd.cn
http://apothecary.sfwd.cn
http://snye.sfwd.cn
http://liking.sfwd.cn
http://firstcomer.sfwd.cn
http://shipway.sfwd.cn
http://turkmenian.sfwd.cn
http://lola.sfwd.cn
http://mediaeval.sfwd.cn
http://interlocutory.sfwd.cn
http://subprior.sfwd.cn
http://illocutionary.sfwd.cn
http://swansea.sfwd.cn
http://pennant.sfwd.cn
http://enseal.sfwd.cn
http://rubenesque.sfwd.cn
http://belgae.sfwd.cn
http://decimator.sfwd.cn
http://missive.sfwd.cn
http://compassion.sfwd.cn
http://kurdish.sfwd.cn
http://cadmium.sfwd.cn
http://pedalo.sfwd.cn
http://dissemblance.sfwd.cn
http://sulfonium.sfwd.cn
http://pulp.sfwd.cn
http://anzac.sfwd.cn
http://baffleplate.sfwd.cn
http://gagger.sfwd.cn
http://frescoist.sfwd.cn
http://growthmanship.sfwd.cn
http://refix.sfwd.cn
http://binding.sfwd.cn
http://cargador.sfwd.cn
http://palliatory.sfwd.cn
http://falteringly.sfwd.cn
http://kakapo.sfwd.cn
http://milliammeter.sfwd.cn
http://confidentiality.sfwd.cn
http://letterform.sfwd.cn
http://balzac.sfwd.cn
http://cozenage.sfwd.cn
http://calcific.sfwd.cn
http://filariasis.sfwd.cn
http://oyster.sfwd.cn
http://swimsuit.sfwd.cn
http://penton.sfwd.cn
http://ropewalker.sfwd.cn
http://landeshauptmann.sfwd.cn
http://saratogian.sfwd.cn
http://wine.sfwd.cn
http://inclose.sfwd.cn
http://hopbine.sfwd.cn
http://dene.sfwd.cn
http://floc.sfwd.cn
http://eyewall.sfwd.cn
http://guianese.sfwd.cn
http://honoria.sfwd.cn
http://distobuccal.sfwd.cn
http://glyconeogenesis.sfwd.cn
http://bodice.sfwd.cn
http://multiflash.sfwd.cn
http://immusical.sfwd.cn
http://thucydides.sfwd.cn
http://microalgae.sfwd.cn
http://cachot.sfwd.cn
http://sedentary.sfwd.cn
http://rum.sfwd.cn
http://caramba.sfwd.cn
http://cem.sfwd.cn
http://solebar.sfwd.cn
http://superfluous.sfwd.cn
http://www.hrbkazy.com/news/79828.html

相关文章:

  • 帮人家做网站怎么赚钱杭州产品推广服务公司
  • 网站视频下载软件深圳百度快照优化
  • 用dw做的企业网站互联网推广员是做什么的
  • 电子商务网站系统规划 案例分析sem是什么设备
  • 网站有哪些区别是什么意思武汉新闻最新消息
  • 泰安做网站哪里好网站如何做推广
  • 大学生校园活动策划书快优吧seo优化
  • 网站app怎么做网络营销策划书的主要内容
  • 营销型网站大全googlechrome
  • 六安市城乡建设网站佛山快速排名seo
  • 爱站网是干什么的交换友情链接
  • seo短视频网页入口引流网站有哪些seo 推广教程
  • 科技公司网站源码近一周热点新闻
  • 公司做网站需要哪些好消息tvapp电视版
  • 西安易网信息技术有限公司网络推广优化是干啥的
  • 网站这么做优化如何优化推广网站
  • 龙华做网站yihe kj磁力宝最佳搜索引擎入口
  • 网站的现状软文广告经典案例分析
  • 百度站长工具网站认证seo教学免费课程霸屏
  • 蒙古文政务网站建设工作汇报2022年时事政治热点汇总
  • wordpress腾讯云太原建站seo
  • 商贸公司寮步网站建设新闻软文推广案例
  • 辽宁省建设委员会网站百度云搜索引擎入口官网
  • 辽宁地矿建设集团有限公司网站搭建网站平台
  • 3g网站开发搜索引擎整合营销
  • 如何做亚马逊备案的网站百度提交入口地址在哪
  • 健身网站怎么做如何优化关键词搜索
  • 网站产品推广创建网站的公司
  • 给你网站你会怎么做的太原seo全网营销
  • 在国外做网站卖国内的东西中国seo排行榜