mirror of
https://github.com/koel/koel.git
synced 2026-04-25 16:56:02 +03:00
[GH-ISSUE #772] Build FAILED. #556
Labels
No labels
Authentication
Dependencies
Documentation
Feature Request
Flac
Help Wanted
Installation/Setup
Integration
Mobile
PR Welcome
Pending Release
Performance
Playlist
S3
Search
Sync
[Pri] Low
[Pri] Normal
[Status] Keep Open
[Status] Needs Author Reply
[Status] Needs Review
[Status] Stale
[Status] Will Implement
[Type] Blessed
[Type] Bug
[Type] Duplicate
[Type] Enhancement
[Type] Help Request
[Type] Question
[Type] Task
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/koel-koel#556
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @darkestninja on GitHub (Aug 7, 2018).
Original GitHub issue: https://github.com/koel/koel/issues/772
Hello! I have an issue when trying to execute php artisan koel:init, this is what it spools.
Compiling front-end stuff
yarn install v1.9.2
[1/4] Resolving packages...
[2/4] Fetching packages...
(node:12532) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
info fsevents@1.1.2: The platform "win32" is incompatible with this module.
info "fsevents@1.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > @phanan/vuebus@1.0.0" has incorrect peer dependency "vue@^2.5.13".
[4/4] Building fresh packages...
error C:\koel\node_modules\node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: C:\koel\node_modules\node-sass
Output:
Building: C:\Program Files\nodejs\node.exe C:\koel\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ 'C:\Program Files\nodejs\node.exe',
gyp verb cli 'C:\koel\node_modules\node-gyp\bin\node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library=' ]
gyp info using node-gyp@3.6.2
gyp info using node@10.8.0 | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb
whichfailed Error: not found: python2gyp verb
whichfailed at getNotFoundError (C:\koel\node_modules\which\which.js:13:12)gyp verb
whichfailed at F (C:\koel\node_modules\which\which.js:68:19)gyp verb
whichfailed at E (C:\koel\node_modules\which\which.js:80:29)gyp verb
whichfailed at C:\koel\node_modules\which\which.js:89:16gyp verb
whichfailed at C:\koel\node_modules\isexe\index.js:42:5gyp verb
whichfailed at C:\koel\node_modules\isexe\windows.js:36:5gyp verb
whichfailed at FSReqWrap.oncomplete (fs.js:152:21)gyp verb
whichfailed python2 { Error: not found: python2gyp verb
whichfailed at getNotFoundError (C:\koel\node_modules\which\which.js:13:12)gyp verb
whichfailed at F (C:\koel\node_modules\which\which.js:68:19)gyp verb
whichfailed at E (C:\koel\node_modules\which\which.js:80:29)gyp verb
whichfailed at C:\koel\node_modules\which\which.js:89:16gyp verb
whichfailed at C:\koel\node_modules\isexe\index.js:42:5gyp verb
whichfailed at C:\koel\node_modules\isexe\windows.js:36:5gyp verb
whichfailed at FSReqWrap.oncomplete (fs.js:152:21)gyp verb
whichfailed stack:gyp verb
whichfailed 'Error: not found: python2\n at getNotFoundError (C:\koel\node_modules\which\which.js:13:12)\n at F (C:\koel\node_modules\which\which.js:68:19)\n at E (C:\koel\node_modules\which\which.js:80:29)\n at C:\koel\node_modules\which\which.js:89:16\n at C:\koel\node_modules\isexe\index.js:42:5\n at C:\koel\node_modules\isexe\windows.js:36:5\n at FSReqWrap.oncomplete (fs.js:152:21)',gyp verb
whichfailed code: 'ENOENT' }gyp verb check python checking for Python executable "python" in the PATH
gyp verb
whichsucceeded python C:\Python27\python.EXEgyp verb check python version
C:\Python27\python.EXE -c "import platform; print(platform.python_version());"returned: "2.7.15\r\n"gyp verb get node dir no --target version specified, falling back to host node version: 10.8.0
gyp verb command install [ '10.8.0' ]
gyp verb install input version string "10.8.0"
gyp verb install installing version: 10.8.0
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 10.8.0
gyp verb build dir attempting to create "build" dir: C:\koel\node_modules\node-sass\build
gyp verb build dir "build" dir needed to be created? C:\koel\node_modules\node-sass\build
gyp verb find vs2017 Found installation at: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community
gyp verb find vs2017 - Missing Visual Studio C++ core features (Microsoft.VisualStudio.VC.MSBuild.Base)
gyp verb find vs2017 - Missing VC++ 2017 v141 toolset (x86,x64) (Microsoft.VisualStudio.Component.VC.Tools.x86.x64)
gyp verb find vs2017 - Missing a Windows SDK (Microsoft.VisualStudio.Component.Windows10SDK.* or Microsoft.VisualStudio.Component.Windows81SDK)
gyp verb find vs2017 - Some required components are missing, not using this installation
gyp verb Not using VS2017: No usable installation of VS2017 found
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: C:\koel\node_modules\node-sass\build\config.gypi
gyp verb config.gypi checking for gypi file: C:\koel\node_modules\node-sass\config.gypi
gyp verb common.gypi checking for gypi file: C:\koel\node_modules\node-sass\common.gypi
gyp verb gyp gyp format was not specified; forcing "msvs"
gyp info spawn C:\Python27\python.EXE
gyp info spawn args [ 'C:\koel\node_modules\node-gyp\gyp\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-G',
gyp info spawn args 'msvs_version=auto',
gyp info spawn args '-I',
gyp info spawn args 'C:\koel\node_modules\node-sass\build\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\koel\node_modules\node-gyp\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\Users\Daniel Asi\.node-gyp\10.8.0\include\node\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\Users\Daniel Asi\.node-gyp\10.8.0',
gyp info spawn args '-Dnode_gyp_dir=C:\koel\node_modules\node-gyp',
gyp info spawn args '-Dnode_lib_file=C:\Users\Daniel Asi\.node-gyp\10.8.0\<(target_arch)\node.lib',
gyp info spawn args '-Dmodule_root_dir=C:\koel\node_modules\node-sass',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'C:\koel\node_modules\node-sass\build',
gyp info spawn args '-Goutput_dir=.' ]
gyp verb command build []
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir C:\Users\Daniel Asi.node-gyp\10.8.0
gyp verb found first Solution file build/binding.sln
gyp verb could not find "msbuild.exe" in PATH - finding location in registry
gyp info spawn C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args '/nologo',
gyp info spawn args '/p:Configuration=Release;Platform=x64' ]
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 07/08/2018 09:24:49.
Project "C:\koel\node_modules\node-sass\build\binding.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
Building solution configuration "Release|x64".
MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visual Studio 2005 or 3) add the location of the component to the system path if it is installed elsewhere. [C:\koel\node_modules\node-sass\build\binding.sln]
Done Building Project "C:\koel\node_modules\node-sass\build\binding.sln" (default targets) -- FAILED.
Build FAILED.
"C:\koel\node_modules\node-sass\build\binding.sln" (default target) (1) ->
(src\libsass target) ->
MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visual Studio 2005 or 3) add the location of the component to the system path if it is installed elsewhere. [C:\koel\node_modules\node-sass\build\binding.sln]
Time Elapsed 00:00:00.18
gyp ERR! build error
gyp ERR! stack Error:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exefailed with exit code: 1gyp ERR! stack at ChildProcess.onExit (C:\koel\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:238:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\koel\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd C:\koel\node_modules\node-sass
gyp ERR! node -v v10.8.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
@poofyteddy commented on GitHub (Oct 25, 2018):
Same here but on debian9, I'm not good enough in node to find if i'm missing a dep or something
Any lead ?
Edit:
Weirdly enought, if i :
The server seam to work. But the compilation still failed. I will need to test a bit more to see if it's stable enough for home testing
@fschlaef commented on GitHub (Nov 29, 2018):
I figured out the solution to this : it's a dependacy incompatiblity.
Apparently, the version of node-gyp used by laravel-mix (3.3.1) is incompatible with Node 10.
In the following files :
package.jsonThe following might not exist
node_modules/laravel-mix/node_modules/node-sass/package.jsonnode_modules/node-sass/package.jsonReplace
"node-gyp": "^3.3.1",by"node-gyp": "^3.8.0",And it should work fine.