<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>NPM error Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/npm-error/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/npm-error/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Wed, 13 Apr 2022 16:34:46 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>npm run dev issue (npm ERR! code ELIFECYCLE)</title>
		<link>https://www.scmgalaxy.com/tutorials/npm-run-dev-issue-npm-err-code-elifecycle/</link>
					<comments>https://www.scmgalaxy.com/tutorials/npm-run-dev-issue-npm-err-code-elifecycle/#respond</comments>
		
		<dc:creator><![CDATA[Ashwani Kumar]]></dc:creator>
		<pubDate>Thu, 12 Aug 2021 13:26:22 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[npm]]></category>
		<category><![CDATA[NPM error]]></category>
		<category><![CDATA[npm error issue]]></category>
		<category><![CDATA[npm run dev issue]]></category>
		<category><![CDATA[npm run dev problem]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7851</guid>

					<description><![CDATA[<p>Error:- Solution:- Step 1:- Run this command to verify cache Step 2:- Recheck your package.json and webpack.mix.js file it is [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/npm-run-dev-issue-npm-err-code-elifecycle/">npm run dev issue (npm ERR! code ELIFECYCLE)</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><strong>Error:-</strong></p>



<pre class="wp-block-code"><code><span class="has-inline-color has-vivid-red-color">> cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

&#91;webpack-cli] Error: Unknown option '--hide-modules'
&#91;webpack-cli] Run 'webpack --help' to see available commands and options
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @ development: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the @ development script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Cotocus5\AppData\Roaming\npm-cache\_logs\2021-08-12T12_23_56_189Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @ dev: `npm run development`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the @ dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Cotocus5\AppData\Roaming\npm-cache\_logs\2021-08-12T12_23_56_273Z-debug.log
</span></code></pre>



<p class="wp-block-paragraph"><strong>Solution:-</strong></p>



<p class="wp-block-paragraph"><strong>Step 1:-</strong> Run this command to verify cache</p>



<pre class="wp-block-code"><code><code><span class="has-inline-color has-vivid-purple-color"><strong>npm cache verify</strong></span></code></code></pre>



<p class="wp-block-paragraph"><strong>Step 2:-</strong> Recheck your <strong>package.json</strong> and <strong>webpack.mix.js</strong> file it is correct or not.</p>



<p class="wp-block-paragraph"><strong>Step 3:-</strong> Then Delete the Node Module file which is present in your project folder.</p>



<p class="wp-block-paragraph"><strong>Step 4:-</strong> Run the Npm install command.</p>



<pre class="wp-block-code"><code><strong><span class="has-inline-color has-vivid-purple-color">npm install</span></strong></code></pre>



<p class="wp-block-paragraph"><strong>Step 5:-</strong> Then Run npm run dev command.</p>



<pre class="wp-block-code"><code><strong><span class="has-inline-color has-vivid-purple-color">npm run dev</span></strong></code></pre>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/npm-run-dev-issue-npm-err-code-elifecycle/">npm run dev issue (npm ERR! code ELIFECYCLE)</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/npm-run-dev-issue-npm-err-code-elifecycle/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>error in ./resources/assets/sass/app.scss</title>
		<link>https://www.scmgalaxy.com/tutorials/error-in-resources-assets-sass-app-scss/</link>
					<comments>https://www.scmgalaxy.com/tutorials/error-in-resources-assets-sass-app-scss/#respond</comments>
		
		<dc:creator><![CDATA[Ashwani Kumar]]></dc:creator>
		<pubDate>Sat, 07 Aug 2021 12:05:32 +0000</pubDate>
				<category><![CDATA[Node js]]></category>
		<category><![CDATA[dart-sass]]></category>
		<category><![CDATA[error in ./resources/assets/sass/app.scss]]></category>
		<category><![CDATA[Node]]></category>
		<category><![CDATA[node-sass]]></category>
		<category><![CDATA[node-sass not found]]></category>
		<category><![CDATA[nodejs]]></category>
		<category><![CDATA[not found]]></category>
		<category><![CDATA[npm]]></category>
		<category><![CDATA[npm err!]]></category>
		<category><![CDATA[NPM error]]></category>
		<category><![CDATA[npm run development]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7586</guid>

					<description><![CDATA[<p>If you are getting this error (error in ./resources/assets/sass/app.scss) in Node module please follow some steps which is have mentioned [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/error-in-resources-assets-sass-app-scss/">error in ./resources/assets/sass/app.scss</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">If you are getting this error (error in ./resources/assets/sass/app.scss) in Node module please follow some steps which is have mentioned in the following</p>



<h4 class="wp-block-heading">Error:-</h4>



<p class="wp-block-paragraph">Many of you get this error when you did not change anything in <code>app.scss</code>, but when I run <code>npm run watch</code> I get the following errors:</p>



<pre class="wp-block-code"><code><span class="has-inline-color has-vivid-cyan-blue-color"> error  in ./resources/sass/app.scss                                                                      

Module build failed (from ./node_modules/sass-loader/lib/loader.js):                                      
Unsupported operation: Cannot extract a file path from a URI with a fragment component                    

@ ./resources/sass/app.scss 2:14-254                                                                     

    Asset      Size   Chunks             Chunk Names                                                     
/js/app.js  2.46 MiB  /js/app  &#91;emitted]  /js/app                                                         

ERROR in ./resources/sass/app.scss                                                                        
Module build failed (from ./node_modules/css-loader/index.js):                                            
ModuleBuildError: Module build failed (from ./node_modules/sass-loader/lib/loader.js):                    

undefined                                                                                                 
      ^                                                                                                  
      Join(null, "variables"): part 0 was null, but part 1 was not.                                       
@import 'variables';                                                                                      
        ^^^^^^^^^^^                                                                                       
  stdin 2:9  root stylesheet                                                                              
      in C:\Users\TAQI VAHEED\Desktop\#Coding\resPro\resources\sass\app.scss (line 2, column 9)           
    at runLoaders (C:\Users\TAQI VAHEED\Desktop\#Coding\resPro\node_modules\webpack\lib\NormalModule.js:30
    at C:\Users\TAQI VAHEED\Desktop\#Coding\resPro\node_modules\loader-runner\lib\LoaderRunner.js:364:11  
    at C:\Users\TAQI VAHEED\Desktop\#Coding\resPro\node_modules\loader-runner\lib\LoaderRunner.js:230:18  
    at context.callback (C:\Users\TAQI VAHEED\Desktop\#Coding\resPro\node_modules\loader-runner\lib\Loader
13)</span></code></pre>



<h4 class="wp-block-heading">Solution:-</h4>



<p class="wp-block-paragraph">The main issue which we have found that is related to<code><span class="has-inline-color has-vivid-red-color"> dart-sass</span></code> being used instead of <code><span class="has-inline-color has-vivid-red-color">node-sass</span></code> with <code>laravel</code></p>



<p class="wp-block-paragraph">You have to just follow one step:-</p>



<p class="wp-block-paragraph"><strong>Step 1:-</strong> You have to run this Command and all the things will solve .</p>



<pre class="wp-block-code"><code><span class="has-inline-color has-vivid-red-color">npm install node-sass</span></code></pre>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/error-in-resources-assets-sass-app-scss/">error in ./resources/assets/sass/app.scss</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/error-in-resources-assets-sass-app-scss/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>&#8216;cross-env&#8217; is not recognized as an internal or external command, operable program or batch file.</title>
		<link>https://www.scmgalaxy.com/tutorials/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file/</link>
					<comments>https://www.scmgalaxy.com/tutorials/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file/#respond</comments>
		
		<dc:creator><![CDATA[Ashwani Kumar]]></dc:creator>
		<pubDate>Sat, 07 Aug 2021 11:48:32 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cross-env]]></category>
		<category><![CDATA[Node]]></category>
		<category><![CDATA[node error]]></category>
		<category><![CDATA[nodejs]]></category>
		<category><![CDATA[not recognized]]></category>
		<category><![CDATA[npm]]></category>
		<category><![CDATA[npm err!]]></category>
		<category><![CDATA[NPM error]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7571</guid>

					<description><![CDATA[<p>Hey if you are getting some error like (&#8216;cross-env&#8217; is not recognized as an internal or external command, operable program [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file/">&#8216;cross-env&#8217; is not recognized as an internal or external command, operable program or batch file.</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Hey if  you are getting some error like (&#8216;cross-env&#8217; is not recognized as an internal or external command, operable program or batch file.) in your Node please follow the steps which i have mentioned in following:-</p>



<p class="wp-block-paragraph"><strong>You need to make cross-env working globally instead of having it in the project.</strong></p>



<p class="wp-block-paragraph"><strong>Step 1:-</strong> remove <strong><code>node_modules</code></strong> folder</p>



<p class="wp-block-paragraph"><strong>Step 2:-</strong>  run this Command so that you <strong>cross-env </strong>work globally.</p>



<pre class="wp-block-code"><code><span class="has-inline-color has-vivid-red-color">npm install --global cross-env</span></code></pre>



<p class="wp-block-paragraph"><strong>Step 3:-</strong> Remove &#8220;cross-env&#8221;: &#8220;5.0.1&#8221; from the devDependencies section of the package.json file. You may actually skip this step and keep package.json. If you&#8217;d want.</p>



<p class="wp-block-paragraph"><strong>Step 4:-</strong> Then run this command.</p>



<pre class="wp-block-code"><code><span class="has-inline-color has-vivid-red-color">npm install --no-bin-links</span></code></pre>



<p class="wp-block-paragraph"><strong>Step 5:-</strong> After this finally you can run your main command </p>



<pre class="wp-block-code"><code><span class="has-inline-color has-vivid-red-color">npm run dev</span></code></pre>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file/">&#8216;cross-env&#8217; is not recognized as an internal or external command, operable program or batch file.</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/cross-env-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to solve throwing npm error “npm ERR! code ELIFECYCLE” &#8220;npm ERR! errno 2&#8221; &#8220;npm ERR! @ dev: `npm run development`&#8221;</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-solve-throwing-npm-error-npm-err-code-elifecycle-npm-err-errno-2-npm-err-dev-npm-run-development/</link>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Sat, 24 Apr 2021 11:28:21 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[elifecycle]]></category>
		<category><![CDATA[errno 2]]></category>
		<category><![CDATA[NPM error]]></category>
		<category><![CDATA[npm run development]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=5988</guid>

					<description><![CDATA[<p>When you using &#8220;laravel 5.5&#8221; and whenever run command &#8220;npm install&#8221; then sometime it comes this type error. Then run [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-solve-throwing-npm-error-npm-err-code-elifecycle-npm-err-errno-2-npm-err-dev-npm-run-development/">How to solve throwing npm error “npm ERR! code ELIFECYCLE” &#8220;npm ERR! errno 2&#8221; &#8220;npm ERR! @ dev: `npm run development`&#8221;</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">When you using &#8220;laravel 5.5&#8221; and whenever run command &#8220;npm install&#8221; then sometime it comes this type error.</p>



<p class="wp-block-paragraph"></p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="283" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/npm-ERR-code-ELIFECYCLE-1024x283.png" alt="" class="wp-image-5992" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/npm-ERR-code-ELIFECYCLE-1024x283.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/npm-ERR-code-ELIFECYCLE-300x83.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/npm-ERR-code-ELIFECYCLE-768x213.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/npm-ERR-code-ELIFECYCLE-1536x425.png 1536w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/npm-ERR-code-ELIFECYCLE.png 1684w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph"></p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="388" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/npm-ERR-errno-2-npm-ERR-@-dev-npm-run-development-1024x388.png" alt="" class="wp-image-5993" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/npm-ERR-errno-2-npm-ERR-@-dev-npm-run-development-1024x388.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/npm-ERR-errno-2-npm-ERR-@-dev-npm-run-development-300x114.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/npm-ERR-errno-2-npm-ERR-@-dev-npm-run-development-768x291.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/npm-ERR-errno-2-npm-ERR-@-dev-npm-run-development.png 1345w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Then run below commands &#8211;</p>



<h2 class="wp-block-heading">Step 1-</h2>



<p class="wp-block-paragraph"><strong>npm install &#8211;save-dev cross-env</strong></p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="593" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/image-32-1024x593.png" alt="" class="wp-image-5989" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/image-32-1024x593.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/image-32-300x174.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/image-32-768x445.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/image-32.png 1255w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">After that Your problem will be solve.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-solve-throwing-npm-error-npm-err-code-elifecycle-npm-err-errno-2-npm-err-dev-npm-run-development/">How to solve throwing npm error “npm ERR! code ELIFECYCLE” &#8220;npm ERR! errno 2&#8221; &#8220;npm ERR! @ dev: `npm run development`&#8221;</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Error with npm update: pngquant binary does not seem to work correctly</title>
		<link>https://www.scmgalaxy.com/tutorials/error-with-npm-update-pngquant-binary-does-not-seem-to-work-correctly/</link>
					<comments>https://www.scmgalaxy.com/tutorials/error-with-npm-update-pngquant-binary-does-not-seem-to-work-correctly/#respond</comments>
		
		<dc:creator><![CDATA[Joydeep M]]></dc:creator>
		<pubDate>Mon, 15 Mar 2021 08:41:16 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[NPM error]]></category>
		<category><![CDATA[pngquant binary]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5556</guid>

					<description><![CDATA[<p>While installing npm for my ongoing project I got a error as shown below: To rectify the error I followed [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/error-with-npm-update-pngquant-binary-does-not-seem-to-work-correctly/">Error with npm update: pngquant binary does not seem to work correctly</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">While installing npm for my ongoing project I got a error as shown below:</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="955" height="270" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/03/Npm-install-error.jpg" alt="" class="wp-image-5557" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/03/Npm-install-error.jpg 955w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/03/Npm-install-error-300x85.jpg 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/03/Npm-install-error-768x217.jpg 768w" sizes="auto, (max-width: 955px) 100vw, 955px" /></figure>



<p class="wp-block-paragraph">To rectify the error I followed the steps given below and it worked for me:</p>



<p class="wp-block-paragraph"><strong>Step 1: </strong>Run sudo apt-get install libpng-dev.</p>



<p class="wp-block-paragraph"><strong>Step 2:</strong> Run npm install -g pngquant-bin.</p>



<p class="wp-block-paragraph"><strong>Step 3: </strong>Run npm install.</p>



<p class="wp-block-paragraph">References:</p>



<p class="wp-block-paragraph"><a rel="noreferrer noopener" href="https://stackoverflow.com/questions/49308545/error-with-npm-update-pngquant-binary-does-not-seem-to-work-correctly" target="_blank">Click here</a></p>



<p class="wp-block-paragraph"><a href="https://github.com/imagemin/pngquant-bin/issues/78" target="_blank" rel="noreferrer noopener">Click here</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/error-with-npm-update-pngquant-binary-does-not-seem-to-work-correctly/">Error with npm update: pngquant binary does not seem to work correctly</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/error-with-npm-update-pngquant-binary-does-not-seem-to-work-correctly/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
