npm run watch says errors












0















Hi all!! Project from github ecom cloned and installed on my local server,
Project is runing but when i type via cli npm run watch says error like this.



ERROR in ./node_modules/css-loader?{"url":true,"sourceMap":false,"importLoaders":1}!./node_modules/postcss-loader/lib?{"sourceMap":true,"ident":"postcss","plugins":[null]}!./node_modules/resolve-url-loader?{"sourceMap":true,"root":"C://xampp//htdocs//ecom//node_modules"}!./node_modules/sass-loader/lib/loader.js?{"precision":8,"outputStyle":"expanded","sourceMap":true}!./resources/assets/sass/app.scss
Module build failed: Error: Cannot find module 'node-sass'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
at Function.Module._load (internal/modules/cjs/loader.js:506:25)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (C:xampphtdocsecomnode_modulessass-loaderlibloader.js:3:14)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
at loadLoader (C:xampphtdocsecomnode_modulesloader-runnerlibloadLoader.js:13:17)
at iteratePitchingLoaders (C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:169:2)
at iteratePitchingLoaders (C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:165:10)
at C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:173:18
at loadLoader (C:xampphtdocsecomnode_modulesloader-runnerlibloadLoader.js:36:3)
at iteratePitchingLoaders (C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:169:2)
at iteratePitchingLoaders (C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:165:10)
at C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:173:18
at loadLoader (C:xampphtdocsecomnode_modulesloader-runnerlibloadLoader.js:36:3)
at iteratePitchingLoaders (C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:169:2)
at iteratePitchingLoaders (C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:165:10)
at C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:173:18
at loadLoader (C:xampphtdocsecomnode_modulesloader-runnerlibloadLoader.js:36:3)
at iteratePitchingLoaders (C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:169:2)
at runLoaders (C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:362:2)
at NormalModule.doBuild (C:xampphtdocsecomnode_moduleswebpacklibNormalModule.js:182:3)
at NormalModule.build (C:xampphtdocsecomnode_moduleswebpacklibNormalModule.js:275:15)
at Compilation.buildModule (C:xampphtdocsecomnode_moduleswebpacklibCompilation.js:151:10)
@ ./resources/assets/sass/app.scss 4:14-266
@ multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss


please help me...










share|improve this question























  • Try running npm rebuild node-sass and compile again

    – Ijas Ameenudeen
    Nov 24 '18 at 14:48











  • Try this npm install css-loader

    – sanu
    Nov 24 '18 at 15:12













  • when i run these commands it says like this error Cannot read property 'startsWith' of null

    – Azizbek Muzaffarov
    Nov 26 '18 at 18:01


















0















Hi all!! Project from github ecom cloned and installed on my local server,
Project is runing but when i type via cli npm run watch says error like this.



ERROR in ./node_modules/css-loader?{"url":true,"sourceMap":false,"importLoaders":1}!./node_modules/postcss-loader/lib?{"sourceMap":true,"ident":"postcss","plugins":[null]}!./node_modules/resolve-url-loader?{"sourceMap":true,"root":"C://xampp//htdocs//ecom//node_modules"}!./node_modules/sass-loader/lib/loader.js?{"precision":8,"outputStyle":"expanded","sourceMap":true}!./resources/assets/sass/app.scss
Module build failed: Error: Cannot find module 'node-sass'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
at Function.Module._load (internal/modules/cjs/loader.js:506:25)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (C:xampphtdocsecomnode_modulessass-loaderlibloader.js:3:14)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
at loadLoader (C:xampphtdocsecomnode_modulesloader-runnerlibloadLoader.js:13:17)
at iteratePitchingLoaders (C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:169:2)
at iteratePitchingLoaders (C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:165:10)
at C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:173:18
at loadLoader (C:xampphtdocsecomnode_modulesloader-runnerlibloadLoader.js:36:3)
at iteratePitchingLoaders (C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:169:2)
at iteratePitchingLoaders (C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:165:10)
at C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:173:18
at loadLoader (C:xampphtdocsecomnode_modulesloader-runnerlibloadLoader.js:36:3)
at iteratePitchingLoaders (C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:169:2)
at iteratePitchingLoaders (C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:165:10)
at C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:173:18
at loadLoader (C:xampphtdocsecomnode_modulesloader-runnerlibloadLoader.js:36:3)
at iteratePitchingLoaders (C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:169:2)
at runLoaders (C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:362:2)
at NormalModule.doBuild (C:xampphtdocsecomnode_moduleswebpacklibNormalModule.js:182:3)
at NormalModule.build (C:xampphtdocsecomnode_moduleswebpacklibNormalModule.js:275:15)
at Compilation.buildModule (C:xampphtdocsecomnode_moduleswebpacklibCompilation.js:151:10)
@ ./resources/assets/sass/app.scss 4:14-266
@ multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss


please help me...










share|improve this question























  • Try running npm rebuild node-sass and compile again

    – Ijas Ameenudeen
    Nov 24 '18 at 14:48











  • Try this npm install css-loader

    – sanu
    Nov 24 '18 at 15:12













  • when i run these commands it says like this error Cannot read property 'startsWith' of null

    – Azizbek Muzaffarov
    Nov 26 '18 at 18:01
















0












0








0


0






Hi all!! Project from github ecom cloned and installed on my local server,
Project is runing but when i type via cli npm run watch says error like this.



ERROR in ./node_modules/css-loader?{"url":true,"sourceMap":false,"importLoaders":1}!./node_modules/postcss-loader/lib?{"sourceMap":true,"ident":"postcss","plugins":[null]}!./node_modules/resolve-url-loader?{"sourceMap":true,"root":"C://xampp//htdocs//ecom//node_modules"}!./node_modules/sass-loader/lib/loader.js?{"precision":8,"outputStyle":"expanded","sourceMap":true}!./resources/assets/sass/app.scss
Module build failed: Error: Cannot find module 'node-sass'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
at Function.Module._load (internal/modules/cjs/loader.js:506:25)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (C:xampphtdocsecomnode_modulessass-loaderlibloader.js:3:14)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
at loadLoader (C:xampphtdocsecomnode_modulesloader-runnerlibloadLoader.js:13:17)
at iteratePitchingLoaders (C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:169:2)
at iteratePitchingLoaders (C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:165:10)
at C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:173:18
at loadLoader (C:xampphtdocsecomnode_modulesloader-runnerlibloadLoader.js:36:3)
at iteratePitchingLoaders (C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:169:2)
at iteratePitchingLoaders (C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:165:10)
at C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:173:18
at loadLoader (C:xampphtdocsecomnode_modulesloader-runnerlibloadLoader.js:36:3)
at iteratePitchingLoaders (C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:169:2)
at iteratePitchingLoaders (C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:165:10)
at C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:173:18
at loadLoader (C:xampphtdocsecomnode_modulesloader-runnerlibloadLoader.js:36:3)
at iteratePitchingLoaders (C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:169:2)
at runLoaders (C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:362:2)
at NormalModule.doBuild (C:xampphtdocsecomnode_moduleswebpacklibNormalModule.js:182:3)
at NormalModule.build (C:xampphtdocsecomnode_moduleswebpacklibNormalModule.js:275:15)
at Compilation.buildModule (C:xampphtdocsecomnode_moduleswebpacklibCompilation.js:151:10)
@ ./resources/assets/sass/app.scss 4:14-266
@ multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss


please help me...










share|improve this question














Hi all!! Project from github ecom cloned and installed on my local server,
Project is runing but when i type via cli npm run watch says error like this.



ERROR in ./node_modules/css-loader?{"url":true,"sourceMap":false,"importLoaders":1}!./node_modules/postcss-loader/lib?{"sourceMap":true,"ident":"postcss","plugins":[null]}!./node_modules/resolve-url-loader?{"sourceMap":true,"root":"C://xampp//htdocs//ecom//node_modules"}!./node_modules/sass-loader/lib/loader.js?{"precision":8,"outputStyle":"expanded","sourceMap":true}!./resources/assets/sass/app.scss
Module build failed: Error: Cannot find module 'node-sass'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
at Function.Module._load (internal/modules/cjs/loader.js:506:25)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (C:xampphtdocsecomnode_modulessass-loaderlibloader.js:3:14)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
at loadLoader (C:xampphtdocsecomnode_modulesloader-runnerlibloadLoader.js:13:17)
at iteratePitchingLoaders (C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:169:2)
at iteratePitchingLoaders (C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:165:10)
at C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:173:18
at loadLoader (C:xampphtdocsecomnode_modulesloader-runnerlibloadLoader.js:36:3)
at iteratePitchingLoaders (C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:169:2)
at iteratePitchingLoaders (C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:165:10)
at C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:173:18
at loadLoader (C:xampphtdocsecomnode_modulesloader-runnerlibloadLoader.js:36:3)
at iteratePitchingLoaders (C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:169:2)
at iteratePitchingLoaders (C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:165:10)
at C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:173:18
at loadLoader (C:xampphtdocsecomnode_modulesloader-runnerlibloadLoader.js:36:3)
at iteratePitchingLoaders (C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:169:2)
at runLoaders (C:xampphtdocsecomnode_modulesloader-runnerlibLoaderRunner.js:362:2)
at NormalModule.doBuild (C:xampphtdocsecomnode_moduleswebpacklibNormalModule.js:182:3)
at NormalModule.build (C:xampphtdocsecomnode_moduleswebpacklibNormalModule.js:275:15)
at Compilation.buildModule (C:xampphtdocsecomnode_moduleswebpacklibCompilation.js:151:10)
@ ./resources/assets/sass/app.scss 4:14-266
@ multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss


please help me...







laravel npm






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 24 '18 at 14:46









Azizbek MuzaffarovAzizbek Muzaffarov

111




111













  • Try running npm rebuild node-sass and compile again

    – Ijas Ameenudeen
    Nov 24 '18 at 14:48











  • Try this npm install css-loader

    – sanu
    Nov 24 '18 at 15:12













  • when i run these commands it says like this error Cannot read property 'startsWith' of null

    – Azizbek Muzaffarov
    Nov 26 '18 at 18:01





















  • Try running npm rebuild node-sass and compile again

    – Ijas Ameenudeen
    Nov 24 '18 at 14:48











  • Try this npm install css-loader

    – sanu
    Nov 24 '18 at 15:12













  • when i run these commands it says like this error Cannot read property 'startsWith' of null

    – Azizbek Muzaffarov
    Nov 26 '18 at 18:01



















Try running npm rebuild node-sass and compile again

– Ijas Ameenudeen
Nov 24 '18 at 14:48





Try running npm rebuild node-sass and compile again

– Ijas Ameenudeen
Nov 24 '18 at 14:48













Try this npm install css-loader

– sanu
Nov 24 '18 at 15:12







Try this npm install css-loader

– sanu
Nov 24 '18 at 15:12















when i run these commands it says like this error Cannot read property 'startsWith' of null

– Azizbek Muzaffarov
Nov 26 '18 at 18:01







when i run these commands it says like this error Cannot read property 'startsWith' of null

– Azizbek Muzaffarov
Nov 26 '18 at 18:01














1 Answer
1






active

oldest

votes


















0














Try this and compile again :



npm install node-sass --save





share|improve this answer
























  • c:xampphtdocsecom>npm config get proxy return null

    – Azizbek Muzaffarov
    Nov 26 '18 at 17:51













  • should i add a proxy or http_proxy? maybe a problem i use without any proxy?

    – Azizbek Muzaffarov
    Nov 26 '18 at 17:57











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53459315%2fnpm-run-watch-says-errors%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Try this and compile again :



npm install node-sass --save





share|improve this answer
























  • c:xampphtdocsecom>npm config get proxy return null

    – Azizbek Muzaffarov
    Nov 26 '18 at 17:51













  • should i add a proxy or http_proxy? maybe a problem i use without any proxy?

    – Azizbek Muzaffarov
    Nov 26 '18 at 17:57
















0














Try this and compile again :



npm install node-sass --save





share|improve this answer
























  • c:xampphtdocsecom>npm config get proxy return null

    – Azizbek Muzaffarov
    Nov 26 '18 at 17:51













  • should i add a proxy or http_proxy? maybe a problem i use without any proxy?

    – Azizbek Muzaffarov
    Nov 26 '18 at 17:57














0












0








0







Try this and compile again :



npm install node-sass --save





share|improve this answer













Try this and compile again :



npm install node-sass --save






share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 24 '18 at 15:56









Mehrdad SaamiMehrdad Saami

11




11













  • c:xampphtdocsecom>npm config get proxy return null

    – Azizbek Muzaffarov
    Nov 26 '18 at 17:51













  • should i add a proxy or http_proxy? maybe a problem i use without any proxy?

    – Azizbek Muzaffarov
    Nov 26 '18 at 17:57



















  • c:xampphtdocsecom>npm config get proxy return null

    – Azizbek Muzaffarov
    Nov 26 '18 at 17:51













  • should i add a proxy or http_proxy? maybe a problem i use without any proxy?

    – Azizbek Muzaffarov
    Nov 26 '18 at 17:57

















c:xampphtdocsecom>npm config get proxy return null

– Azizbek Muzaffarov
Nov 26 '18 at 17:51







c:xampphtdocsecom>npm config get proxy return null

– Azizbek Muzaffarov
Nov 26 '18 at 17:51















should i add a proxy or http_proxy? maybe a problem i use without any proxy?

– Azizbek Muzaffarov
Nov 26 '18 at 17:57





should i add a proxy or http_proxy? maybe a problem i use without any proxy?

– Azizbek Muzaffarov
Nov 26 '18 at 17:57




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53459315%2fnpm-run-watch-says-errors%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

404 Error Contact Form 7 ajax form submitting

How to know if a Active Directory user can login interactively

TypeError: fit_transform() missing 1 required positional argument: 'X'