Makeblock-official / mBlock

base on scratch offline v2.0 by MIT, Learn more from Makeblock official website
http://www.makeblock.com
GNU General Public License v2.0
319 stars 228 forks source link

Failed at the bluetooth-serial-port@2.2.7 install script #90

Open Hossein72T opened 3 years ago

Hossein72T commented 3 years ago

Hi, I cloned the project and I followed your installation concept but I stuck at npm install, it occurs an error about bluetooth-serial-port

check all error below:

win_delay_load_hook.cc BluetoothSerialPortServer.vcxproj -> D:\mBlock-master\node_modules\bluetooth-serial-port\build\Release\BluetoothSeri alPortServer.node gyp ERR! build error gyp ERR! stack Error: D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\Users\Hossein72T\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23) gyp ERR! stack at ChildProcess.emit (node:events:376:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:284:12) gyp ERR! System Windows_NT 10.0.19042 gyp ERR! command "D:\Program Files\nodejs\node.exe" "C:\Users\Hossein72T\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "build" gyp ERR! cwd D:\mBlock-master\node_modules\bluetooth-serial-port gyp ERR! node -v v15.4.0 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok npm WARN optional SKIPPING OPTIONAL DEPENDENCY: 7zip-bin-linux@~1.3.1 (node_modules\7zip-bin\node_modules\7zip-bin-linux): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 7zip-bin-linux@1.3.1: wanted {"os":"linux","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: 7zip-bin-mac@~1.0.1 (node_modules\7zip-bin\node_modules\7zip-bin-mac): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 7zip-bin-mac@1.0.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm WARN mBlock@4.0.0 license should be a valid SPDX license expression

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! bluetooth-serial-port@2.2.7 install: node-gyp configure build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the bluetooth-serial-port@2.2.7 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Hossein72T\AppData\Roaming\npm-cache_logs\2020-12-19T09_33_51_342Z-debug.log

I need to solve it, please help thx.