jingsam / foxgis-server-lite

一款简单易用的矢量瓦片地图服务软件
https://jingsam.github.io/foxgis-server-lite/#/
MIT License
179 stars 51 forks source link

yarn命令执行失败? #93

Open utmcontent opened 3 years ago

utmcontent commented 3 years ago

我在两台机器上都克隆了完整仓库 安装了 yarn 然后尝试执行yarn命令 win10系统显示

gyp info it worked if it ends with ok gyp info using node-gyp@5.1.0 gyp info using node@14.15.1 | win32 | x64 gyp info find Python using Python version 3.9.0 found at "C:\Python39\python.exe" gyp http GET https://nodejs.org/download/release/v14.15.1/node-v14.15.1-headers.tar.gz gyp WARN install got an error, rolling back install gyp ERR! configure error gyp ERR! stack Error: connect ETIMEDOUT 104.20.22.46:443 gyp ERR! stack at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1146:16) gyp ERR! System Windows_NT 10.0.18363 gyp ERR! command "W:\xx_zd\node\node.exe" "W:\xx_zd\node\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--module=W:\cl\foxgis-server-lite\node_modules\sqlite3\lib\binding\node-v83-win32-x64\node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=W:\cl\foxgis-server-lite\node_modules\sqlite3\lib\binding\node-v83-win32-x64" "--napi_version=7" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v83" gyp ERR! cwd W:\cl\foxgis-server-lite\node_modules\sqlite3 gyp ERR! node -v v14.15.1 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp.cmd configure --fallback-to-build --module=W:\cl\foxgis-server-lite\node_modules\sqlite3\lib\binding\node-v83-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=W:\cl\foxgis-server-lite\node_modules\sqlite3\lib\binding\node-v83-win32-x64 --napi_version=7 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1) node-pre-gyp ERR! stack at ChildProcess. (W:\cl\foxgis-server-lite\node_modules\node-pre-gyp\lib\util\compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:315:20) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1048:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5) node-pre-gyp ERR! System Windows_NT 10.0.18363 node-pre-gyp ERR! command "W:\xx_zd\node\node.exe" "W:\cl\foxgis-server-lite\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd W:\cl\foxgis-server-lite\node_modules\sqlite3 node-pre-gyp ERR! node -v v14.15.1 node-pre-gyp ERR! node-pre-gyp -v v0.11.0 node-pre-gyp ERR! not ok Failed to execute 'node-gyp.cmd configure --fallback-to-build --module=W:\cl\foxgis-server-lite\node_module

ubuntu显示

00h00m00s 0/0: : ERROR: [Errno 21] Is a directory: 'test'

请问应该怎么做?

jingsam commented 3 years ago

node_sqlite3.node这个二进制扩展是放到aws上的,得翻墙才能下载,另外文档中有打包好的安装包。

utmcontent commented 3 years ago

node_sqlite3.node这个二进制扩展是放到aws上的,得翻墙才能下载,另外文档中有打包好的安装包。

我是用安装好的安装包,在命令行运行好像也没效果

for目录_1 这里应该怎么做 直接在命令行输入 foxgis-server-lite-win.exe吗?我输入直接没反应结束,也没法打开http://localhost:1234/api

jingsam commented 3 years ago

切换到当前目录下,命令行执行foxgis-server-lite-win, 看到Listening on 1234就表示启动了

utmcontent commented 3 years ago

切换到当前目录下,命令行执行foxgis-server-lite-win, 看到Listening on 1234就表示启动了

symbol_convert_issue

没有反应 感觉是有什么设置不对吧

jingsam commented 3 years ago

在cmd里面执行试试

utmcontent commented 3 years ago

在cmd里面执行试试

刚试了,一样的反应啊

xupeng-faker commented 3 years ago

也是 exe 执行毫无反应

dadingjianhui commented 3 years ago

pkg/prelude/bootstrap.js:1614 throw error; ^

Error: EISDIR: illegal operation on a directory, read at error_EISDIR (pkg/prelude/bootstrap.js:553:17) at readFileFromSnapshot (pkg/prelude/bootstrap.js:894:33) at Object.readFileSync (pkg/prelude/bootstrap.js:938:18) at Object.Module._extensions..js (internal/modules/cjs/loader.js:786:20) at Module.load (internal/modules/cjs/loader.js:651:32) at tryModuleLoad (internal/modules/cjs/loader.js:591:12) at Function.Module._load (internal/modules/cjs/loader.js:583:3) at Module.require (internal/modules/cjs/loader.js:690:17) at Module.require (pkg/prelude/bootstrap.js:1593:31) at require (internal/modules/cjs/helpers.js:25:18) at Object. (/snapshot/foxgis-server-lite/node_modules/sqlite3/lib/sqlite3-binding.js:4:15) at Module._compile (pkg/prelude/bootstrap.js:1686:22) at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10) at Module.load (internal/modules/cjs/loader.js:651:32) at tryModuleLoad (internal/modules/cjs/loader.js:591:12) at Function.Module._load (internal/modules/cjs/loader.js:583:3)

执行完./foxgis-server-lite-linux这个命令后 就报了这个

jingsam commented 3 years ago

我已经重新更新了一个版本,请重新下载试试