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

How to install with yarn? #493

Open
cnichte opened this issue Mar 15, 2024 · 1 comment
Open

How to install with yarn? #493

cnichte opened this issue Mar 15, 2024 · 1 comment

Comments

@cnichte
Copy link

cnichte commented Mar 15, 2024

Hi, installing it with:

yarn install html-inline-script-webpack-plugin

gives an unexpected:

Unknown Syntax Error: Extraneous positional argument ("html-inline-script-webpack-plugin").

try to install it via npm (in yarn environment)...

npm install --save-dev html-inline-script-webpack-plugin

gives an expected:

npm ERR! code EUNSUPPORTEDPROTOCOL
npm ERR! Unsupported URL Type "workspace:": workspace:^
@icelam
Copy link
Owner

icelam commented Mar 18, 2024

Hi @cnichte,

To install dependencies using yarn, please use the following command:

yarn add html-inline-script-webpack-plugin

Based on the error information you provided (npm ERR! code EUNSUPPORTEDPROTOCOL), it appears that there might be an issue with your package.json file. This issue could be preventing you from installing packages successfully. Make sure that your package.json file is properly formatted and does not contain any syntax errors.

I recommend trying the below solutions provided by the Stack Overflow community to see if they resolve the error you're encountering:

If the problem persists, please provide more details about your setup, such as the version of Node.js and Yarn you are using. This information will help us better understand the issue and provide you with more specific guidance.

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