• 18-05-2022, 14:00:30
    #1
    Merhabalar,
    Koleksiyon hazırlamak için yapılması gerekenleri biliyorsunuz.
    Benim sorunum "npm install" komutu sürekli hata veriyor hiç bir yerde çözüm bulamadım.
    Bilenler varsa yardım ederseniz sevinirim.
    Aldığım hata şu şekilde;

    PS C:UsersmodelistDesktopnft_test> npm install
    npm WARN old lockfile
    npm WARN old lockfile The package-lock.json file was created with an old version of npm,
    npm WARN old lockfile so supplemental metadata must be fetched from the registry.
    npm WARN old lockfile
    npm WARN old lockfile This is a one-time fix-up, please be patient...
    npm WARN old lockfile
    npm ERR! code 1
    npm ERR! path C:UsersmodelistDesktopnft_testnode_modulescanvas
    npm ERR! command failed
    npm ERR! command C:WINDOWSsystem32cmd.exe /d /s /c node-pre-gyp install --fallback-to-build
    npm ERR! Failed to execute 'C:Program Filesnodejsnode.exe C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js configure --fallback-to-build --module=C:UsersmodelistDesktopnft_testnode_modulesc anvasbuildReleasecanvas.node --module_name=canvas --module_path=C:UsersmodelistDesktopnft_testnode_mod ulescanvasbuildRelease --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v108' (1)
    npm ERR! node-pre-gyp info it worked if it ends with ok
    npm ERR! node-pre-gyp info using node-pre-gyp@1.0.6
    npm ERR! node-pre-gyp info using node@18.1.0 | win32 | x64
    npm ERR! node-pre-gyp info check checked for "C:UsersmodelistDesktopnft_testnode_modulescanvasb uildReleasecanvas.node" (not found)
    npm ERR! node-pre-gyp http GET https://github.com/Automattic/node-c...own-x64.tar.gz
    npm ERR! node-pre-gyp ERR! install response status 404 Not Found on https://github.com/Automattic/node-c...own-x64.tar.gz
    npm ERR! node-pre-gyp WARN Pre-built binaries not installable for canvas@2.8.0 and node@18.1.0 (node-v108 ABI, unknown) (falling back to source compile with node-gyp)
    npm ERR! node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/Automattic/node-c...own-x64.tar.gz
    npm ERR! gyp info it worked if it ends with ok
    npm ERR! gyp info using node-gyp@9.0.0
    npm ERR! gyp info using node@18.1.0 | win32 | x64
    npm ERR! gyp info ok
    npm ERR! gyp info it worked if it ends with ok
    npm ERR! gyp info using node-gyp@9.0.0
    npm ERR! gyp info using node@18.1.0 | win32 | x64
    npm ERR! gyp info find Python using Python version 3.10.4 found at "C:Python310python.exe"
    npm ERR! gyp ERR! find VS
    npm ERR! gyp ERR! find VS msvs_version not set from command line or npm config
    npm ERR! gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
    npm ERR! gyp ERR! find VS checking VS2019 (16.11.32428.217) found at:
    npm ERR! gyp ERR! find VS "C:Program Files (x86)Microsoft Visual Studio2019BuildTools"
    npm ERR! gyp ERR! find VS - found "Visual Studio C++ core features"
    npm ERR! gyp ERR! find VS - found VC++ toolset: v142
    npm ERR! gyp ERR! find VS - missing any Windows SDK
    npm ERR! gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use
    npm ERR! gyp ERR! find VS looking for Visual Studio 2015
    npm ERR! gyp ERR! find VS - not found
    npm ERR! gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
    npm ERR! gyp ERR! find VS
    npm ERR! gyp ERR! find VS ************************************************** ************
    npm ERR! gyp ERR! find VS You need to install the latest version of Visual Studio
    npm ERR! gyp ERR! find VS including the "Desktop development with C++" workload.
    npm ERR! gyp ERR! find VS For more information consult the documentation at:
    npm ERR! gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
    npm ERR! gyp ERR! find VS ************************************************** ************
    npm ERR! gyp ERR! find VS
    npm ERR! gyp ERR! configure error
    npm ERR! gyp ERR! stack Error: Could not find any Visual Studio installation to use
    npm ERR! gyp ERR! stack at VisualStudioFinder.fail (C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gyplibfind-visualstudio.js:122:47)
    npm ERR! gyp ERR! stack at C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gyplibfind-visualstudio.js:75:16
    npm ERR! gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gyplibfind-visualstudio.js:363:14)
    npm ERR! gyp ERR! stack at C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gyplibfind-visualstudio.js:71:14
    npm ERR! gyp ERR! stack at C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gyplibfind-visualstudio.js:384:16
    npm ERR! gyp ERR! stack at C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gyplibutil.js:54:7
    npm ERR! gyp ERR! stack at C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gyplibutil.js:33:16
    npm ERR! gyp ERR! stack at ChildProcess.exithandler (node:child_process:395:5)
    npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:527:28)
    npm ERR! gyp ERR! stack at maybeClose (node:internal/child_process:1090:16)
    npm ERR! gyp ERR! System Windows_NT 10.0.19043
    npm ERR! gyp ERR! command "C:Program Filesnodejsnode.exe" "C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js" "configure" "--fallback-to-build" "--module=C:UsersmodelistDesktopnft_testnode_modulesc anvasbuildReleasecanvas.node" "--module_name=canvas" "--module_path=C:UsersmodelistDesktopnft_testnode_mod ulescanvasbuildRelease" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v108"
    npm ERR! gyp ERR! cwd C:UsersmodelistDesktopnft_testnode_modulescanvas
    npm ERR! gyp ERR! node -v v18.1.0
    npm ERR! gyp ERR! node-gyp -v v9.0.0
    npm ERR! gyp ERR! not ok
    npm ERR! node-pre-gyp ERR! build error
    npm ERR! node-pre-gyp ERR! stack Error: Failed to execute 'C:Program Filesnodejsnode.exe C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js configure --fallback-to-build --module=C:UsersmodelistDesktopnft_testnode_modulesc anvasbuildReleasecanvas.node
    --module_name=canvas --module_path=C:UsersmodelistDesktopnft_testnode_mod ulescanvasbuildRelease --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v108'
    (1)
    npm ERR! node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:UsersmodelistDesktopnft_testnode_modules@mapbox node-pre-gyplibutilcompile.js:89:23)
    npm ERR! node-pre-gyp ERR! stack at ChildProcess.emit (node:events:527:28)
    npm ERR! node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1090:16)
    npm ERR! node-pre-gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:302:5)
    npm ERR! node-pre-gyp ERR! System Windows_NT 10.0.19043
    npm ERR! node-pre-gyp ERR! command "C:Program Filesnodejsnode.exe" "C:UsersmodelistDesktopnft_testnode_modules@mapbox node-pre-gypbinnode-pre-gyp" "install" "--fallback-to-build"
    npm ERR! node-pre-gyp ERR! cwd C:UsersmodelistDesktopnft_testnode_modulescanvas
    npm ERR! node-pre-gyp ERR! node -v v18.1.0
    npm ERR! node-pre-gyp ERR! node-pre-gyp -v v1.0.6
    npm ERR! node-pre-gyp ERR! not ok

    npm ERR! A complete log of this run can be found in:
    npm ERR! C:UsersmodelistAppDataLocalnpm-cache_logs2022-05-18T10_58_56_012Z-debug-0.logPS C:UsersmodelistDesktopnft_test>

    node_modules oluşturuyor sonra siliniyor.

    //Edit: Son sürümleri yüklü bilgisayarda.Win10
  • 18-05-2022, 14:03:34
    #2
    Visual Studio'yu bulamamış ve hata vermiş görünüyor.
  • 18-05-2022, 14:06:12
    #3
    FSahin adlı üyeden alıntı: mesajı görüntüle
    Visual Studio'yu bulamamış ve hata vermiş görünüyor.
    Nasıl çözebiliriz bir fikriniz var mıdır?
    Kodu zaten visual studio'dan çalıştırıyoruz bu arada.
  • 18-05-2022, 15:00:05
    #4
    birde -g ile global kurmaya çalış
  • 18-05-2022, 15:42:42
    #5
    BrsSoftware adlı üyeden alıntı: mesajı görüntüle
    birde -g ile global kurmaya çalış
    Maalesef işe yaramıyor. Bir türlü bulamadım çözümünü neredeyse uyumlu olan tüm sürümleri denedim.
  • 24-05-2022, 16:40:20
    #6
    https://stackoverflow.com/questions/...an-old-version

    Burada senin sorununa benzer bir sorun yaşayan kişiye bazı tavsiyelerde bulunmuşlar. Dilersen bir incele.
  • 24-05-2022, 18:18:25
    #7
    serserfan adlı üyeden alıntı: mesajı görüntüle
    https://stackoverflow.com/questions/...an-old-version

    Burada senin sorununa benzer bir sorun yaşayan kişiye bazı tavsiyelerde bulunmuşlar. Dilersen bir incele.
    Teşekkürler, sorun çözüldü gibi şimdilik npm yüklemesini tamamladım