nos / create-nos-dapp

CLI tool to generate a new nOS dApp
53 stars 35 forks source link

Linux support #9

Closed ianaz closed 6 years ago

ianaz commented 6 years ago

Expected Behavior

I should be able to create a Reactapp under Linux

Current Behavior

When I run npm run start I get

Success: Created new project folder My-nOS-dApp
{ Error: ENOENT: no such file or directory, lstat '/home/ianaz/workspace/my-dapp/lib/..\packages\reactjs'
    at Error (native)
  errno: -2,
  code: 'ENOENT',
  syscall: 'lstat',
  path: '/home/ianaz/workspace/my-dapp/lib/..\\packages\\reactjs' }
Done in 5.07s.

Possible Solution

I think that's because of the backslashes. Using normal slashes could fix.

Your Environment

Linux 4.13.0-38-generic 43~16.04.1-Ubuntu 64bit GNU/Linux

I'll try the possible solution right now and create a PR

ianaz commented 6 years ago

Created PR #10

DalderupMaurice commented 6 years ago

Good catch! It was previously only tested on windows - but the CLI tool needs some more refactoring before we publish it 😄