Ngx-admin: node-sass/vendor

Created on 15 Jun 2016  路  6Comments  路  Source: akveo/ngx-admin

(node) crypto.createCredentials is deprecated. Use tls.createSecureContext instead.
(node) crypto.Credentials is deprecated. Use tls.createSecureContext instead.
16% 18/176 build modulesError: ENOENT: no such file or directory, scandir '~/ng2-admin/node_modules/node-sass/vendor'
at Error (native)
at Object.fs.readdirSync (fs.js:856:18)
at Object.getInstalledBinaries (~/ng2-admin/node_modules/node-sass/lib/extensions.js:74:13)
at foundBinariesList (~/ng2-admin/node_modules/node-sass/lib/errors.js:20:15)
at foundBinaries (~/ng2-admin/node_modules/node-sass/lib/errors.js:15:5)
at Object.module.exports.missingBinary (~/ng2-admin/node_modules/node-sass/lib/errors.js:45:5)
at Object. (~/ng2-admin/node_modules/node-sass/lib/index.js:14:28)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object. (~/ng2-admin/node_modules/sass-loader/index.js:4:12)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at DependenciesBlock.loadPitch (~/ng2-admin/node_modules/webpack-core/lib/NormalModuleMixin.js:193:17)
at DependenciesBlock.loadPitch (~/ng2-admin/node_modules/webpack-core/lib/NormalModuleMixin.js:186:21)
at DependenciesBlock.loadPitch (~/ng2-admin/node_modules/webpack-core/lib/NormalModuleMixin.js:223:61)
at DependenciesBlock.doBuild (~/ng2-admin/node_modules/webpack-core/lib/NormalModuleMixin.js:241:4)
at DependenciesBlock.build (~/ng2-admin/node_modules/webpack/lib/NormalModule.js:84:14)
at Compilation.buildModule (~/ng2-admin/node_modules/webpack/lib/Compilation.js:126:9)
at ~/ng2-admin/node_modules/webpack/lib/Compilation.js:309:10
at ~/ng2-admin/node_modules/webpack/lib/NormalModuleFactory.js:58:13
at NormalModuleFactory.applyPluginsAsyncWaterfall (~/ng2-admin/node_modules/tapable/lib/Tapable.js:75:69)
at onDoneResolving (~/ng2-admin/node_modules/webpack/lib/NormalModuleFactory.js:38:11)

Most helpful comment

Let run commands:

node node_modules/node-sass/scripts/install.js
node node_modules/node-sass/scripts/build.js

All 6 comments

what is the reason?

ERROR in ENOENT: no such file or directory, scandir '~/ng2-admin/node_modules/node-sass/vendor'
@ ./~/style-loader!./~/css-loader!./~/sass-loader!./~/font-awesome-sass-loader/font-awesome-sass-styles.loader.js!./~/font-awesome-sass-loader/font-awesome-sass.config.js 4:14-176

ERROR in ENOENT: no such file or directory, scandir '~/ng2-admin/node_modules/node-sass/vendor'
@ ./~/style-loader!./~/css-loader!./~/resolve-url-loader!./~/sass-loader?sourceMap!./~/bootstrap-loader/lib/bootstrap.styles.loader.js!./~/source-map-loader!./~/bootstrap-loader/no-op.js 4:14-228

ERROR in ENOENT: no such file or directory, scandir '~/ng2-admin/node_modules/node-sass/vendor'
@ ./src/app/app.component.ts 46:47-68

ERROR in ENOENT: no such file or directory, scandir '~/ng2-admin/node_modules/node-sass/vendor'
@ ./src/app/app.loader.ts 2:0-31

ERROR in ENOENT: no such file or directory, scandir '~/ng2-admin/node_modules/node-sass/vendor'
@ ./src/app/pages/dashboard/dashboard.component.ts 21:21-48

ERROR in ENOENT: no such file or directory, scandir '~/ng2-admin/node_modules/node-sass/vendor'
@ ./src/app/theme/components/baContentTop/baContentTop.component.ts 18:21-51

ERROR in ENOENT: no such file or directory, scandir '~/ng2-admin/node_modules/node-sass/vendor'
@ ./src/app/theme/components/baCard/baCard.component.ts 18:21-45

ERROR in ENOENT: no such file or directory, scandir '~/ng2-admin/node_modules/node-sass/vendor'
@ ./src/app/theme/components/baBackTop/baBackTop.component.ts 51:21-48

ERROR in ENOENT: no such file or directory, scandir '~/ng2-admin/node_modules/node-sass/vendor'
@ ./src/app/pages/charts/components/chartistJs/chartistJs.component.ts 23:60-88

ERROR in ENOENT: no such file or directory, scandir '~/ng2-admin/node_modules/node-sass/vendor'
@ ./src/app/theme/components/baChartistChart/baChartistChart.component.ts 44:60-93

ERROR in ENOENT: no such file or directory, scandir '~/ng2-admin/node_modules/node-sass/vendor'
@ ./src/app/theme/components/baPageTop/baPageTop.component.ts 27:21-48

ERROR in ENOENT: no such file or directory, scandir '~/ng2-admin/node_modules/node-sass/vendor'
@ ./src/app/theme/components/baMsgCenter/baMsgCenter.component.ts 15:21-50

ERROR in ENOENT: no such file or directory, scandir '~/ng2-admin/node_modules/node-sass/vendor'
@ ./src/app/theme/components/baSidebar/baSidebar.component.ts 94:21-48

ERROR in ENOENT: no such file or directory, scandir '~/ng2-admin/node_modules/node-sass/vendor'
@ ./src/app/pages/dashboard/popularApp/popularApp.component.ts 14:21-49

ERROR in ENOENT: no such file or directory, scandir '~/ng2-admin/node_modules/node-sass/vendor'
@ ./src/app/pages/maps/components/leafletMaps/leafletMaps.component.ts 26:21-50

ERROR in ENOENT: no such file or directory, scandir '~/ng2-admin/node_modules/node-sass/vendor'
@ ./src/app/pages/ui/components/grid/grid.component.ts 12:21-43

ERROR in ENOENT: no such file or directory, scandir '~/ng2-admin/node_modules/node-sass/vendor'
@ ./src/app/pages/dashboard/pieChart/pieChart.component.ts 49:21-47

ERROR in ENOENT: no such file or directory, scandir '~/ng2-admin/node_modules/node-sass/vendor'
@ ./src/app/pages/dashboard/trafficChart/trafficChart.component.ts 26:21-51

ERROR in ENOENT: no such file or directory, scandir '~/ng2-admin/node_modules/node-sass/vendor'
@ ./src/app/pages/dashboard/usersMap/usersMap.component.ts 16:21-47

ERROR in ENOENT: no such file or directory, scandir '~/ng2-admin/node_modules/node-sass/vendor'
@ ./src/app/pages/dashboard/lineChart/lineChart.component.ts 26:21-48

ERROR in ENOENT: no such file or directory, scandir '~/ng2-admin/node_modules/node-sass/vendor'
@ ./src/app/pages/dashboard/feed/feed.component.ts 24:21-43

ERROR in ENOENT: no such file or directory, scandir '~/ng2-admin/node_modules/node-sass/vendor'
@ ./src/app/pages/dashboard/todo/todo.component.ts 42:21-43

ERROR in ENOENT: no such file or directory, scandir '~/ng2-admin/node_modules/node-sass/vendor'
@ ./src/app/pages/dashboard/calendar/calendar.component.ts 34:21-47

ERROR in ENOENT: no such file or directory, scandir '~/ng2-admin/node_modules/node-sass/vendor'
@ ./src/app/pages/maps/components/googleMaps/googleMaps.component.ts 26:21-49

ERROR in ENOENT: no such file or directory, scandir '~/ng2-admin/node_modules/node-sass/vendor'
@ ./src/app/pages/maps/components/bubbleMaps/bubbleMaps.component.ts 20:21-49

ERROR in ENOENT: no such file or directory, scandir '~/ng2-admin/node_modules/node-sass/vendor'
@ ./src/app/pages/maps/components/lineMaps/lineMaps.component.ts 16:21-47

ERROR in ENOENT: no such file or directory, scandir '~/ng2-admin/node_modules/node-sass/vendor'
@ ./src/app/pages/ui/components/incons/icons.component.ts 20:21-44

ERROR in ENOENT: no such file or directory, scandir '~/ng2-admin/node_modules/node-sass/vendor'
@ ./src/app/pages/ui/components/buttons/buttons.component.ts 30:21-46

ERROR in ENOENT: no such file or directory, scandir '~/ng2-admin/node_modules/node-sass/vendor'
@ ./src/app/pages/tables/components/basicTables/basicTables.component.ts 19:21-50

@shuc324 have you managed to resolve this? try updating to the latest version of ng2-admin, update your npm & node and start the installation from scratch.

@shuc324 I also have this problem, you solve it?

Let run commands:

node node_modules/node-sass/scripts/install.js
node node_modules/node-sass/scripts/build.js

Thanks @TrungVuAnt, closing the issue now.

I'm seeing this same issue every time after I run yarn and then try to build with ember. Though running the listed commands works, that seems to be reset with yarn, and I have to run node node_modules/node-sass/scripts/install.js again, each time. Only recently began experiencing this issue. Using node-sass "^4.1.0"

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fabltd picture fabltd  路  3Comments

tal-shahar picture tal-shahar  路  3Comments

maxlein picture maxlein  路  3Comments

dreamerleolioa picture dreamerleolioa  路  4Comments

queirozfcom picture queirozfcom  路  4Comments