[GH-ISSUE #656] Koel fresh install error #466

Closed
opened 2026-02-26 02:33:18 +03:00 by kerem · 5 comments
Owner

Originally created by @duhow on GitHub (Sep 24, 2017).
Original GitHub issue: https://github.com/koel/koel/issues/656

When using the yarn command, build fails with following errors:

$ yarn build
yarn build v1.0.2
$ cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules
 95% emitting

 ERROR  Failed to compile with 51 errors                                                                                                                                            5:45:14 PM

These dependencies were not found in node_modules:

* /web/koel/resources/assets/sass/app.scss
* /web/koel/resources/assets/sass/remote.scss
* !!vue-style-loader!css-loader!./../../../node_modules/vue-loader/lib/style-rewriter?id=data-v-235d51f2!sass-loader!./../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./app.vue

When using npm install, build fails with following log errors:

cwd /web/koel
Linux 4.9.0-2-amd64
argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
node v7.10.1
npm  v4.2.0
code ELIFECYCLE
errno 1
koel@ postinstall: `yarn build`
Exit status 1
Failed at the koel@ postinstall script 'yarn build'.
Make sure you have the latest version of node.js and npm installed.
If you do, this is most likely a problem with the koel package,
not with npm itself.
Tell the author that this fails on your system:
    yarn build
You can get information on how to open an issue for this project with:
    npm bugs koel
Or if that isn't available, you can get their info via:
    npm owner ls koel
There is likely additional logging output above.

In another Linux installation I'm also having other error when using npm install:

yarn build v1.0.2
$ cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules
/web/koel/webpack.config.js:141
      Mix.cssOutput(toCompile)
          ^

TypeError: Mix.cssOutput is not a function
    at Mix.preprocessors.forEach.toCompile (/web/koel/webpack.config.js:141:11)
    at Array.forEach (native)
    at Object.<anonymous> (/web/koel/webpack.config.js:139:21)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at requireConfig (/web/koel/node_modules/webpack/bin/convert-argv.js:96:18)
    at /web/koel/node_modules/webpack/bin/convert-argv.js:109:17
    at Array.forEach (native)
    at module.exports (/web/koel/node_modules/webpack/bin/convert-argv.js:107:15)
    at Object.<anonymous> (/web/koel/node_modules/webpack/bin/webpack.js:153:40)
    at Module._compile (module.js:571:32)

Tried changing versions of yarn, npm and so, but still nothing.
Both errors happen when using master version or v3.6.2.

Software used:

  • nodejs: 7.10.1
  • npm: 4.2.0
  • php: 7.0.19
  • yarn: 1.0.2 stable
Originally created by @duhow on GitHub (Sep 24, 2017). Original GitHub issue: https://github.com/koel/koel/issues/656 When using the `yarn` command, build fails with following errors: ``` $ yarn build yarn build v1.0.2 $ cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules 95% emitting ERROR Failed to compile with 51 errors 5:45:14 PM These dependencies were not found in node_modules: * /web/koel/resources/assets/sass/app.scss * /web/koel/resources/assets/sass/remote.scss * !!vue-style-loader!css-loader!./../../../node_modules/vue-loader/lib/style-rewriter?id=data-v-235d51f2!sass-loader!./../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./app.vue ``` When using `npm install`, build fails with following log errors: ``` cwd /web/koel Linux 4.9.0-2-amd64 argv "/usr/bin/nodejs" "/usr/bin/npm" "install" node v7.10.1 npm v4.2.0 code ELIFECYCLE errno 1 koel@ postinstall: `yarn build` Exit status 1 Failed at the koel@ postinstall script 'yarn build'. Make sure you have the latest version of node.js and npm installed. If you do, this is most likely a problem with the koel package, not with npm itself. Tell the author that this fails on your system: yarn build You can get information on how to open an issue for this project with: npm bugs koel Or if that isn't available, you can get their info via: npm owner ls koel There is likely additional logging output above. ``` In another Linux installation I'm also having other error when using `npm install`: ``` yarn build v1.0.2 $ cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules /web/koel/webpack.config.js:141 Mix.cssOutput(toCompile) ^ TypeError: Mix.cssOutput is not a function at Mix.preprocessors.forEach.toCompile (/web/koel/webpack.config.js:141:11) at Array.forEach (native) at Object.<anonymous> (/web/koel/webpack.config.js:139:21) at Module._compile (module.js:571:32) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12) at Function.Module._load (module.js:439:3) at Module.require (module.js:498:17) at require (internal/module.js:20:19) at requireConfig (/web/koel/node_modules/webpack/bin/convert-argv.js:96:18) at /web/koel/node_modules/webpack/bin/convert-argv.js:109:17 at Array.forEach (native) at module.exports (/web/koel/node_modules/webpack/bin/convert-argv.js:107:15) at Object.<anonymous> (/web/koel/node_modules/webpack/bin/webpack.js:153:40) at Module._compile (module.js:571:32) ``` Tried changing versions of yarn, npm and so, but still nothing. Both errors happen when using `master` version or `v3.6.2`. Software used: * `nodejs`: 7.10.1 * `npm`: 4.2.0 * `php`: 7.0.19 * `yarn`: 1.0.2 stable
kerem closed this issue 2026-02-26 02:33:18 +03:00
Author
Owner

@ThisIsSet-L commented on GitHub (Sep 24, 2017):

There's an issue with using node versions above v6. Revert to older version of nodejs and try again (LTS worked for me).

<!-- gh-comment-id:331730948 --> @ThisIsSet-L commented on GitHub (Sep 24, 2017): There's an issue with using node versions above v6. Revert to older version of nodejs and try again (LTS worked for me).
Author
Owner

@duhow commented on GitHub (Sep 25, 2017):

Same error with nodejs v6.11.3, npm 3.10.10 and yarn 1.1.0.
Clean old cache of node_modules, delete koel folder and compile again, but nothing. When running koel:init it gives error.

yarn run v1.1.0
$ cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules
 95% emitting

 ERROR  Failed to compile with 51 errors                                                                                                                                              10:42:00

These dependencies were not found in node_modules:

* /home/duhow/koel/resources/assets/sass/app.scss
* /home/duhow/koel/resources/assets/sass/remote.scss
* !!vue-style-loader!css-loader!./../../../node_modules/vue-loader/lib/style-rewriter?id=data-v-235d51f2!sass-loader!./../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./app.vue
* !!vue-style-loader!css-loader!./../../../../node_modules/vue-loader/lib/style-rewriter?id=data-v-134f7ce2!sass-loader!./../../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./app.vue
* !!vue-style-loader!css-loader!./../../../../../node_modules/vue-loader/lib/style-rewriter?id=data-v-e0457900&scoped=true!sass-loader!./../../../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./login-form.vue
* !!vue-style-loader!css-loader!./../../../../../node_modules/vue-loader/lib/style-rewriter?id=data-v-1b43a432!sass-loader!./../../../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./index.vue
...........
<!-- gh-comment-id:331816023 --> @duhow commented on GitHub (Sep 25, 2017): Same error with `nodejs` v6.11.3, `npm` 3.10.10 and `yarn` 1.1.0. Clean old cache of node_modules, delete koel folder and compile again, but nothing. When running `koel:init` it gives error. ``` yarn run v1.1.0 $ cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules 95% emitting ERROR Failed to compile with 51 errors 10:42:00 These dependencies were not found in node_modules: * /home/duhow/koel/resources/assets/sass/app.scss * /home/duhow/koel/resources/assets/sass/remote.scss * !!vue-style-loader!css-loader!./../../../node_modules/vue-loader/lib/style-rewriter?id=data-v-235d51f2!sass-loader!./../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./app.vue * !!vue-style-loader!css-loader!./../../../../node_modules/vue-loader/lib/style-rewriter?id=data-v-134f7ce2!sass-loader!./../../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./app.vue * !!vue-style-loader!css-loader!./../../../../../node_modules/vue-loader/lib/style-rewriter?id=data-v-e0457900&scoped=true!sass-loader!./../../../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./login-form.vue * !!vue-style-loader!css-loader!./../../../../../node_modules/vue-loader/lib/style-rewriter?id=data-v-1b43a432!sass-loader!./../../../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./index.vue ........... ```
Author
Owner

@duhow commented on GitHub (Sep 25, 2017):

Solved by running npm install yarn@0.25.4 -g. Will do some more tests to get latest "stable" version posible.

<!-- gh-comment-id:331872621 --> @duhow commented on GitHub (Sep 25, 2017): Solved by running `npm install yarn@0.25.4 -g`. Will do some more tests to get latest "stable" version posible.
Author
Owner

@RaraAvis8 commented on GitHub (Sep 30, 2017):

Why this issue is closed without any fixes? It took me 2 days to find this solution.
Koel docs say

NodeJS latest stable with yarn

It should mention yarn version <= 0.25.4 in my opinion.

<!-- gh-comment-id:333339332 --> @RaraAvis8 commented on GitHub (Sep 30, 2017): Why this issue is closed without any fixes? It took me 2 days to find this solution. [Koel docs](https://koel.phanan.net/docs/#/) say > NodeJS latest stable with yarn It should mention `yarn` version <= 0.25.4 in my opinion.
Author
Owner

@phanan commented on GitHub (Dec 4, 2017):

Working fine with yarn 1.3.2 – please feel free to open another issue if things are still broken for you guys somehow.

<!-- gh-comment-id:348957602 --> @phanan commented on GitHub (Dec 4, 2017): Working fine with yarn 1.3.2 – please feel free to open another issue if things are still broken for you guys somehow.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#466
No description provided.