PatrickJS/NG6-starter

webpack: Failed to compile

dimitri-a opened this issue · 1 comments

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?

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