NPM错误 - 为目标" chrome"传递的版本无效:

时间:2018-03-05 11:41:11

标签: npm babel

尝试使用NPM运行babel时出现以下错误。我不知道这意味着什么,所以如果有人能指出我正确的方向?

    throw e;
    ^

Error: Invalid version passed for target "chrome": "current.0.0". Versionsmust be in semver format (major.minor.patch) (While processing preset: 
"C:\\wamp64\\www\\afstuderen\\keeswerkt\\d3_node_editor\\node_modules\\babel-preset-env\\lib\\index.js")
at C:\wamp64\www\afstuderen\keeswerkt\d3_node_editor\node_modules\babel-preset-env\lib\index.js:69:13
at Array.filter (<anonymous>)
at isPluginRequired 
(C:\wamp64\www\afstuderen\keeswerkt\d3_node_editor\node_modules\babel-preset-env\lib\index.js:59:54)
at filterItem 
(C:\wamp64\www\afstuderen\keeswerkt\d3_node_editor\node_modules\babel-preset-env\lib\index.js:99:20)
at Array.filter (<anonymous>)
at buildPreset 
(C:\wamp64\www\afstuderen\keeswerkt\d3_node_editor\node_modules\babel-preset-env\lib\index.js:149:56)
at C:\wamp64\www\afstuderen\keeswerkt\d3_node_editor\node_modules\babel-core\lib\transformation\file\options\option-manager.js:317:46
at Array.map (<anonymous>)
at OptionManager.resolvePresets 
(C:\wamp64\www\afstuderen\keeswerkt\d3_node_editor\node_modules\babel-core\lib\transformation\file\options\option-manager.js:275:20)
at OptionManager.mergePresets 
(C:\wamp64\www\afstuderen\keeswerkt\d3_node_editor\node_modules\babel-core\lib\transformation\file\options\option-manager.js:264:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! d3_node_editor@1.0.0 start: `babel-watch src/js/main.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the d3_node_editor@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\edwij\AppData\Roaming\npm-cache\_logs\2018-03-05T11_36_12_009Z-debug.log

0 个答案:

没有答案