老师,我是不是删除的资料包太多了
来源:2-7 vue-cli 3.0搭建方法(原型开发)
慕用0863198
2020-03-15
$ vue -V
internal/modules/cjs/loader.js:613
throw err;
^
Error: Cannot find module 'C:\Users\wuyou\AppData\Roaming\npm\node_modules@vue\cli\bin\vue.js’
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:610:15)
at Function.Module._load (internal/modules/cjs/loader.js:526:27)
at Function.Module.runMain (internal/modules/cjs/loader.js:822:10)
at internal/main/run_main_module.js:17:11
然后重新安装也出不来
$ cnpm install -g @vue-cli@3.11.0
Downloading 252a37c9715a18dfb4e0a29884011fd9 to C:\Users\wuyou\AppData\Roaming\npm\node_modules\252a37c9715a18dfb4e0a29884011fd9_tmp
Error: [undefined] resolved target E:\0 to1 2\ebook@vue-cli@3.11.0 error: ENOENT: no such file or directory, lstat 'E:\0 to1 2\ebook@vue-cli@3.11.0’
at module.exports (C:\Users\wuyou\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\lib\download\local.js:30:11)
at module.exports.throw ()
at onRejected (C:\Users\wuyou\AppData\Roaming\npm\node_modules\cnpm\node_modules\co\index.js:81:24)
npminstall version: 3.25.2
npminstall args: D:\ruanjian\node.exe C:\Users\wuyou\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\bin\install.js --fix-bug-versions --china --userconfig=C:\Users\wuyou.cnpmrc --disturl=https://npm.taobao.org/mirrors/node --registry=https://r.npm.taobao.org -g @vue-cli@3.11.0
1回答
-
Sam
2020-03-15
你好,安装命令写错啦,应该是 cnpm install -g @vue/cli
012020-03-15
相似问题