Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yarn build failed - Development documentation #35

Open
dinbtechit opened this issue Sep 13, 2021 · 0 comments
Open

Yarn build failed - Development documentation #35

dinbtechit opened this issue Sep 13, 2021 · 0 comments

Comments

@dinbtechit
Copy link

I was going to add some features for angular konva such as grouping and upgrading to the latest version of Angular 12.2.20.

but unable to build the project using yarn or npm. Are you able to add some documentation for contributors?

yarn install
/usr/bin/node /usr/lib/node_modules/yarn/bin/yarn.js install
yarn install v1.22.11
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/5] Validating package.json...
[2/5] Resolving packages...
warning @angular-devkit/build-angular > html-webpack-plugin@3.2.0: 3.x is no longer supported
warning @angular-devkit/build-angular > istanbul@0.4.5: This module is no longer maintained, try this instead:
  npm i nyc
Visit https://istanbul.js.org/integrations for other alternatives.
warning @angular-devkit/build-angular > @angular-devkit/core > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
warning @angular-devkit/build-angular > webpack-dev-server > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
warning @angular-devkit/build-angular > node-sass > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
warning @angular-devkit/build-angular > node-sass > node-gyp > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
warning @angular-devkit/build-angular > @angular-devkit/core > chokidar > fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
warning @angular-devkit/build-angular > webpack-dev-server > sockjs > uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
warning @angular-devkit/build-angular > node-sass > request > uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
warning @angular-devkit/build-angular > webpack-dev-middleware > webpack-log > uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
warning @angular-devkit/build-angular > node-sass > request > har-validator@5.1.5: this library is no longer supported
warning @angular/cli > @schematics/update > npm-registry-client > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
warning core-js@2.6.12: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
warning rollup-plugin-node-resolve@3.4.0: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-node-resolve.
[3/5] Fetching packages...
warning mini-css-extract-plugin@0.4.5: Invalid bin field for "mini-css-extract-plugin".
warning url-loader@1.1.2: Invalid bin field for "url-loader".
info fsevents@1.2.4: The platform "linux" is incompatible with this module.
info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.2.13: The platform "linux" is incompatible with this module.
info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.1.3: The platform "linux" is incompatible with this module.
info "fsevents@1.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
warning "@angular-devkit/build-angular > @ngtools/webpack@6.0.8" has incorrect peer dependency "typescript@~2.4.0 || ~2.5.0 || ~2.6.0 || ~2.7.0".
warning " > @angular/compiler-cli@6.0.6" has incorrect peer dependency "typescript@>=2.7.2 <2.8".
warning "@angular/compiler-cli > tsickle@0.29.0" has incorrect peer dependency "typescript@>=2.4.2 <2.9".
warning " > ng-packagr@3.0.3" has unmet peer dependency "tsickle@>=0.27.3".
warning " > url-loader@0.6.2" has unmet peer dependency "file-loader@*".
[5/5] Building fresh packages...
[1/4] ⢀ node-sass
[-/4] ⢀ waiting...
[-/4] ⢀ waiting...
error /u1/code/personal/ng2-konva/node_modules/node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments: 
Directory: /u1/code/personal/ng2-konva/node_modules/node-sass
Output:
Building: /usr/bin/node /u1/code/personal/ng2-konva/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 [
gyp verb cli   '/usr/bin/node',
gyp verb cli   '/u1/code/personal/ng2-konva/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 verb cli ]
gyp info using node-gyp@3.6.2
gyp info using node@16.9.1 | linux | 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 `which` succeeded python2 /usr/bin/python2
gyp verb check python version `/usr/bin/python2 -c "import platform; print(platform.python_version());"` returned: "2.7.18\n"
gyp verb get node dir no --target version specified, falling back to host node version: 16.9.1
gyp verb command install [ '16.9.1' ]
gyp verb install input version string "16.9.1"
gyp verb install installing version: 16.9.1
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: 16.9.1
gyp verb build dir attempting to create "build" dir: /u1/code/personal/ng2-konva/node_modules/node-sass/build
gyp verb build dir "build" dir needed to be created? /u1/code/personal/ng2-konva/node_modules/node-sass/build
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: /u1/code/personal/ng2-konva/node_modules/node-sass/build/config.gypi
(node:7560) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
(Use `node --trace-deprecation ...` to show where the warning was created)
gyp verb config.gypi checking for gypi file: /u1/code/personal/ng2-konva/node_modules/node-sass/config.gypi
gyp verb common.gypi checking for gypi file: /u1/code/personal/ng2-konva/node_modules/node-sass/common.gypi
gyp verb gyp gyp format was not specified; forcing "make"
gyp info spawn /usr/bin/python2
gyp info spawn args [
gyp info spawn args   '/u1/code/personal/ng2-konva/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/u1/code/personal/ng2-konva/node_modules/node-sass/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/u1/code/personal/ng2-konva/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/dinesh/.node-gyp/16.9.1/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/home/dinesh/.node-gyp/16.9.1',
gyp info spawn args   '-Dnode_gyp_dir=/u1/code/personal/ng2-konva/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/home/dinesh/.node-gyp/16.9.1/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/u1/code/personal/ng2-konva/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   'build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp verb command build []
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir /home/dinesh/.node-gyp/16.9.1
gyp ERR! build error 
gyp ERR! stack Error: not found: make
gyp ERR! stack     at getNotFoundError (/u1/code/personal/ng2-konva/node_modules/which/which.js:13:12)
gyp ERR! stack     at F (/u1/code/personal/ng2-konva/node_modules/which/which.js:68:19)
gyp ERR! stack     at E (/u1/code/personal/ng2-konva/node_modules/which/which.js:80:29)
gyp ERR! stack     at /u1/code/personal/ng2-konva/node_modules/which/which.js:89:16
gyp ERR! stack     at /u1/code/personal/ng2-konva/node_modules/isexe/index.js:42:5
gyp ERR! stack     at /u1/code/personal/ng2-konva/node_modules/isexe/mode.js:8:5
gyp ERR! stack     at FSReqCallback.oncomplete (node:fs:198:21)
gyp ERR! System Linux 5.11.0-34-generic
gyp ERR! command "/usr/bin/node" "/u1/code/personal/ng2-konva/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /u1/code/personal/ng2-konva/node_modules/node-sass
gyp ERR! node -v v16.9.1
gyp ERR! node-gyp -v v3.6.2



warning Error running install script for optional dependency: "/u1/code/personal/ng2-konva/node_modules/@angular-devkit/build-angular/node_modules/node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments: 
Directory: /u1/code/personal/ng2-konva/node_modules/@angular-devkit/build-angular/node_modules/node-sass
Output:
Building: /usr/bin/node /u1/code/personal/ng2-konva/node_modules/@angular-devkit/build-angular/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 [
gyp verb cli   '/usr/bin/node',
gyp verb cli   '/u1/code/personal/ng2-konva/node_modules/@angular-devkit/build-angular/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 verb cli ]
gyp info using node-gyp@3.8.0
gyp info using node@16.9.1 | linux | 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 `which` succeeded python2 /usr/bin/python2
gyp verb check python version `/usr/bin/python2 -c \"import sys; print \"2.7.18
gyp verb check python version .%s.%s\" % sys.version_info[:3];\"` returned: %j
gyp verb get node dir no --target version specified, falling back to host node version: 16.9.1
gyp verb command install [ '16.9.1' ]
gyp verb install input version string \"16.9.1\"
gyp verb install installing version: 16.9.1
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: 16.9.1
gyp verb build dir attempting to create \"build\" dir: /u1/code/personal/ng2-konva/node_modules/@angular-devkit/build-angular/node_modules/node-sass/build
gyp verb build dir \"build\" dir needed to be created? /u1/code/personal/ng2-konva/node_modules/@angular-devkit/build-angular/node_modules/node-sass/build
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: /u1/code/personal/ng2-konva/node_modules/@angular-devkit/build-angular/node_modules/node-sass/build/config.gypi
(node:7567) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
(Use `node --trace-deprecation ...` to show where the warning was created)
gyp verb config.gypi checking for gypi file: /u1/code/personal/ng2-konva/node_modules/@angular-devkit/build-angular/node_modules/node-sass/config.gypi
gyp verb common.gypi checking for gypi file: /u1/code/personal/ng2-konva/node_modules/@angular-devkit/build-angular/node_modules/node-sass/common.gypi
gyp verb gyp gyp format was not specified; forcing \"make\"
gyp info spawn /usr/bin/python2
gyp info spawn args [
gyp info spawn args   '/u1/code/personal/ng2-konva/node_modules/@angular-devkit/build-angular/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/u1/code/personal/ng2-konva/node_modules/@angular-devkit/build-angular/node_modules/node-sass/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/u1/code/personal/ng2-konva/node_modules/@angular-devkit/build-angular/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/dinesh/.node-gyp/16.9.1/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/home/dinesh/.node-gyp/16.9.1',
gyp info spawn args   '-Dnode_gyp_dir=/u1/code/personal/ng2-konva/node_modules/@angular-devkit/build-angular/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/home/dinesh/.node-gyp/16.9.1/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/u1/code/personal/ng2-konva/node_modules/@angular-devkit/build-angular/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   'build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp verb command build []
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir /home/dinesh/.node-gyp/16.9.1
gyp ERR! build error 
gyp ERR! stack Error: not found: make
gyp ERR! stack     at getNotFoundError (/u1/code/personal/ng2-konva/node_modules/which/which.js:13:12)
gyp ERR! stack     at F (/u1/code/personal/ng2-konva/node_modules/which/which.js:68:19)
gyp ERR! stack     at E (/u1/code/personal/ng2-konva/node_modules/which/which.js:80:29)
gyp ERR! stack     at /u1/code/personal/ng2-konva/node_modules/which/which.js:89:16
gyp ERR! stack     at /u1/code/personal/ng2-konva/node_modules/isexe/index.js:42:5
gyp ERR! stack     at /u1/code/personal/ng2-konva/node_modules/isexe/mode.js:8:5
gyp ERR! stack     at FSReqCallback.oncomplete (node:fs:198:21)
gyp ERR! System Linux 5.11.0-34-generic
gyp ERR! command \"/usr/bin/node\" \"/u1/code/personal/ng2-konva/node_modules/@angular-devkit/build-angular/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\" \"--verbose\" \"--libsass_ext=\" \"--libsass_cflags=\" \"--libsass_ldflags=\" \"--libsass_library=\"
gyp ERR! cwd /u1/code/personal/ng2-konva/node_modules/@angular-devkit/build-angular/node_modules/node-sass
gyp ERR! node -v v16.9.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
Build failed with error code: 1"
info This module is OPTIONAL, you can safely ignore this error

Process finished with exit code 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant