美文网首页
npm ERR! Cannot read property 'r

npm ERR! Cannot read property 'r

作者: dongzhensong | 来源:发表于2020-04-26 22:25 被阅读0次

    最近电脑升级了系统,需要重装下npm
    然后重装后使用过程种一直报错

    npm ERR! Cannot read property 'resolve' of undefined
    

    原先的安装路径是D:\Program Files\nodejs
    经过多次重装之后,仍然不能用,最后将nodejs安装在了D:\nodejs
    居然可以了,尚不知是否是路径中带空格的原因,如果你也遇见相同的情况,可进行这种尝试。
    附上成功的结果:

    C:\Users\xxx>npm info vue
    
    vue@2.6.11 | MIT | deps: none | versions: 269
    Reactive, component-oriented view layer for modern web interfaces.
    https://github.com/vuejs/vue#readme
    
    keywords: vue
    
    dist
    .tarball: https://registry.npmjs.org/vue/-/vue-2.6.11.tgz
    .shasum: 76594d877d4b12234406e84e35275c6d514125c5
    .integrity: sha512-VfPwgcGABbGAue9+sfrD4PuwFar7gPb1yl1UK1MwXoQPAw0BKSqWfoYCT/ThFrdEVWoI51dBuyCoiNU9bZDZxQ==
    .unpackedSize: 3.0 MB
    
    maintainers:
    - yyx990803 <yyx990803@gmail.com>
    
    dist-tags:
    csp: 1.0.28-csp     latest: 2.6.11      next: 3.0.0-beta.4
    
    published 4 months ago by yyx990803 <yyx990803@gmail.com>
    

    相关文章

      网友评论

          本文标题:npm ERR! Cannot read property 'r

          本文链接:https://www.haomeiwen.com/subject/zeuswhtx.html