stencil-community / stencil-app-starter

Minimal starter project for building web components with Stencil
https://github.com/ionic-team/stencil
MIT License
320 stars 102 forks source link

Does not run on latest LTS #5

Closed chimon2000 closed 6 years ago

chimon2000 commented 7 years ago

Issue

When testing out this app with node v6.11.2, the build fails with an error message stating that you need the latest LTS version.

Resolution

This is only resolved by installing the current version.

talaikis commented 7 years ago

Builds ok for me, node 6.11.2, npm 3.10.10, Windows 10.

jgw96 commented 7 years ago

@chimon2000 is this issue still happening for you?

mohammedzamakhan commented 6 years ago

Stills happen for me.

> @stencil/starter@0.0.1 dev /Users/Zama/Desktop/passion/stencil-starter
> sd concurrent "stencil build --dev --watch" "stencil-dev-server"

sh: sd: command not found
talaikis commented 6 years ago

Everything works fine, you should install dependencies, like with any other Node project:

npm install

or probably

npm install -g sd
mohammedzamakhan commented 6 years ago

@xenu256

Now after running npm install -g sd, I get

/Users/Zama/Desktop/passion/stencil-starter/node_modules/@stencil/core/dist/cli/util.js:5051
      console.error(util.chalk.red('ERR: Your Node.js version is ' + util.chalk.bold(process.version) + '. Please update to the latest Node LTS version.\n'));
talaikis commented 6 years ago

Not enough of information, I'd maybe suggest to try to re-install Node after some cleanup? I've just tried it, it works for me both Node 6.10 and 8.6:

PS C:\Users\DXenu\box\stencil-starter> npm install -g sd
C:\Users\DXenu\AppData\Roaming\npm\s -> C:\Users\DXenu\AppData\Roaming\npm\node_modules\sd\bin\sd
+ sd@0.0.3
updated 1 package in 3.595s

PS C:\Users\DXenu\box\stencil-starter> node -v
v8.6.0
PS C:\Users\DXenu\box\stencil-starter> npm -v
5.3.0
PS C:\Users\DXenu\box\stencil-starter> npm run dev

> @stencil/starter@0.0.1 dev C:\Users\DXenu\box\stencil-starter
> sd concurrent "stencil build --dev --watch" "stencil-dev-server"

[55:39.4]  build, dev mode, started ...
[55:39.4]  compile started ...
[55:44.8]  compile finished in 5.41 s
[55:44.9]  bundle styles started ...
[55:45.0]  bundle modules started ...
[55:45.4]  bundle styles finished in 514 ms
[55:46.0]  bundle modules finished in 1.02 s
[55:47.2]  build finished, watching for changes... in 7.84 s
mohammedzamakhan commented 6 years ago

I had 6.10 node version, after changing to 8.6, it worked for me

talaikis commented 6 years ago

You've run npm install to update packages afetr switching to node 8?

jgw96 commented 6 years ago

Hello all! As this seems like more of a support issue im gonna ask that you join our Stencil worldwide slack channel and ask about this issue on there. Thanks!