icelam / html-inline-script-webpack-plugin

A webpack plugin for converting external script files to inline script block. Requires 'html-webpack-plugin' to work.
https://www.npmjs.com/package/html-inline-script-webpack-plugin
MIT License
55 stars 10 forks source link

How to install with yarn? #493

Open cnichte opened 6 months ago

cnichte commented 6 months ago

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 commented 6 months ago

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.