尝试在nodeJS中使用mathjs模块进行某些矩阵数学运算。 require语句似乎抛出异常
var math = require("mathjs");
例外是:
DimensionError
at Object.<anonymous> (C:\Users\jon_000\workspace\RobotInvKin\node_modules
\mathjs\lib\error\DimensionError.js:30:28)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (C:\Users\jon_000\workspace\RobotInvKin\node_modules
\mathjs\lib\utils\array.js:8:22)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (C:\Users\jon_000\workspace\RobotInvKin\node_modules
\mathjs\lib\utils\index.js:3:17)
这一定很简单。任何想法都感激不尽?