html-inline-script-webpack-plugin icon indicating copy to clipboard operation
html-inline-script-webpack-plugin copied to clipboard

How to install with yarn?

Open cnichte opened this issue 3 months ago • 1 comments

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:^

cnichte avatar Mar 15 '24 16:03 cnichte

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.

icelam avatar Mar 18 '24 12:03 icelam