nodejs-legacy 可用于 Fedora 23?

nodejs-legacy available for Fedora 23?

在 Ubuntu 上可以通过

安装 Mathoid
sudo 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 相当于什么?

如果您需要使用旧版本的 node,您可以在 repo 中查看它是否可用:

dnf info nodejs.x86_64 --showduplicates | grep Version

如果这是您需要的特定版本之一,您可以降级到它。

但是,我建议您使用 'virtual environment' 同时安装不同的节点版本。 nave is a great option. You could also try nvm.