zoukankan      html  css  js  c++  java
  • npm安装hexo报错

    npm安装hexo报错:

    • 可见是淘宝镜像的问题,
    • 查看自己当前的镜像npm get registry,
    • 然后切换为原来的镜像npm config set registry https://registry.npmjs.org/,
    • 安装成功,特此记录.
    
    
    C:Userszhang>npm install -g hexo-cli
    npm ERR! code ENOTFOUND
    npm ERR! errno ENOTFOUND
    npm ERR! network request to https://registry.npm.taobap.org/hexo-cli failed, rea
    son: getaddrinfo ENOTFOUND registry.npm.taobap.org registry.npm.taobap.org:443
    npm 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 settin
    gs.
    npm ERR! network
    npm ERR! network If you are behind a proxy, please make sure that the
    npm 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:UserszhangAppDataRoaming
    pm-cache\_logs2018-10-27T03_17_38_
    423Z-debug.log
    
    C:Userszhang>npm get registry
    https://registry.npm.taobap.org/
    
    C:Userszhang>npm config set registry https://registry.npmjs.org/
    
    C:Userszhang>npm install -g hexo-cli
    C:UserszhangAppDataRoaming
    pmhexo -> C:UserszhangAppDataRoaming
    pm
    o
    de_moduleshexo-cliinhexo
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_moduleshex
    o-cli
    ode_modulesfsevents):
    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.0
    added 225 packages from 431 contributors in 78.995s
    
    C:Userszhang>
    

    update :

    找到了更好的办法:感谢互联网
    http://roderic.cn/2017/06/14/搭建hexo博客的具体流程/

    http://visugar.com/2017/05/04/20170504SetUpHexoBlog/

    感谢万能的网友!

  • 相关阅读:
    获取进程编号
    通过队列完成进程之间的通信
    多进程的使用
    多任务的介绍
    nginx 的正向代理 和 反向代理
    nginx 学习 不断更新
    git 随笔(随时更新)
    mysql 主从复制
    指着他活着呢
    nginx正向代理 (带着请求头)
  • 原文地址:https://www.cnblogs.com/DiZhang/p/12544859.html
Copyright © 2011-2022 走看看