Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during npm install #4

Open
mriziq opened this issue Jun 27, 2023 · 6 comments
Open

Error during npm install #4

mriziq opened this issue Jun 27, 2023 · 6 comments

Comments

@mriziq
Copy link
Contributor

mriziq commented Jun 27, 2023

Hello, I'm trying to install this plugin and it's crashing on installation.

npm ERR! code 1
npm ERR! path /Documents/Development/Projects/2bttns-docs/node_modules/docusaurus-plugin-simple-analytics
npm ERR! command failed
npm ERR! command sh /var/folders/sb/ptbym9_s4bvb8ljkrsj_nydm0000gn/T/postinstall-37b392ff.sh
npm ERR! > docusaurus-plugin-simple-analytics@1.1.6 build
npm ERR! > tsc --build
npm ERR!
npm ERR! error TS5083: Cannot read file '/Documents/Development/Projects/2bttns-docs/node_modules/docusaurus-plugin-simple-analytics/tsconfig.json'

I am currently running docusaurus 2.3.1 on M1 Pro. Happy to provide more info. Full log attached
docsaurus-sa-crashlog.txt

Thanks!

@mriziq mriziq changed the title Error during rpm install Error during npm install Jun 27, 2023
@adriaandotcom
Copy link
Contributor

Thanks, I'm getting the same error. But when downloading the release zip it includes the tsconfig.json file. But when doing NPM install it's gone. Not sure how to solve that.

@mriziq
Copy link
Contributor Author

mriziq commented Jun 30, 2023

I've shipped a possible fix here #5

@adriaandotcom
Copy link
Contributor

Could you test in your project?

@adriaandotcom
Copy link
Contributor

@adriaandotcom
Copy link
Contributor

@mriziq you know how to fix this?

@mriziq
Copy link
Contributor Author

mriziq commented Jul 22, 2023

No luck so far. We down graded priority of implementing simple analytics due to this bug. We'll either migrate to a full React app for our docs website or debug this further (likely). I will open another PR when we debug. Thanks for the help so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants