我一直在做很多研究,但在这里空无一人。这是一个很长的丑陋的IMO。我绝对可以浏览并成功下载错误中首次引用的tar.gz。我所有其他的NPM安装都运行良好。我不是SQLite3的忠实拥护者,但是我有一个项目正在研究,因此我需要为一些同事进行演示。任何帮助获得此安装将不胜感激。


  sqlite3@3.1.6安装C:\ WS \ linked10 \ linkedout \ node_modules \ sqlite3
  节点预gyp安装-回退构建
  
  节点预石膏错误!尝试下载:
  https://mapbox-node-binary.s3.amazonaws.com
  /sqlite3/v3.1.6/node-v48-win32-x64.tar.gz node-gyp ERR!预建
  找不到sqlite3@3.1.6和node@6.7.0的二进制文件(node-v48 ABI)
  (回退到使用node-gyp进行源编译)
  
  C:\ WS \ linked10 \ linkedout \ node_modules \ sqlite3>(如果未定义)
  npm_config_node_gyp(节点“ C:\ Program
  文件\ nodejs \ node_modules \ npm \ bin \ node-gyp-bin \ .... \ node_mo
  dules \ node-gyp \ bin \ node-gyp.js“ clean)else(节点”“ clean)
  
  C:\ WS \ linked10 \ linkedout \ node_modules \ sqlite3>(如果未定义)
  npm_config_node_gyp(节点“ C:\ Program
  文件\ nodejs \ node_modules \ npm \ bin \ node-gyp-bin \ .... \ node_mo
  dules \ node-gyp \ bin \ node-gyp.js“配置--fallback-to-build
  --module = C:\ WS \ lin ked10 \ linkedout \ node_modules \ sqlite3 \ lib \ binding \ node-v48-win32-x64 \ node_sqlite3
  .node --module_name = node_sqlite3
  --module_path = C:\ WS \ linked10 \ linkedout \ node_mod ules \ sqlite3 \ lib \ binding \ node-v48-win32-x64),否则(节点“”配置
  --fallbac k-to-build --module = C:\ WS \ linked10 \ linkedout \ node_modules \ sqlite3 \ lib \ binding \ no de-v48-win32-x64 \ node_sqlite3.node --module_name = node_sqlite3
  --module_path = C:\ W S \ linked10 \ linkedout \ node_modules \ sqlite3 \ lib \ binding \ node-v48-win32-x64
  )gyp ERR!配置错误gyp ERR!堆栈错误:找不到Python
  可执行文件“ python”,则可以设置PYT HON env变量。糟糕!
  在failNoPython(C:\ Program
  文件\ nodejs \ node_modules \ npm \ nod
  e_modules \ node-gyp \ lib \ configure.js:401:14)gyp ERR!堆叠在
  C:\ Program Files \ nodejs \ node_modules \ npm \ node_modules \ node
  -gyp \ lib \ configure.js:356:11 gyp错误!堆栈在FSReqWrap.oncomplete(fs.js:123:15)gyp ERR!系统Windows_NT
  6.1.7601 gyp错误!命令“ C:\ Program Files \ nodejs \ node.exe”“ C:\ Program Files \ nodej
  s \ node_modules \ npm \ node_modules \ node-gyp \ bin \ node-gyp.js“
  “配置”“ --f allback-to-build”
  “ --module = C:\ WS \ linked10 \ linkedout \ node_modules \ sqlite3 \
  lib \ binding \ node-v48-win32-x64 \ node_sqlite3.node“
  “ --module_name = node_sqlite3”
  “ --module_path = C:\ WS \ linked10 \ linkedout \ node_modules \ sqlite3 \ lib \ bindin
  g \ node-v48-win32-x64“ gyp错误!cwd
  C:\ WS \ linked10 \ linkedout \ node_modules \ sqlite3 gyp错误!节点-v v6.7.0
  糟糕! node-gyp -v v3.3.1 gyp错误!节点pre-gyp ERR错误!建立
  错误节点预石膏错误!堆栈错误:无法执行'node-gyp.cmd
  配置--fallb确认构建
  --module = C:\ WS \ linked10 \ linkedout \ node_modules \ sqlite3 \ lib \ binding \ node-v48-win32-x64 \ node_sqlite3.node --module_name = node_sqlite3
  --module_path = C:\ WS \ linked10 \ linkedout \ node_modules \ sqlite3 \ lib \ binding \ node-v48-win32-x64'
  (1)节点预石膏ERR!堆栈在ChildProcess上。
  (C:\ WS \ linked10 \ linkedou
  t \ node_modules \ sqlite3 \ node_modules \ node-pre-gyp \ lib \ util \ compile.js:83:29)
  节点预石膏错误!堆叠在generateTwo(events.js:106:13)node-pre-gyp
  呃!堆栈在ChildProcess.emit(events.js:191:7)node-pre-gyp
  呃!在也许关闭处堆叠(internal / child_process.js:877:16)
  节点预石膏错误!堆栈位于Process.ChildProcess._handle.onexit
  (内部/ chi ld_process.js:226:5)节点预gyp错误!系统Windows_NT
  6.1.7601节点预石膏ERR!命令“ C:\ Program Files \ nodejs \ node.exe”“ C:\ WS \ linked1
  0 \ linkedout \ node_modules \ sqlite3 \ node_modules \ node-pre-gyp \ bin \ node-pre-g
  yp“”安装“” --fallback-to-build“节点预gyp ERR!cwd
  C:\ WS \ linked10 \ linkedout \ node_modules \ sqlite3节点预石膏ERR!节点
  -v v6.7.0 node-gyp ERR错误!节点预石膏-v v0.6.30节点预石膏ERR!不好

最佳答案

由于没有预构建的二进制文件,因此节点尝试从源代码进行构建。
您的错误:

错误:找不到Python可执行文件“ python”,您可以设置PYT HON env变量。

阅读此模块的安装说明:https://github.com/nodejs/node-gyp

07-24 18:19
查看更多