博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
npm安装hexo报错
阅读量:4060 次
发布时间:2019-05-25

本文共 1482 字,大约阅读时间需要 4 分钟。

npm安装hexo报错:

  • 可见是淘宝镜像的问题,
  • 查看自己当前的镜像npm get registry,
  • 然后切换为原来的镜像npm config set registry https://registry.npmjs.org/,
  • 安装成功,特此记录.
C:\Users\zhang>npm install -g hexo-clinpm ERR! code ENOTFOUNDnpm ERR! errno ENOTFOUNDnpm ERR! network request to https://registry.npm.taobap.org/hexo-cli failed, reason: getaddrinfo ENOTFOUND registry.npm.taobap.org registry.npm.taobap.org:443npm ERR! network This is a problem related to network connectivity.npm ERR! network In most cases you are behind a proxy or have bad network settings.npm ERR! networknpm ERR! network If you are behind a proxy, please make sure that thenpm ERR! network 'proxy' config is set properly.  See: 'npm help config'npm ERR! A complete log of this run can be found in:npm ERR!     C:\Users\zhang\AppData\Roaming\npm-cache\_logs\2018-10-27T03_17_38_423Z-debug.logC:\Users\zhang>npm get registryhttps://registry.npm.taobap.org/C:\Users\zhang>npm config set registry https://registry.npmjs.org/C:\Users\zhang>npm install -g hexo-cliC:\Users\zhang\AppData\Roaming\npm\hexo -> C:\Users\zhang\AppData\Roaming\npm\node_modules\hexo-cli\bin\hexonpm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\hexo-cli\node_modules\fsevents):npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})+ hexo-cli@1.1.0added 225 packages from 431 contributors in 78.995sC:\Users\zhang>

update :

找到了更好的办法:感谢互联网

感谢万能的网友!

转载地址:http://cmwji.baihongyu.com/

你可能感兴趣的文章
Homebrew指令集
查看>>
React Native(一):搭建开发环境、出Hello World
查看>>
React Native(二):属性、状态
查看>>
JSX使用总结
查看>>
React Native(四):布局(使用Flexbox)
查看>>
React Native(七):Android双击Back键退出应用
查看>>
Android自定义apk名称、版本号自增
查看>>
adb command not found
查看>>
Xcode 启动页面禁用和显示
查看>>
【剑指offer】q50:树中结点的最近祖先
查看>>
二叉树的非递归遍历
查看>>
【leetcode】Reorder List (python)
查看>>
【leetcode】Linked List Cycle (python)
查看>>
【leetcode】Linked List Cycle (python)
查看>>
【leetcode】Candy(python)
查看>>
【leetcode】Clone Graph(python)
查看>>
【leetcode】Sum Root to leaf Numbers
查看>>
【leetcode】Pascal's Triangle II (python)
查看>>
java自定义容器排序的两种方法
查看>>
如何成为编程高手
查看>>