zoukankan      html  css  js  c++  java
  • 执行grunt命令报错 Cannot find module 'coffee-script'

    Failed to list grunt tasks in yudian-frontend-salesplatformGruntfile.js: process finished with exit code 1 (a non-zero exit code means an error)
    * Edit settings

    $ "C:Program Files odejs ode.exe" C:UsersadminAppDataRoaming pm ode_modulesgrunt-cliingrunt --no-color --verbose --gruntfile C:UsersadminDesktopfrontyudian-frontend-salesplatformGruntfile.js --tasks "C:Program FilesJetBrainsIntelliJ IDEA 2018.3.3pluginsJavaScriptLanguagegrunt_js asks" _intellij_grunt_tasks_fetcher
    internal/modules/cjs/loader.js:582
    throw err;
    ^

    Error: Cannot find module 'coffee-script'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
    at Function.Module._load (internal/modules/cjs/loader.js:506:25)
    at Module.require (internal/modules/cjs/loader.js:636:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (C:UsersadminDesktopfrontyudian-frontend-salesplatform ode_modules\_grunt@0.4.5@gruntlibgrunt.js:16:1)
    at Module._compile (internal/modules/cjs/loader.js:688:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
    at Module.load (internal/modules/cjs/loader.js:598:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
    at Function.Module._load (internal/modules/cjs/loader.js:529:3)

    Process finished with exit code 1

    尝试的解决方案:

    cnpm install coffee-script --save-dev
    还是不行的话:就删除 项目中 node_modules 目录,重新 cnpm install


    Stack Overflow:
    https://stackoverflow.com/questions/23622179/grunt-cannot-find-module-coffee-script
  • 相关阅读:
    修复文件系统
    遗忘root密码,对密码进行重置
    grub引导程序破坏修复下
    模拟Grub引导故障上(配置文件损坏)
    模拟MBR故障修复
    RAID5 制作 (一个硬盘制作)
    RAID10 (硬盘制作)
    du,df区别
    07_软件的安装
    06_find-查找文件
  • 原文地址:https://www.cnblogs.com/hui-run/p/10374290.html
Copyright © 2011-2022 走看看