akveo / ngx-admin

Customizable admin dashboard template based on Angular 10+
https://akveo.github.io/ngx-admin/
MIT License
25.3k stars 7.96k forks source link

Fresh install fails on Mac Os El Capitain. #123

Closed stankusl closed 8 years ago

stankusl commented 8 years ago

[X] bug report Fresh install fails on MacOS X ElCapitain.

sudo npm start

Throws Error: ERROR in ./~/bootstrap-loader/lib/bootstrap.loader.js!./~/bootstrap-loader/no-op.js Module build failed: Error: Could not find path to 'bootstrap' module. Make sure it's installed in your 'node_modules/' directory.

at Object.module.exports.pitch (/Users/exe1/dev/angular2/ng2-admin/node_modules/bootstrap-loader/lib/bootstrap.loader.js:90:11)

@ ./~/bootstrap-loader/loader.js 1:0-44

ERROR in ./src/app/theme/initial.scss Module build failed: ModuleBuildError: Module build failed: @import "~Ionicons/scss/ionicons"; ^ File to import not found or unreadable: ~Ionicons/scss/ionicons Parent style sheet: /Users/exe1/dev/angular2/ng2-admin/src/app/theme/sass/_ionicons.scss in /Users/exe1/dev/angular2/ng2-admin/src/app/theme/sass/_ionicons.scss (line 3, column 1) at DependenciesBlock.onModuleBuildFailed (/Users/exe1/dev/angular2/ng2-admin/node_modules/webpack-core/lib/NormalModuleMixin.js:315:19) at nextLoader (/Users/exe1/dev/angular2/ng2-admin/node_modules/webpack-core/lib/NormalModuleMixin.js:270:31) at /Users/exe1/dev/angular2/ng2-admin/node_modules/webpack-core/lib/NormalModuleMixin.js:292:15 at context.callback (/Users/exe1/dev/angular2/ng2-admin/node_modules/webpack-core/lib/NormalModuleMixin.js:148:14) at Object.onRender (/Users/exe1/dev/angular2/ng2-admin/node_modules/sass-loader/index.js:272:13) at /Users/exe1/dev/angular2/ng2-admin/node_modules/async/lib/async.js:906:35 at _arrayEach (/Users/exe1/dev/angular2/ng2-admin/node_modules/async/lib/async.js:85:13) at Object. (/Users/exe1/dev/angular2/ng2-admin/node_modules/async/lib/async.js:898:17) at Object.callback (/Users/exe1/dev/angular2/ng2-admin/node_modules/async/lib/async.js:44:16) at options.error (/Users/exe1/dev/angular2/ng2-admin/node_modules/node-sass/lib/index.js:275:32) @ ./src/app/app.loader.ts 3:0-31

stankusl commented 8 years ago

UPDATE:

Fails on last step command. Bower install throws error. bower cached https://github.com/driftyco/ionicons.git#2.0.1 bower validate 2.0.1 against https://github.com/driftyco/ionicons.git#~2.0.1 bower install Ionicons#2.0.1 bower EACCES EACCES: permission denied, mkdir '/Users/exe1/dev/angular2/ng2-admin/node_modules/Ionicons'

Stack trace: /usr/local/lib/node_modules/bower/lib/node_modules/fstream/lib/dir-writer.js:35:25 /usr/local/lib/node_modules/bower/lib/node_modules/mkdirp/index.js:46:53 FSReqWrap.oncomplete (fs.js:123:15)

Console trace: Error at StandardRenderer.error (/usr/local/lib/node_modules/bower/lib/renderers/StandardRenderer.js:81:37) at Logger. (/usr/local/lib/node_modules/bower/lib/bin/bower.js:110:26) at emitOne (events.js:96:13) at Logger.emit (events.js:188:7) at Logger.emit (/usr/local/lib/node_modules/bower/lib/node_modules/bower-logger/lib/Logger.js:29:39) at /usr/local/lib/node_modules/bower/lib/commands/index.js:48:20 at _rejected (/usr/local/lib/node_modules/bower/lib/node_modules/q/q.js:844:24) at /usr/local/lib/node_modules/bower/lib/node_modules/q/q.js:870:30 at Promise.when (/usr/local/lib/node_modules/bower/lib/node_modules/q/q.js:1122:31) at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/bower/lib/node_modules/q/q.js:788:41) System info: Bower version: 1.7.9 Node version: 6.3.1 OS: Darwin 15.5.0 x64

Can be Fixed by executing bower in allow root flag.

sudo bower install --allow-root
stankusl commented 8 years ago

Remaining error 👍

ERROR in ./~/bootstrap-loader/lib/bootstrap.loader.js!./~/bootstrap-loader/no-op.js Module build failed: Error: Could not find path to 'bootstrap' module. Make sure it's installed in your 'node_modules/' directory.

at Object.module.exports.pitch (/Users/exe1/dev/angular2/ng2-admin/node_modules/bootstrap-loader/lib/bootstrap.loader.js:90:11)

@ ./~/bootstrap-loader/loader.js 1:0-44

xiaofeihe commented 8 years ago

ERROR in ./~/bootstrap-loader/lib/bootstrap.loader.js!./~/bootstrap-loader/no-op.js
Module build failed: Error: 
      Could not find path to 'bootstrap' module.
      Make sure it's installed in your 'node_modules/' directory.

    at Object.module.exports.pitch (/home/sen/dev/ng2-admin/node_modules/bootstrap-loader/lib/bootstrap.loader.js:90:11)
 @ ./~/bootstrap-loader/loader.js 1:0-44
nnixaa commented 8 years ago

Hey guys, this is fixed in the https://github.com/akveo/ng2-admin/tree/v0.4.2 release, check out the changelog on how to update https://github.com/akveo/ng2-admin/blob/master/CHANGELOG.md#042-2016-07-28.