Andy-set-studio / hylia

Hylia is a lightweight Eleventy starter kit to help you to create your own blog or personal website.
https://hylia.website
MIT License
905 stars 230 forks source link

Npm start failing on windows #69

Closed shreeshbhat closed 5 years ago

shreeshbhat commented 5 years ago
PS C:\Data\Projects\blog> npm start

> hylia@0.4.3 start C:\Data\Projects\blog
> concurrently 'npm run sass:process -- --watch' 'npm run cms:bundle -- --watch' 'chokidar "src/_includes/**" -c "npm run cms:precompile"' 'npm run serve'

[0] 'np' is not recognized as an internal or external command,
[0] operable program or batch file.
[1] 'run' is not recognized as an internal or external command,
[1] operable program or batch file.
[2] The filename, directory name, or volume label syntax is incorrect.
[3] '--watch'' is not recognized as an internal or external command,
[3] operable program or batch file.
[4] 'np' is not recognized as an internal or external command,
[4] operable program or batch file.
[5] 'run' is not recognized as an internal or external command,
[5] operable program or batch file.
[6] The filename, directory name, or volume label syntax is incorrect.
[7] '--' is not recognized as an internal or external command,
[7] operable program or batch file.
[8] '--watch'' is not recognized as an internal or external command,
[8] operable program or batch file.
[9] 'chokida' is not recognized as an internal or external command,
[9] operable program or batch file.
[10] 'src' is not recognized as an internal or external command,
[10] operable program or batch file.
[11] '-c' is not recognized as an internal or external command,
[11] operable program or batch file.
[13] 'np' is not recognized as an internal or external command,
[13] operable program or batch file.
[14] 'run' is not recognized as an internal or external command,
[14] operable program or batch file.
[15] 'serve'' is not recognized as an internal or external command,
[15] operable program or batch file.
[14] run exited with code 1
[13] np exited with code 1
[11] -c exited with code 1
[10] src/_includes/** exited with code 1
[9] chokida exited with code 1
[8] --watch' exited with code 1
[7] -- exited with code 1
[6] cms:bundle exited with code 1
[5] run exited with code 1
[4] np exited with code 1
[3] --watch' exited with code 1
[2] sass:process exited with code 1
[1] run exited with code 1
[0] np exited with code 1
[15] serve' exited with code 1
[12] npm ERR! missing script: cms:precompile'
[12] npm ERR!
[12] npm ERR! Did you mean this?
[12] npm ERR!     cms:precompile
[12]
[12] npm ERR! A complete log of this run can be found in:
[12] npm ERR!     C:\Users\shree\AppData\Roaming\npm-cache\_logs\2019-08-15T00_48_08_034Z-debug.log
[12] npm run cms:precompile' exited with code 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! hylia@0.4.3 start: `concurrently 'npm run sass:process -- --watch' 'npm run cms:bundle -- --watch' 'chokidar "src/_includes/**" -c "npm run cms:precompile"' 'npm run serve'`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the hylia@0.4.3 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\shree\AppData\Roaming\npm-cache\_logs\2019-08-15T00_48_08_084Z-debug.log
shreeshbhat commented 5 years ago

In package.json, I changed clone type for stalfos from git to https since it was failing for me. https worked fine.


"stalfos":git://github.comandybelldesignstalfos.git#49f9e68a7a590b8739df2087f05901dcc6baa761"```
Andy-set-studio commented 5 years ago

Howdy! Yeh I've had this issue for a client site that uses a similar config, so I've applied the same fix to a new release: https://github.com/andybelldesign/hylia/releases/tag/0.4.4

Thank you :)

shreeshbhat commented 5 years ago

Thanks for responding so fast, Andy! However, I am still seeing this issue in my local. :(

Andy-set-studio commented 5 years ago

Cool, I’ll have to open this one up to the community 👍

shreeshbhat commented 5 years ago

Could you please explain what the fix was when you bumped stalfos version? Seems like that is an unmaintained project. :(

Andy-set-studio commented 5 years ago

No it’s not unmaintained as it’s my project 🙂

Hylia uses a feature branch from the upcoming new version.

No code changes, just a change in url structure in Hylia’s package.