zoukankan      html  css  js  c++  java
  • vue踩坑记-在项目中安装依赖模块npm install报错

    在维护别人的项目的时候,在项目文件夹中安装npm install模块的时候,报错如下:

    5640239-dc87f7079b094ce3.png
    图片.png

    5640239-cec2308b23e4bf26.png
    图片.png
    npm ERR! path D:ShopApp
    ode_modulesfsevents
    ode_modulesabbrev
    npm ERR! code ENOENT
    npm ERR! errno -4058
    npm ERR! syscall access
    npm ERR! enoent ENOENT: no such file or directory, access 'D:ShopApp
    ode_modulesfsevents
    ode_modulesabbrev'
    npm ERR! enoent This is related to npm not being able to find a file.
    npm ERR! enoent
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     C:Program Files
    odejs
    ode_cache\_logs2018-08-01T02_35_44_300Z-debug.log
    

    解决办法:

    将no such file or directory,access中指明的文件路径中的node_modules删除:
    rm -r node_modules或者直接在在项目文件夹中删除

    然后再重新npm install 安装


    5640239-b4209791ee425aa8.png
    图片.png

    重新npm install 安装结果如下:

    5640239-86ead1b9f3026b95.png
    图片.png

    这个时候就可以启动项目,打开运行项目了

    原文作者:祈澈姑娘
    技术博客:https://www.jianshu.com/u/05f416aefbe1

    90后前端妹子,爱编程,爱运营,爱折腾。
    坚持总结工作中遇到的技术问题,坚持记录工作中所所思所见,欢迎大家一起探讨交流。

  • 相关阅读:
    vue_03
    vue03
    vue2
    vue02
    vue 01
    JavaScript要点 (一) 变量-作用域
    在iOS应用程序中打开设备设置界面及其中某指定的选项界面
    多线程操作Coredata(转)
    iOS_城市定位
    本地验证码
  • 原文地址:https://www.cnblogs.com/ting6/p/9725393.html
Copyright © 2011-2022 走看看