我正在尝试使用:https://github.com/siddharthkp/cost-of-modules 我在Centos 6.4上安装了npm3。当我尝试运行它时,我收到了这个错误:
[root@XXX public]# cost-of-modules
Making sure dependendies are installed
npm install --production
Calculating...
/usr/local/lib/node_modules/cost-of-modules/lib/helpers.js:167
throw _iteratorError2;
^
ReferenceError: Symbol is not defined
at Object.getSizeForNodeModules (/usr/local/lib/node_modules/cost-of-modules/lib/helpers.js:145:36)
at Object.<anonymous> (/usr/local/lib/node_modules/cost-of-modules/lib/index.js:19:27)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:901:3
不知道为什么它调用“npm install”我已经安装了npm3。我已经在Github的模块中询问了,但我认为它与该特定模块无关。请,任何帮助将不胜感激。感谢。