tensorflow / tfjs

A WebGL accelerated JavaScript library for training and deploying ML models.
https://js.tensorflow.org
Apache License 2.0
18.46k stars 1.92k forks source link

help!!! #7902

Closed kaopod99999 closed 1 year ago

kaopod99999 commented 1 year ago

owpodsocute@MacBook-Air-khxng-phuwit education % npm install npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated npm WARN deprecated plugin-log@0.1.0: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated npm WARN deprecated gulp-open@3.0.1: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5 npm WARN deprecated fsevents@1.2.13: The v1 package contains DANGEROUS / INSECURE binaries. Upgrade to safe fsevents v2 npm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies npm WARN deprecated 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. npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap. npm ERR! code 1 npm ERR! path /Applications/XAMPP/xamppfiles/htdocs/education/node_modules/node-sass npm ERR! command failed npm ERR! command sh -c node scripts/build.js npm ERR! Building: /opt/homebrew/Cellar/node/20.5.1/bin/node /Applications/XAMPP/xamppfiles/htdocs/education/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library= npm ERR! gyp info it worked if it ends with ok npm ERR! gyp verb cli [ npm ERR! gyp verb cli '/opt/homebrew/Cellar/node/20.5.1/bin/node', npm ERR! gyp verb cli '/Applications/XAMPP/xamppfiles/htdocs/education/node_modules/node-gyp/bin/node-gyp.js', npm ERR! gyp verb cli 'rebuild', npm ERR! gyp verb cli '--verbose', npm ERR! gyp verb cli '--libsass_ext=', npm ERR! gyp verb cli '--libsass_cflags=', npm ERR! gyp verb cli '--libsass_ldflags=', npm ERR! gyp verb cli '--libsass_library=' npm ERR! gyp verb cli ] npm ERR! gyp info using node-gyp@3.8.0 npm ERR! gyp info using node@20.5.1 | darwin | arm64 npm ERR! gyp verb command rebuild [] npm ERR! gyp verb command clean [] npm ERR! gyp verb clean removing "build" directory npm ERR! gyp verb command configure [] npm ERR! gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR npm ERR! gyp verb download using dist-url https://nodejs.org/dist npm ERR! gyp verb check python checking for Python executable "python2" in the PATH npm ERR! gyp verb which succeeded python2 /Library/Frameworks/Python.framework/Versions/2.7/bin/python2 npm ERR! gyp verb check python version /Library/Frameworks/Python.framework/Versions/2.7/bin/python2 -c "import sys; print "2.7.18 npm ERR! gyp verb check python version .%s.%s" % sys.version_info[:3];" returned: %j npm ERR! gyp verb get node dir no --target version specified, falling back to host node version: 20.5.1 npm ERR! gyp verb command install [ '20.5.1' ] npm ERR! gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR npm ERR! gyp verb download using dist-url https://nodejs.org/dist npm ERR! gyp verb install input version string "20.5.1" npm ERR! gyp verb install installing version: 20.5.1 npm ERR! gyp verb install --ensure was passed, so won't reinstall if already installed npm ERR! gyp verb install version is already installed, need to check "installVersion" npm ERR! gyp verb got "installVersion" 9 npm ERR! gyp verb needs "installVersion" 9 npm ERR! gyp verb install version is good npm ERR! gyp verb get node dir target node version installed: 20.5.1 npm ERR! gyp verb build dir attempting to create "build" dir: /Applications/XAMPP/xamppfiles/htdocs/education/node_modules/node-sass/build npm ERR! gyp verb build dir "build" dir needed to be created? /Applications/XAMPP/xamppfiles/htdocs/education/node_modules/node-sass/build npm ERR! gyp verb build/config.gypi creating config file npm ERR! gyp verb build/config.gypi writing out config file: /Applications/XAMPP/xamppfiles/htdocs/education/node_modules/node-sass/build/config.gypi npm ERR! gyp verb config.gypi checking for gypi file: /Applications/XAMPP/xamppfiles/htdocs/education/node_modules/node-sass/config.gypi npm ERR! gyp verb common.gypi checking for gypi file: /Applications/XAMPP/xamppfiles/htdocs/education/node_modules/node-sass/common.gypi npm ERR! gyp verb gyp gyp format was not specified; forcing "make" npm ERR! gyp info spawn /Library/Frameworks/Python.framework/Versions/2.7/bin/python2 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/Applications/XAMPP/xamppfiles/htdocs/education/node_modules/node-gyp/gyp/gyp_main.py', npm ERR! gyp info spawn args 'binding.gyp', npm ERR! gyp info spawn args '-f', npm ERR! gyp info spawn args 'make', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/Applications/XAMPP/xamppfiles/htdocs/education/node_modules/node-sass/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/Applications/XAMPP/xamppfiles/htdocs/education/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/Users/jowpodsocute/.node-gyp/20.5.1/include/node/common.gypi', npm ERR! gyp info spawn args '-Dlibrary=shared_library', npm ERR! gyp info spawn args '-Dvisibility=default', npm ERR! gyp info spawn args '-Dnode_root_dir=/Users/jowpodsocute/.node-gyp/20.5.1', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/Applications/XAMPP/xamppfiles/htdocs/education/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/Users/jowpodsocute/.node-gyp/20.5.1/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/Applications/XAMPP/xamppfiles/htdocs/education/node_modules/node-sass', npm ERR! gyp info spawn args '-Dnode_engine=v8', npm ERR! gyp info spawn args '--depth=.', npm ERR! gyp info spawn args '--no-parallel', npm ERR! gyp info spawn args '--generator-output', npm ERR! gyp info spawn args 'build', npm ERR! gyp info spawn args '-Goutput_dir=.' npm ERR! gyp info spawn args ] npm ERR! Traceback (most recent call last): npm ERR! File "/Applications/XAMPP/xamppfiles/htdocs/education/node_modules/node-gyp/gyp/gyp_main.py", line 16, in npm ERR! sys.exit(gyp.script_main()) npm ERR! File "/Applications/XAMPP/xamppfiles/htdocs/education/node_modules/node-gyp/gyp/pylib/gyp/init.py", line 545, in script_main npm ERR! return main(sys.argv[1:]) npm ERR! File "/Applications/XAMPP/xamppfiles/htdocs/education/node_modules/node-gyp/gyp/pylib/gyp/init.py", line 538, in main npm ERR! return gyp_main(args) npm ERR! File "/Applications/XAMPP/xamppfiles/htdocs/education/node_modules/node-gyp/gyp/pylib/gyp/init.py", line 514, in gyp_main npm ERR! options.duplicate_basename_check) npm ERR! File "/Applications/XAMPP/xamppfiles/htdocs/education/node_modules/node-gyp/gyp/pylib/gyp/init.py", line 130, in Load npm ERR! params['parallel'], params['root_targets']) npm ERR! File "/Applications/XAMPP/xamppfiles/htdocs/education/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 2783, in Load npm ERR! variables, includes, depth, check, True) npm ERR! File "/Applications/XAMPP/xamppfiles/htdocs/education/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 399, in LoadTargetBuildFile npm ERR! includes, True, check) npm ERR! File "/Applications/XAMPP/xamppfiles/htdocs/education/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 271, in LoadOneBuildFile npm ERR! aux_data, includes, check) npm ERR! File "/Applications/XAMPP/xamppfiles/htdocs/education/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 308, in LoadBuildFileIncludesIntoDict npm ERR! LoadOneBuildFile(include, data, aux_data, None, False, check), npm ERR! File "/Applications/XAMPP/xamppfiles/htdocs/education/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 251, in LoadOneBuildFile npm ERR! None) npm ERR! File "/Users/jowpodsocute/.node-gyp/20.5.1/include/node/common.gypi", line 1 npm ERR! nerate ', npm ERR! ^ npm ERR! SyntaxError: EOL while scanning string literal npm ERR! gyp ERR! configure error npm ERR! gyp ERR! stack Error: gyp failed with exit code: 1 npm ERR! gyp ERR! stack at ChildProcess.onCpExit (/Applications/XAMPP/xamppfiles/htdocs/education/node_modules/node-gyp/lib/configure.js:345:16) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:514:28) npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12) npm ERR! gyp ERR! System Darwin 22.5.0 npm ERR! gyp ERR! command "/opt/homebrew/Cellar/node/20.5.1/bin/node" "/Applications/XAMPP/xamppfiles/htdocs/education/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" npm ERR! gyp ERR! cwd /Applications/XAMPP/xamppfiles/htdocs/education/node_modules/node-sass npm ERR! gyp ERR! node -v v20.5.1 npm ERR! gyp ERR! node-gyp -v v3.8.0 npm ERR! gyp ERR! not ok npm ERR! Build failed with error code: 1

npm ERR! A complete log of this run can be found in: /Users/jowpodsocute/.npm/_logs/2023-08-11T09_58_30_099Z-debug-0.log

gaikwadrahul8 commented 1 year ago

Hi, @kaopod99999

Thank you for bringing this issue to our attention and I hope you're following this official documentation as per your OS and could you please try to install node-gyp globally by using this command npm install -g node-gyp

Please try to install this version of @tensorflow/tfjs-node@3.1.0 by using this command npm install --save-exact @tensorflow/tfjs-node@3.1.0 if you're using the windows machine only

You can refer similar issue https://github.com/tensorflow/tfjs/issues/7881 for Windows machine which may help you to solve your issue

It seems like you're trying to install dependancies from package.json file for older packages so if possible could you please help us with package.json file for which you're trying npm installcommand to install all those package dependancies in your project and if you're referring any github project please share us link of that Github repo to replicate the same issue from our end ?

If issue still persists please let us know with below version information to dig more into your issue. Thank you!

Operating System:
Node.js: 
npm: 
Python: 
node-gyp:
github-actions[bot] commented 1 year ago

This issue has been marked stale because it has no recent activity since 7 days. It will be closed if no further activity occurs. Thank you.

google-ml-butler[bot] commented 1 year ago

Are you satisfied with the resolution of your issue? Yes No