• npm cb.apply is not a function


    报错 cb.apply is not a function

    然后就删除了手动删除了C:Userszhiqi.shaoAppDataRoaming下的npm 和npm-cache(删除时关闭占用,如cmd)

    然后执行:

    C:Userszhiqi.shao>node -v
    v14.16.0
    
    C:Userszhiqi.shao>npm -v
    6.14.11
    
    C:Userszhiqi.shao>npm list -global
    C:Userszhiqi.shaoAppDataRoaming
    pm
    `-- (empty)
    
    
    C:Userszhiqi.shao>npm config set registry=http://registry.npm.taobao.org
    
    C:Userszhiqi.shao>npm config list
    ; cli configs
    metrics-registry = "http://registry.npm.taobao.org/"
    scope = ""
    user-agent = "npm/6.14.11 node/v14.16.0 win32 x64"
    
    ; userconfig C:Userszhiqi.shao.npmrc
    registry = "http://registry.npm.taobao.org/"
    
    ; builtin config undefined
    prefix = "C:\Users\zhiqi.shao\AppData\Roaming\npm"
    
    ; node bin location = D:Program Files
    odejs
    ode.exe
    ; cwd = C:Userszhiqi.shao
    ; HOME = C:Userszhiqi.shao
    ; "npm config ls -l" to show all defaults.
    
    
    C:Userszhiqi.shao>npm config get registry
    http://registry.npm.taobao.org/
    
    C:Userszhiqi.shao>npm info vue
    
    vue@2.6.12 | MIT | deps: none | versions: 315
    Reactive, component-oriented view layer for modern web interfaces.
    https://github.com/vuejs/vue#readme
    
    dist
    .tarball: https://registry.npm.taobao.org/vue/download/vue-2.6.12.tgz
    .shasum: f5ebd4fa6bd2869403e29a896aed4904456c9123
    
    maintainers:
    - yyx990803 <yyx990803@gmail.com>
    
    dist-tags:
    csp: 1.0.28-csp  latest: 2.6.12   next: 3.0.11
    
    published 7 months ago by yyx990803 <yyx990803@gmail.com>
    
    C:Userszhiqi.shao>npm install npm -g
    C:Userszhiqi.shaoAppDataRoaming
    pm
    pm -> C:Userszhiqi.shaoAppDataRoaming
    pm
    ode_modules
    pmin
    pm-cli.js
    C:Userszhiqi.shaoAppDataRoaming
    pm
    px -> C:Userszhiqi.shaoAppDataRoaming
    pm
    ode_modules
    pmin
    px-cli.js
    + npm@7.9.0
    added 252 packages from 909 contributors in 42.606s

    测试安装最新版本vue

    C:Userszhiqi.shao>npm install -g vue-cli@2.9.6
    npm WARN deprecated har-validator@5.1.5: this library is no longer supported
    npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
    npm WARN deprecated vue-cli@2.9.6: This package has been deprecated in favour of @vue/cli
    
    added 236 packages in 54s
    
    C:Userszhiqi.shao>
  • 相关阅读:
    tesseract的简单使用
    快速添加请求头
    1010. 一元多项式求导 (25)
    1009. 说反话 (20)
    1008. 数组元素循环右移问题 (20)
    1007. 素数对猜想 (20)
    1006. 换个格式输出整数 (15)
    素数判断
    1002. 写出这个数 (20)
    1005. 继续(3n+1)猜想 (25)
  • 原文地址:https://www.cnblogs.com/shaozhiqi/p/14643803.html
Copyright © 2020-2023  润新知