3

Error: Cannot find module 'node-sass'

When I run

ng serve --port

got this error and try to install the node-sass using the command

npm install node-sass 

Then got the below

(ERROR in src/app/app.module.ts(40,36): error TS2307: Cannot find module '@zxing/ngx-scanner')

Then I install this npm i @zxing/[email protected].

But this time I got a first error which is

Error: Cannot find module 'node-sass'

please help, thanks

2
  • try this command - npm install --save-dev --unsafe-perm node-sass Commented Nov 12, 2019 at 3:43
  • or this one.. npm install --save-dev node-sass Commented Nov 12, 2019 at 3:45

4 Answers 4

2

npm install --save-dev node-sass

this works for me!!! Thank you so much guys

Sign up to request clarification or add additional context in comments.

Comments

0

try this :

`npm install --save-dev node-sass` 

3 Comments

ERROR in src/app/app.module.ts(44,36): error TS2307: Cannot find module '@zxing/ngx-scanner'. src/app/qr-code-payment/qr-code-payment.component.ts(7,39): error TS2307: Cannot find module '@zxing/ngx-scanner'. src/app/qr-code-payment/qr-code-payment.component.ts(8,24): error TS2307: Cannot find module '@zxing/library'. src/app/qr-code-payment/qr-code-payment.module.ts(8,36): error TS2307: Cannot find module '@zxing/ngx-scanner'.
i got this error recently. So i run this npm install --save-dev node-sass but i got the same error which is above. Please help.
npm i @zxing/ngx-scanner
0

Try this one. this will definitely resolve the Node-sass Issue in your project.

npm rebuild node-sass 

2 Comments

i got this error recently. So i run this npm install --save-dev node-sass but i got the same error which is above. Please help.
ERROR in src/app/app.module.ts(44,36): error TS2307: Cannot find module '@zxing/ngx-scanner'. src/app/qr-code-payment/qr-code-payment.component.ts(7,39): error TS2307: Cannot find module '@zxing/ngx-scanner'. src/app/qr-code-payment/qr-code-payment.component.ts(8,24): error TS2307: Cannot find module '@zxing/library'. src/app/qr-code-payment/qr-code-payment.module.ts(8,36): error TS2307: Cannot find module '@zxing/ngx-scanner'.
-1

try

npm install @types/node-sass 

2 Comments

ERROR in src/app/app.module.ts(44,36): error TS2307: Cannot find module '@zxing/ngx-scanner'. src/app/qr-code-payment/qr-code-payment.component.ts(7,39): error TS2307: Cannot find module '@zxing/ngx-scanner'. src/app/qr-code-payment/qr-code-payment.component.ts(8,24): error TS2307: Cannot find module '@zxing/library'. src/app/qr-code-payment/qr-code-payment.module.ts(8,36): error TS2307: Cannot find module '@zxing/ngx-scanner'.
i got this error recently. So i run this npm install --save-dev node-sass but i got the same error which is above. Please help.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.