1 回答
TA贡献1798条经验 获得超7个赞
类似的, dva g各种东西失败, 提示这个:
dva g model usersssss
/usr/local/lib/node_modules/dva-cli/bin/dva-generate
module.js:471
throw err;
^
Error: Cannot find module 'babel-runtime/helpers/slicedToArray'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/usr/local/lib/node_modules/dva-cli/lib/generate.js:7:23)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
各个版本:
cnpm@5.1.1 (/usr/local/lib/node_modules/cnpm/lib/parse_argv.js)
npm@5.3.0 (/usr/local/lib/node_modules/cnpm/node_modules/npm/lib/npm.js)
node@6.11.2 (/usr/local/bin/node)
dva-cli: 0.7.10
node_modules删除过 重新npm i也不行.
添加回答
举报