在Ubuntu上可以通过
安装Mathoidsudo apt-get install nodejs nodejs-legacy nodejs-dev npm mocha
npm install mathoid
cd node_modules/mathoid
npm test
但我需要在Fedora 23上进行,我没有看到任何nodejs遗留包可用。
如果我在没有这个包的情况下编译,那么我会收到很多这些错误
npm ERR! Error: ENOENT, lstat '/node_modules/mathoid/node_modules/service-runner/node_modules/core-js/index.js'
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-@googlegroups.com>
npm ERR! System Linux 3.10.0-123.8.1.el7.x86_64
npm ERR! command "node" "/usr/bin/npm" "install" "mathoid"
npm ERR! cwd /
npm ERR! node -v v0.10.42
npm ERR! npm -v 1.3.6
npm ERR! path /node_modules/mathoid/node_modules/service-runner/node_modules/core-js/index.js
npm ERR! fstream_path /node_modules/mathoid/node_modules/service-runner/node_modules/core-js/index.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:108:15)
npm ERR! Error: ENOENT, lstat '/node_modules/mathoid/node_modules/service-runner/node_modules/yargs/lib/usage.js'
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-@googlegroups.com>
问题
Fedora上nodejs-legacy
的等价物是什么?