creativetimofficial / ct-material-dashboard-pro-angular

68 stars 35 forks source link

Problem with Build #321

Closed ShabnamPaidarfard closed 5 years ago

ShabnamPaidarfard commented 5 years ago

Prerequisites

Please answer the following questions for yourself before submitting an issue.

Expected Behavior

Please describe the behavior you are expecting

Current Behavior

What is the current behavior?

Failure Information (for bugs)

Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. step 1
  2. step 2
  3. you get it...

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

Failure Logs

Please include any relevant log snippets or files here.

ShabnamPaidarfard commented 5 years ago

I get this failure when trying to build and deploy.

[0mERROR in ./node_modules/angular-calendar/scss/angular-calendar.scss (./node_modules/raw-loader!./node_modules/postcss-loader/lib??embedded!./node_modules/sass-loader/lib/loader.js??ref--14-3!./node_modules/angular-calendar/scss/angular-calendar.scss) Module build failed: Error: Cannot find module 'node-sass'  at Function.Module._resolveFilename (module.js:555:15)  at Function.Module._load (module.js:482:25)  at Module.require (module.js:604:17)  at require (internal/module.js:11:18)  at Object.sassLoader (/tmp/styleguide-argon-dashboard/node_modules/sass-loader/lib/loader.js:46:72) ERROR in ./src/assets/scss/material-dashboard.scss (./node_modules/raw-loader!./node_modules/postcss-loader/lib??embedded!./node_modules/sass-loader/lib/loader.js??ref--14-3!./src/assets/scss/material-dashboard.scss) Module build failed: Error: Cannot find module 'node-sass'  at Function.Module._resolveFilename (module.js:555:15)  at Function.Module._load (module.js:482:25)  at Module.require (module.js:604:17)  at require (internal/module.js:11:18)  at Object.sassLoader (/tmp/styleguide-argon-dashboard/node_modules/sass-loader/lib/loader.js:46:72) ERROR in ./node_modules/sweetalert2/src/sweetalert2.scss (./node_modules/raw-loader!./node_modules/postcss-loader/lib??embedded!./node_modules/sass-loader/lib/loader.js??ref--14-3!./node_modules/sweetalert2/src/sweetalert2.scss) Module build failed: Error: Cannot find module 'node-sass'  at Function.Module._resolveFilename (module.js:555:15)  at Function.Module._load (module.js:482:25)  at Module.require (module.js:604:17)  at require (internal/module.js:11:18)  at Object.sassLoader (/tmp/styleguide-argon-dashboard/node_modules/sass-loader/lib/loader.js:46:72) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! material-dashboard-pro-angular@2.2.0 build: ng build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the material-dashboard-pro-angular@2.2.0 build 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! /home/app/.npm/_logs/2019-05-15T18_51_30_476Z-debug.log [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline ERROR: script returned exit code 1 Finished: FAILURE

chelaruc commented 5 years ago

@ShabnamPaidarfard try this command: npm rebuild node-sass --force