我正在使用RippleAPI并为其安装了所有thr先决条件。 1)安装Node.js和npm 节点版本是5.6.0 这是初学者指南: https://ripple.com/build/rippleapi-beginners-guide/
我在运行ripple API时遇到了这个问题
ReferenceError: Unknown plugin "transform-runtime" specified in
"DIRECTORY\\ripple\\my_ripple_experiment\\node_modules\\regenerator-
transform\\package.json" at 0, attempted to resolve relative to
:\\ripple\\my_ripple_experiment\\node_modules\\regenerator-transform"
(While processing preset: "E:\\ripple\\my_ripple_experiment
\\node_modules\\babel-preset-es2015\\lib\\index.js")
at E:\ripple\my_ripple_experiment\node_modules\babel-core\lib\transformation
\file\options\option-manager.js:180:17
at Array.map (<anonymous>)
at Function.normalisePlugins (E:\ripple\my_ripple_experiment\node_modules\ba
bel-core\lib\transformation\file\options\option-manager.js:158:20)
at OptionManager.mergeOptions (E:\ripple\my_ripple_experiment\node_modules\b
abel-core\lib\transformation\file\options\option-manager.js:234:36)
at OptionManager.init (E:\ripple\my_ripple_experiment\node_modules\babel-cor
e\lib\transformation\file\options\option-manager.js:368:12)
at compile (E:\ripple\my_ripple_experiment\node_modules\babel-register\lib\n
ode.js:103:45)
at loader (E:\ripple\my_ripple_experiment\node_modules\babel-register\lib\no
de.js:144:14)
at Object.require.extensions.(anonymous function) [as .js] (E:\ripple\my_rip
ple_experiment\node_modules\babel-register\lib\node.js:154:7)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
让我知道谁能解决这个转换运行时问题?
答案 0 :(得分:2)
尝试运行npm install babel-plugin-transform-runtime
。
至少,在不同的设置中为我解决了这个问题。