PatrickJS / NG6-starter

:ng: An AngularJS Starter repo for AngularJS + ES6 + Webpack
https://angularclass.github.io/NG6-starter
Apache License 2.0
1.91k stars 1.35k forks source link

webpack: Failed to compile #246

Closed dimitri-a closed 6 years ago

dimitri-a commented 6 years ago

I cloned and installed this on macOS High Sierra, version 10.13.2, node:v8.1.2 npm:5.0.3 When I run the app with npm start I get:

webpack built d72cf59a8188df56d267 in 4018ms Hash: d72cf59a8188df56d267 Version: webpack 1.15.0 Time: 4018ms Asset Size Chunks Chunk Names app.bundle.js 19.9 kB 0 [emitted] app vendor.bundle.js 2.18 MB 1 [emitted] vendor app.bundle.js.map 21.1 kB 0 [emitted] app vendor.bundle.js.map 2.56 MB 1 [emitted] vendor index.html 1.27 kB [emitted]

ERROR in Cannot find module 'node-sass' @ ./client/app/app.scss 4:14-116 13:2-17:4 14:20-122

ERROR in Cannot find module 'node-sass' @ ./client/app/common/navbar/navbar.scss 4:14-131 13:2-17:4 14:20-137

I tried : npm i node-sass

But then I get:

checking for Python executable "python2" in the PATH gyp verb which failed Error: not found: python2.. and other errors.

How can I install the app on mac osx?

dimitri-a commented 6 years ago

Just had to install the latest version of node-sass.