راکت

مشکل نصب sqlite3 برای الکترون

4 پاسخ

سلام
طبق ویدئوی آموزشی مراحل نصب python2.7 و visual build tools رو انجام دادم الان در آخرین مرحله برای دستور زیر :

npm install sqlite3 --build-from-source --runtime=electron --target=3.0.4 --dist-url=https://atom.io/download/electron

ارور زیر رو در حالت Run as Admin میده :

C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets(67,5): error MSB8020: The build tools for v140 (Platform Toolset = 'v140') cannot be foun
d. To build using the v140 build tools, please install v140 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then 
selecting "Retarget solution". [D:\dev\project\electron\Sample\node_modules\sqlite3\build\deps\action_before_build.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack     at emitTwo (events.js:125:13)
gyp ERR! stack     at ChildProcess.emit (events.js:213:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "build" "--fallback-to-build" "--module=D:\\dev\\project\\electro
n\\Sample\\node_modules\\sqlite3\\lib\\binding\\electron-v3.0-win32-x64\\node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=D:\\dev\\project\\electron\\Sample\\node_modules\\sqlite3\\lib\\binding\\
electron-v3.0-win32-x64" "--napi_version=1" "--node_abi_napi=napi"
ثبت پرسش جدید

پاسخ‌ها

4
vahid Mohammadi
vahid Mohammadi
@viva.mohammadi

@MACTAVISH13741374
فولدر .node-gyp را پاک کنید و npm update را اجرا کنید

مجتبی محمودمقدم
مجتبی محمودمقدم
@mojmm

تخصص: برنامه نویسی اندروید و وب

@viva.mohammadi عزیز , از پاسخگویی تون متشکرم اما متاسفانه همون ارور قبلی پابرجاست

شاید پاسخ شما همین‌جا باشد

vahid Mohammadi
vahid Mohammadi
@viva.mohammadi

@mojmm

شما msbuild tools رو نصب کردید؟
اگر نه لطفا در لینک زیر ابتدا باید اونو نصب کنید:

http://landinghub.visualstudio.com/visual-cpp-build-tools
مجتبی محمودمقدم
مجتبی محمودمقدم
@mojmm

تخصص: برنامه نویسی اندروید و وب

این لینک ارور 404 میده

برای ارسال پاسخ لازم است وارد شده یا ثبت‌نام کنید

ورود یا ثبت‌نام