账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    昨天下班前项目还好好的,今早到公司一启动项目突然报了个奇葩的错误?
    41
    0

    昨晚下班前还在写的项目,尽早到公司一启动项目的时候突然报错如下:

    Error: Cannot find module 'chalk'

    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:594:15)
    at Function.Module._load (internal/modules/cjs/loader.js:520:25)
    at Module.require (internal/modules/cjs/loader.js:650:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (C:\Users\lhy\Desktop\project_ljl\vue-admin-master\build\check-versions.js:1:75)
    at Module._compile (internal/modules/cjs/loader.js:702:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
    at Module.load (internal/modules/cjs/loader.js:612:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
    at Function.Module._load (internal/modules/cjs/loader.js:543:3)

    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! vueadmin@1.0.5 dev: node build/dev-server.js
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the vueadmin@1.0.5 dev script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
    npm WARN Local package.json exists, but node_modules missing, did you mean to install?

    npm ERR! A complete log of this run can be found in:
    npm ERR! C:UserslhyAppDataRoamingnpm-cache_logs2018-07-27T00_57_02_155Z-debug.log

    Process finished with exit code 1

    一检查chalk这个东西我是有的,而且npm install一遍了也,还是报这个错。。(项目技术栈是vue-cli脚手架和element-ui)

    0
    打赏
    收藏
    点击回答
        全部回答
    • 0
    • 陌生默笙 普通会员 1楼
      502 Bad Gateway

      502 Bad Gateway


      nginx
    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部