小编dan*_*nep的帖子

纱线测试:所有测试均通过但返回“错误命令失败,退出代码为 1”

我曾经使用 npm,但最近改用了 yarn。当我运行时,yarn test它显示所有测试都通过了,但下面说error Command failed with exit code 1没有其他可能导致此错误的信息

节点版本:6.3.1

纱线版本:0.16.3

潜在原因 console.error node_modules/core-js/modules/es6.promise.js:117 Unhandled promise rejection Error: Actions may not be an undefined. at dispatch (/node_modules/redux-mock-store/lib/index.js:35:19) at /node_modules/redux-thunk/lib/index.js:14:16 at dispatch (/node_modules/redux/lib/applyMiddleware.js:45:18) at /src/actions/ontologies.js:159:7 at run (/node_modules/core-js/modules/es6.promise.js:87:22) at /node_modules/core-js/modules/es6.promise.js:100:28 at flush (/node_modules/core-js/modules/_microtask.js:18:9) at process._tickCallback (internal/process/next_tick.js:103:7)

node.js reactjs redux yarnpkg

5
推荐指数
2
解决办法
7463
查看次数

标签 统计

node.js ×1

reactjs ×1

redux ×1

yarnpkg ×1