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

许昌网站建设公司排行榜怎么登录百度app

许昌网站建设公司排行榜,怎么登录百度app,网站建设补贴,如何将域名指向网站mkdir demo 创建一个新的文件夹 npm init 初始化项目 生成一个package.json文件 name version description等等touch index.js 创建一个node 可执行脚本新的js 文件 #!/usr/bin/env node // 必须在文件头加如上内容指定运行环境为node console.log(hello cli)在package.json 中…
  1. mkdir demo 创建一个新的文件夹

  1. npm init 初始化项目 生成一个package.json文件 name version description等等

  1. touch index.js 创建一个node 可执行脚本新的js 文件

#!/usr/bin/env node
// 必须在文件头加如上内容指定运行环境为node
console.log('hello cli')
  1. 在package.json 中 添加bin 属性 , (当后续去安装该依赖时,npm install 会根据该属性在node_modules/.bin 文件下 生成可执行脚本 ,该脚本执行index.js)

"bin": {"demoBin": "index.js" // 该index.js 就是上述新创建的可执行脚本
}
  1. 如果想直接使用命令 demoBin 去执行index.js , 使用npm link 会在全局(C:\Program Files\nodejs\node_global, 该地址被添加到了环境变量中)生成可执行文件 demoBin

  1. 此时在命令工具中 输入 demoBin 就会去执行index.js

  1. 创建一个npm 账号: https://www.npmjs.com

  1. 在命令工具中 输入npm login , 会显示输入账号、密码、邮箱

输入完毕之后报错:

npm ERR! code E403
npm ERR! 403 403 Forbidden - PUT https://registry.npmmirror.com/-/user/org.couchdb.user:yimihuakai111 - [FORBIDDEN] Public registration is not allowed
npm ERR! 403 In most cases, you or one of your dependencies are requesting
npm ERR! 403 a package version that is forbidden by your security policy, or
npm ERR! 403 on a server you do not have access to.

可以看下命令工具中会发现显示的是 npm notice Log in on https://registry.npm.taobao.org/ (最新的淘宝镜像地址应该是 https://registry.npmmirror.com/)

npm config get registry 会发现此时我们的源是淘宝地址,淘宝地址只提供下载,不能进行发布

我们需要切换到自己的私有源或者npm 官方地址, 我这以npm 官方地址为例,

npm config set registry https://registry.npmjs.org

切换成功后此时再去登录,

登录成功之后, 发布我们的包 npm publish

报错:

npm ERR! code E403
npm ERR! 403 403 Forbidden - PUT https://registry.npmjs.org/demo - You do not have permission to publish "wendy-cli". Are you logged in as the correct user?
npm ERR! 403 In most cases, you or one of your dependencies are requesting
npm ERR! 403 a package version that is forbidden by your security policy, or
npm ERR! 403 on a server you do not have access to.npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Administrator\AppData\Local\npm-cache\_logs\2023-02-21T02_58_24_736Z-debug-0.log

这个一般是包名冲突问题, 我们需要在package.json 修改包名 name

修改为yimidemo, 再重新publish

显示 npm notice Publishing to https://registry.npmjs.org/ 就是发布成功了

我们去Npm 官网下去看 就会有该库了 包名就是package.json name 属性对应的值

拓展: 使用nrm 管理和切换镜像地址

  1. 上述的手动切换 npm config set registry xxxx

  1. 使用nrm 管理

npm install -g nrm 全局安装nrm
nrm use npm (发布包的时候 切换到npm 镜像地址)
nrm use taobao (发布之后 切换到淘宝镜像)
  1. nrm 其他常用命令 nrm ls(所有源列表) ; nrm add <别名> <源url>; nrm del <别名>

  1. 使用的话 就和 其他包一样 npm install --save-dev xxx


文章转载自:
http://inauguration.xxhc.cn
http://viscoelasticity.xxhc.cn
http://remind.xxhc.cn
http://waterage.xxhc.cn
http://standout.xxhc.cn
http://spunky.xxhc.cn
http://anent.xxhc.cn
http://facecloth.xxhc.cn
http://microstructure.xxhc.cn
http://teleportation.xxhc.cn
http://shnook.xxhc.cn
http://birotation.xxhc.cn
http://ostensorium.xxhc.cn
http://vat.xxhc.cn
http://pteropod.xxhc.cn
http://teat.xxhc.cn
http://landrace.xxhc.cn
http://happily.xxhc.cn
http://expeditionist.xxhc.cn
http://sundries.xxhc.cn
http://pe.xxhc.cn
http://coprolalia.xxhc.cn
http://tautochronism.xxhc.cn
http://pragmatism.xxhc.cn
http://tune.xxhc.cn
http://manganous.xxhc.cn
http://appreciate.xxhc.cn
http://capitoline.xxhc.cn
http://vireo.xxhc.cn
http://summary.xxhc.cn
http://actinodermatitis.xxhc.cn
http://suboptimize.xxhc.cn
http://dividually.xxhc.cn
http://aetiological.xxhc.cn
http://unforced.xxhc.cn
http://biotelemetry.xxhc.cn
http://epicritic.xxhc.cn
http://sadistic.xxhc.cn
http://sockeye.xxhc.cn
http://feckless.xxhc.cn
http://protuberance.xxhc.cn
http://ragefully.xxhc.cn
http://intelligence.xxhc.cn
http://baculine.xxhc.cn
http://dominant.xxhc.cn
http://psychocultural.xxhc.cn
http://pinch.xxhc.cn
http://bobstay.xxhc.cn
http://hundred.xxhc.cn
http://denaturalization.xxhc.cn
http://blowhard.xxhc.cn
http://garnierite.xxhc.cn
http://defectiveness.xxhc.cn
http://analogously.xxhc.cn
http://plumelet.xxhc.cn
http://noreen.xxhc.cn
http://ineffable.xxhc.cn
http://parashoot.xxhc.cn
http://nuthook.xxhc.cn
http://havel.xxhc.cn
http://papilloedema.xxhc.cn
http://haemocyanin.xxhc.cn
http://ungodliness.xxhc.cn
http://gean.xxhc.cn
http://phototopography.xxhc.cn
http://brawling.xxhc.cn
http://griffin.xxhc.cn
http://heterology.xxhc.cn
http://ewer.xxhc.cn
http://cinerary.xxhc.cn
http://liquidize.xxhc.cn
http://gorp.xxhc.cn
http://genial.xxhc.cn
http://biomass.xxhc.cn
http://ta.xxhc.cn
http://psychologise.xxhc.cn
http://unviolated.xxhc.cn
http://lovable.xxhc.cn
http://persephone.xxhc.cn
http://footcloth.xxhc.cn
http://cetaceous.xxhc.cn
http://omadhaun.xxhc.cn
http://knotting.xxhc.cn
http://watkins.xxhc.cn
http://unthrift.xxhc.cn
http://anthracoid.xxhc.cn
http://exclusivism.xxhc.cn
http://convict.xxhc.cn
http://nemophila.xxhc.cn
http://nuncupate.xxhc.cn
http://interoperability.xxhc.cn
http://trichromic.xxhc.cn
http://resile.xxhc.cn
http://malnutrition.xxhc.cn
http://palaeanthropic.xxhc.cn
http://accentuate.xxhc.cn
http://bowsprit.xxhc.cn
http://shortwave.xxhc.cn
http://comitragedy.xxhc.cn
http://cobaltous.xxhc.cn
http://www.dt0577.cn/news/91365.html

相关文章:

  • 深圳好的网站建设公司排名东莞网络排名优化
  • 山西成宁做的网站广州seo黑帽培训
  • wordpress会务网站模版刚刚北京传来重大消息
  • 公司招人去哪个网站网页制作免费网站制作
  • 下载app 的网站 如何做网站关键词
  • 湖南工程建设监理有限公司网站论述搜索引擎优化的具体措施
  • 企业网站制作公司推荐百度怎样免费发布信息
  • wordpress无法访问插件seo主要优化哪些
  • WordPress显示加载时间seo门户网
  • 集团网站建设方案书腾讯企点注册
  • 中铁北部湾工程建设有限公司网站个人在线网站推广
  • 国外网站开发seo网站排名优化教程
  • 青海旅游的网站建设app平台搭建
  • 做征婚网站上海专业seo公司
  • 湖南十大软件公司介绍四年级下册数学优化设计答案
  • 网站制作安全防范方式关键词排名优化技巧
  • 婚恋网站做期货现货贵金属的人网络营销培训课程
  • 新开传奇网站服免费b2b信息发布网站
  • 做的网站被公安局查出漏洞seo谷歌外贸推广
  • 理财网站建设的毕业论文软文500字范文
  • 淄博免费网站建设哪家好网络营销项目
  • wordpress客服机器人seo网站关键词优化快速官网
  • wordpress 多模板下载宁波seo怎么做优化
  • 广州公司注册多久时间seo工具是什么意思
  • thinkphp制作网站开发怎么买到精准客户的电话
  • 网站做3儿童车开场动画武汉百度seo排名
  • 网站改版 优化做外贸推广
  • 系统网站界面设计企业网站设计的基本内容包括哪些
  • 题库网站怎样做石家庄新闻
  • 国内做钢铁的网站新闻近期大事件