• centos中nodejs npm安装cordova


    1、安装cordova

    npm install -g cordova --registry https://registry.npm.taobao.org
    npm install -g ionic --registry https://registry.npm.taobao.org

    2、安装cordova插件热更新

    npm install -g cordova-hot-code-push-cli --registry https://registry.npm.taobao.org

    permission denied错误解决办法:先执行npm config set unsafe-perm=true
    ngrok - downloading binary https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-386.zip
    ngrok - error storing binary to local file { Error: EACCES: permission denied, open '/usr/local/node/lib/node_modules/cordova-hot-code-push-cli/node_modules/ngrok/bin/aHR0cHM6Ly9iaW4uZXF1aW5veC5pby9jLzRWbUR6QTdpYUhiL25ncm9rLXN0YWJsZS1saW51eC0zODYuemlw.zip'
      errno: -13,
      code: 'EACCES',
      syscall: 'open',
      path: '/usr/local/node/lib/node_modules/cordova-hot-code-push-cli/node_modules/ngrok/bin/aHR0cHM6Ly9iaW4uZXF1aW5veC5pby9jLzRWbUR6QTdpYUhiL25ncm9rLXN0YWJsZS1saW51eC0zODYuemlw.zip' }
    ngrok - install failed, retrying
    ngrok - downloading binary https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-386.zip
    ngrok - error storing binary to local file { Error: EACCES: permission denied, open '/usr/local/node/lib/node_modules/cordova-hot-code-push-cli/node_modules/ngrok/bin/aHR0cHM6Ly9iaW4uZXF1aW5veC5pby9jLzRWbUR6QTdpYUhiL25ncm9rLXN0YWJsZS1saW51eC0zODYuemlw.zip'
      errno: -13,
      code: 'EACCES',
      syscall: 'open',
      path: '/usr/local/node/lib/node_modules/cordova-hot-code-push-cli/node_modules/ngrok/bin/aHR0cHM6Ly9iaW4uZXF1aW5veC5pby9jLzRWbUR6QTdpYUhiL25ncm9rLXN0YWJsZS1saW51eC0zODYuemlw.zip' }
    ngrok - install failed, retrying
    

      

  • 相关阅读:
    使用vs2010生成SQL Server 随机数据
    关于范式的一些简单理解
    SQL Server 中的逻辑读与物理读
    关于SQLServer 中行列互转的实例说明
    SQL Server2012新特性概述
    讨论关于RAID以及RAID对于存储的影响
    eclipse配置mybatis xml文件自动提示(转)
    eclipse自动添加注释
    模拟点击事件在alert前不起作用
    SSM提交了事物但数据库不执行
  • 原文地址:https://www.cnblogs.com/jifeng/p/7768238.html
Copyright © 2020-2023  润新知