iamdustan / react-hardware

A React renderer for Hardware.
http://iamdustan.com/react-hardware
801 stars 41 forks source link

Fails on Windows #35

Open sandeepgokhale opened 5 years ago

sandeepgokhale commented 5 years ago

Im unable to get the below example to work. Pls Help, here are some details..

Steps tried ::

Node Version :: 10.0.0 OS : Windows 64 bit

What i've done so far is,

  1. Cloned the Repo of react-hardware via https://github.com/iamdustan/react-hardware/
  2. Did an npm install // All packages installed fine.
  3. npm run example -- basic

Throws the below error

react-hardware\node_modules\@babel\helper-plugin-utils\lib\index.js:72 throw Object.assign(err, { ^

Error: Requires Babel "^7.0.0-0", but was loaded with "6.26.3". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel. at throwVersionError (projectfolder\hwware\react-hardware\node_modules\@babel\helper-plugin-utils\lib\index.js:65:11) at Object.assertVersion (projectfolder\hwware\react-hardware\node_modules\@babel\helper-plugin-utils\lib\index.js:13:11) at _default (projectfolder\hwware\react-hardware\node_modules\@babel\plugin-proposal-class-properties\lib\index.js:29:7) at projectfolder\hwware\react-hardware\node_modules\@babel\helper-plugin-utils\lib\index.js:19:12 at Function.memoisePluginContainer (C:\Users\user1\AppData\Roaming\npm\node_modules\babel-cli\node_modules\babel-core\lib\transformation\file\options\option-manager.js:113:13) at Function.normalisePlugin (C:\Users\user1\AppData\Roaming\npm\node_modules\babel-cli\node_modules\babel-core\lib\transformation\file\options\option-manager.js:146:32) at C:\Users\user1\AppData\Roaming\npm\node_modules\babel-cli\node_modules\babel-core\lib\transformation\file\options\option-manager.js:184:30 at Array.map () at Function.normalisePlugins (C:\Users\user1\AppData\Roaming\npm\node_modules\babel-cli\node_modules\babel-core\lib\transformation\file\options\option-manager.js:158:20) at OptionManager.mergeOptions (C:\Users\user1\AppData\Roaming\npm\node_modules\babel-cli\node_modules\babel-core\lib\transformation\file\options\option-manager.js:234:36) at OptionManager.init (C:\Users\user1\AppData\Roaming\npm\node_modules\babel-cli\node_modules\babel-core\lib\transformation\file\options\option-manager.js:368:12) at compile (C:\Users\user1\AppData\Roaming\npm\node_modules\babel-cli\node_modules\babel-register\lib\node.js:103:45) at loader (C:\Users\user1\AppData\Roaming\npm\node_modules\babel-cli\node_modules\babel-register\lib\node.js:144:14) at Object.require.extensions.(anonymous function) [as .js] (C:\Users\user1\AppData\Roaming\npm\node_modules\babel-cli\node_modules\babel-register\lib\node.js:154:7) at Module.load (internal/modules/cjs/loader.js:589:32) at tryModuleLoad (internal/modules/cjs/loader.js:528:12) at Function.Module._load (internal/modules/cjs/loader.js:520:3) at Function.Module.runMain (internal/modules/cjs/loader.js:719:10) at Object. (C:\Users\user1\AppData\Roaming\npm\node_modules\babel-cli\lib_babel-node.js:154:22) at Module._compile (internal/modules/cjs/loader.js:678:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10) at Module.load (internal/modules/cjs/loader.js:589:32) at tryModuleLoad (internal/modules/cjs/loader.js:528:12) at Function.Module._load (internal/modules/cjs/loader.js:520:3) at Function.Module.runMain (internal/modules/cjs/loader.js:719:10) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! react-hardware@0.6.0-alpha.0 example: babel-node ./scripts/examples "basic" npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the react-hardware@0.6.0-alpha.0 example 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\user1\AppData\Roaming\npm-cache_logs\2019-07-21T12_52_46_524Z-debug.log