zoukankan      html  css  js  c++  java
  • 安装cnpm错误:"registry=https: egistry.npm.taobao.org" as it does not contain a package.json file.

    "registry=https: egistry.npm.taobao.org" as it does not contain a package.json file.

    npm install -g cnpm registry=https://registry.npm.taobao.org

    npm ERR! code ENOLOCAL
    npm ERR! Could not install from "registry=https: egistry.npm.taobao.org" as it does not contain a package.json file.

    npm ERR! A complete log of this run can be found in:

    本想安装一个cnpm的,结果一直报错npm ERR! code ENOLOCAL,"registry=https: egistry.npm.taobao.org" as it does not contain a package.json file.

    npm install -g cnpm --registry=https://registry.npm.taobao.org
    

    到最后发现只要清空一下缓存就好了!

    npm cache clean --force
    

    再输入安装命令就可以了

    npm install -g cnpm --registry=https://registry.npm.taobao.org
    
  • 相关阅读:
    (六)软件测试分工
    <C++>FILE和fstream
    <C#>序列化
    <C#>多线程
    <C++>面试
    <C#>面试
    <Linux>Linux系统命令
    <Linux>Linux基础知识
    <CAN>汽车诊断基础知识
    <C++>查询
  • 原文地址:https://www.cnblogs.com/zhiwenxi/p/14314365.html
Copyright © 2011-2022 走看看