hikaya-io / hakawati

A collection of UI components
GNU General Public License v3.0
2 stars 1 forks source link

Yarn install fails #322

Closed kohasummons closed 2 years ago

kohasummons commented 2 years ago

While trying to setup hakawati on my local machine, It keeps spiting out error while running the yarn install process.

Here's the error I got.

error An unexpected error occurred: "C:\\Users\\koha\\AppData\\Local\\Yarn\\Cache\\v6\\
npm-xlsx-0.15.6-461f841d6d9ea1a8375e
2cd246bf23aece08a1d5-integrity\\node_modules\\xlsx\\.yarn-metadata.json: 
Unexpected token \u0000 in JSON at position 0".
info If you think this is a bug, please open a bug 
report with the information provided in "C:\\Users\\koha\\Documents\\Projectium\\Open-Source\\hakawati\\yarn-error.log".

I deleted and cloned the repo several times and still got this. I also attempted to use npm, still failed.

andrewtpham commented 2 years ago

@kohasummons What version of node are you using?

One trick you could try is to delete the "node_modules" folder from you local files and try yarn install again.

kohasummons commented 2 years ago

Node version: 16.14.2 Thing is, it didn't even get to create a "node_modules" folder

amosnjoroge commented 2 years ago

Hi @kohasummons Unfortunately hakawati does not play well with node version 16. Please install node version 14 and try to install the packages again. In case you need multiple instance of node installed on your machine you will need a node version manager. In my case I use nvm; you can refer to the link below for instructions on how to install the multiple versions on your machine

https://www.sitepoint.com/quick-tip-multiple-versions-node-nvm/

ninetteadhikari commented 2 years ago

Suggestion from Isaac: try using this version of node 14.18.3

kohasummons commented 2 years ago

Thanks everyone! This was the fix i needed.

amosnjoroge commented 2 years ago

Closing this as it is fixed.