科尔多瓦安装错误

时间:2018-11-16 17:08:55

标签: cordova npm

我在尝试安装cordova时遇到一些问题。我已经运行了命令npm install -g cordova,然后当我尝试使用命令cordova --version检查Cordova的版本时,出现下一个错误:

内部/模块/cjs/loader.js:582     犯错     ^

    Error: Cannot find module 'content-disposition'
        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:\Users\Johan\AppData\Roaming\npm\node_modules\cordova\node_modules\
    express\lib\utils.js:16:26)
        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)

请帮助,谢谢

0 个答案:

没有答案