zoukankan      html  css  js  c++  java
  • 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
    

      

  • 相关阅读:
    Ubuntu 12.10 安装 jdk-7u10-linux-x64.tar.gz(转载)
    Android-- FragmentStatePagerAdapter分页(转载)
    Windows下安装Cygwin及包管理器apt-cyg(转)
    Androidi性能优化之多线程和同步
    Androidi性能优化之高效使用内存
    综合面试---常问知识点
    路由器
    域名系统
    IP地址与子网掩码
    网络层使用的协议
  • 原文地址:https://www.cnblogs.com/jifeng/p/7768238.html
Copyright © 2011-2022 走看看