create-nos-dapp icon indicating copy to clipboard operation
create-nos-dapp copied to clipboard

Failed to create new dapp with node version 10

Open jaszhou opened this issue 6 years ago • 8 comments

Error:

node:59289) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. error [email protected]: The engine "node" is incompatible with this module. Expected version ">=4 <=9". error Found incompatible module info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. ✖ Something went wrong while copying the template or installing the dependencies Please check the console output and report it at 'https://github.com/nos/create-nos-dapp/issues'

Expected Behavior

It should also work with higher version of node.

Current Behavior

Failed with error message

Possible Solution

code update

Steps to Reproduce (for bugs)

Just try to run the command with node version 10.4.1

Context

Not able to ceate a new template

Your Environment

  • Version used: 0.2.2
  • Environment name and version (e.g. node.js 10.4.1, yarn 1.7.0, npm 6.1.0):
  • Operating System and version (desktop or mobile): MacOS High Sierra

jaszhou avatar Jun 14 '18 01:06 jaszhou

This issue will be addressed in the next release as there's an update to a peer dependency which caused this error. reference.

DalderupMaurice avatar Jun 27 '18 18:06 DalderupMaurice

On a side note** As long as Parcel is not compatible with Babel 7 inside the react starter kit, we cannot resolve this issue :/

DalderupMaurice avatar Jun 28 '18 18:06 DalderupMaurice

As long as Parcel is not compatible with Babel 7 inside the react starter kit, we cannot resolve this issue maybe it's time to move to Webpack 😞

jeroenptrs avatar Jun 28 '18 18:06 jeroenptrs

Is there a way to make Parcel's HMR work without websocket?

mhuggins avatar Jun 28 '18 19:06 mhuggins

Don't think so And yes webpack seems better... Version 1.8.x and 1.9.x of Parcel have some serious issues as we both discovered :(

DalderupMaurice avatar Jun 28 '18 19:06 DalderupMaurice

i can add vuejs or maybe react webpack versions of templates.

puncleV avatar Aug 08 '18 09:08 puncleV

It's eventually not an issue within parcel :) @punkkk it was something else, requiring upath (forgot which package it was, thought It was something in the dependencies of our CLI tool itself) Also, we've tried webpack projects and the issue with HMR/websockets is on electron's side. Switching from parcel to Webpack won't make a difference unfortunately :(

DalderupMaurice avatar Aug 08 '18 11:08 DalderupMaurice

Upath is fixed for node 10 resolution. The CLI has been updated, once the React package has been updated I'll push a new version. There's some changes coming soon that I'm gonna push with it (Parcel built-in renderer)

jeroenptrs avatar Dec 10 '18 11:12 jeroenptrs