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

an error occurred when using "npm i vite-plugin-sentry" #8

Closed
nikojxie opened this issue Mar 2, 2022 · 7 comments
Closed

an error occurred when using "npm i vite-plugin-sentry" #8

nikojxie opened this issue Mar 2, 2022 · 7 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@nikojxie
Copy link

nikojxie commented Mar 2, 2022

npm ERR! code 1
npm ERR! path C:\workspace\demo\node_modules@sentry\cli
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node scripts/install.js
npm ERR! info sentry-cli Using cached binary: C:\Users\admin\AppData\Local\npm-cache\sentry-cli\5c4041-sentry-cli-Windows-x86-64.exe
npm ERR! Error: Command failed: C:\workspace\demo\node_modules@sentry\cli\sentry-cli.exe --version

node version:16.13.0
Windows10

Is there something wrong with my use? Thanks

@ikenfin
Copy link
Owner

ikenfin commented Mar 2, 2022

Hi! It seems that path to node_modules is incorrect - missing slash netween node_modules and @sentry.

‘C:\workspace\demo\node_modules@sentry\cli’

Do you have similar problems while install other packages?

@nikojxie
Copy link
Author

nikojxie commented Mar 2, 2022

no,It is correct when installing other packages, like @sentry/tracing and @sentry/vue

@ikenfin
Copy link
Owner

ikenfin commented Mar 2, 2022

Strange, i will try to test this behavior on windows by myself in next couple of days, maybe there is a some windows specific bug with sentry cli. Which node version you use?

@nikojxie
Copy link
Author

nikojxie commented Mar 2, 2022

i think so too, my node version is 16.13.0, thanks for your help

@ikenfin
Copy link
Owner

ikenfin commented Mar 4, 2022

Hi @nikojxie !

I've found solution for this issue, it comes from sentry-cli tool which is used to interact with sentry. This binary requires vc redist package to be installed, so you need to install Microsoft VC Redistributable before trying to use this plugin.

You can download MS Redist installation package on Microsoft website - https://docs.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist?view=msvc-170

@ikenfin ikenfin self-assigned this Mar 4, 2022
@ikenfin ikenfin added the documentation Improvements or additions to documentation label Mar 4, 2022
@ikenfin ikenfin pinned this issue Mar 4, 2022
@nikojxie
Copy link
Author

nikojxie commented Mar 7, 2022

Hi @ikenfin !
thank you for your reply, it worked for me.

@ikenfin
Copy link
Owner

ikenfin commented Mar 24, 2022

Glad to hear that! 👍

@ikenfin ikenfin closed this as completed Mar 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants