npm run watch says errors
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
add a comment |
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
Try runningnpm rebuild node-sass
and compile again
– Ijas Ameenudeen
Nov 24 '18 at 14:48
Try thisnpm 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
add a comment |
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
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
laravel npm
asked Nov 24 '18 at 14:46
Azizbek MuzaffarovAzizbek Muzaffarov
111
111
Try runningnpm rebuild node-sass
and compile again
– Ijas Ameenudeen
Nov 24 '18 at 14:48
Try thisnpm 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
add a comment |
Try runningnpm rebuild node-sass
and compile again
– Ijas Ameenudeen
Nov 24 '18 at 14:48
Try thisnpm 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
add a comment |
1 Answer
1
active
oldest
votes
Try this and compile again :
npm install node-sass --save
c:xampphtdocsecom>npm config get proxy
returnnull
– 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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Try this and compile again :
npm install node-sass --save
c:xampphtdocsecom>npm config get proxy
returnnull
– 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
add a comment |
Try this and compile again :
npm install node-sass --save
c:xampphtdocsecom>npm config get proxy
returnnull
– 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
add a comment |
Try this and compile again :
npm install node-sass --save
Try this and compile again :
npm install node-sass --save
answered Nov 24 '18 at 15:56
Mehrdad SaamiMehrdad Saami
11
11
c:xampphtdocsecom>npm config get proxy
returnnull
– 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
add a comment |
c:xampphtdocsecom>npm config get proxy
returnnull
– 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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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