vue建立项目时执行npm install出错,Cannot find module

module.js:491


throw err;

^

Error: Cannot find module 'semver'


at Function.Module._resolveFilename (module.js:489:15)

at Function.Module._load (module.js:439:25)

at Module.require (module.js:517:17)

at require (internal/module.js:11:18)

at Object.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\unsupported.js:2:14)

at Module._compile (module.js:573:30)

at Object.Module._extensions..js (module.js:584:10)

at Module.load (module.js:507:32)

at tryModuleLoad (module.js:470:12)

at Function.Module._load (module.js:462:3)


富国沪深
浏览 2492回答 1
1回答

慕虎7371278

报错中已经告诉你了,是因为没有 ‘semver’ 模块解决办法,在cmd命令中写:npm install semver --save-dev
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript