Sql server msnodesql模块在编译期间出错
我只有两个主要要求。1.Azure SQL 2。Nodeis,我在网上看过一些有效的教程,但当我尝试时失败了。我想这可能是因为最新的node.js版本。。。我目前正在运行v0.10.21,我已经尝试了32和64,但都没有成功Sql server msnodesql模块在编译期间出错,sql-server,node.js,azure,express,azure-sql-database,Sql Server,Node.js,Azure,Express,Azure Sql Database,我只有两个主要要求。1.Azure SQL 2。Nodeis,我在网上看过一些有效的教程,但当我尝试时失败了。我想这可能是因为最新的node.js版本。。。我目前正在运行v0.10.21,我已经尝试了32和64,但都没有成功 是否有人成功地使用了此功能,您使用的node.js版本是什么?您在错误的目录中运行了node gyp configure 找到Node.js模块的根目录,并在那里执行命令。当有一个名为binding.gyp的文件时,您将知道自己位于正确的目录中,因为这是gyp要查找的文件节
是否有人成功地使用了此功能,您使用的node.js版本是什么?您在错误的目录中运行了
node gyp configure
找到Node.js模块的根目录,并在那里执行命令。当有一个名为binding.gyp
的文件时,您将知道自己位于正确的目录中,因为这是gyp要查找的文件节点
以下是您自己的错误中的一点解释:
C:\Python27>node-gyp configure
gyp info it worked if it ends with ok
gyp info using node-gyp@0.11.0
gyp info using node@0.10.21 | win32 | ia32
gyp info spawn python
gyp info spawn args [ 'C:\\Users\\v-javde\\AppData\\Roaming\\npm\\node_modules\\
node-gyp\\gyp\\gyp',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-G',
gyp info spawn args 'msvs_version=auto',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Python27\\build\\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\v-javde\\AppData\\Roaming\\npm\\node_modules\\
node-gyp\\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\v-javde\\.node-gyp\\0.10.21\\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\\Users\\v-javde\\.node-gyp\\0.10.21',
gyp info spawn args '-Dmodule_root_dir=C:\\Python27',
gyp info spawn args '--depth=.',
gyp info spawn args '--generator-output',
gyp info spawn args 'C:\\Python27\\build',
gyp info spawn args '-Goutput_dir=.' ]
gyp: binding.gyp not found (cwd: C:\Python27) while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Users\v-javde\AppData\Roaming\np
m\node_modules\node-gyp\lib\configure.js:467:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:
12)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "C:\\Users\\v-javde\\AppData\\Roaming\\npm\\node_modules
\\node-gyp\\bin\\node-gyp.js" "configure"
gyp ERR! cwd C:\Python27
gyp ERR! node -v v0.10.21
gyp ERR! node-gyp -v v0.11.0
gyp ERR! not ok
您在错误的目录中运行
节点gyp configure
找到Node.js模块的根目录,并在那里执行命令。当有一个名为binding.gyp
的文件时,您将知道自己位于正确的目录中,因为这是gyp要查找的文件节点
以下是您自己的错误中的一点解释:
C:\Python27>node-gyp configure
gyp info it worked if it ends with ok
gyp info using node-gyp@0.11.0
gyp info using node@0.10.21 | win32 | ia32
gyp info spawn python
gyp info spawn args [ 'C:\\Users\\v-javde\\AppData\\Roaming\\npm\\node_modules\\
node-gyp\\gyp\\gyp',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-G',
gyp info spawn args 'msvs_version=auto',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Python27\\build\\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\v-javde\\AppData\\Roaming\\npm\\node_modules\\
node-gyp\\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\v-javde\\.node-gyp\\0.10.21\\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\\Users\\v-javde\\.node-gyp\\0.10.21',
gyp info spawn args '-Dmodule_root_dir=C:\\Python27',
gyp info spawn args '--depth=.',
gyp info spawn args '--generator-output',
gyp info spawn args 'C:\\Python27\\build',
gyp info spawn args '-Goutput_dir=.' ]
gyp: binding.gyp not found (cwd: C:\Python27) while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Users\v-javde\AppData\Roaming\np
m\node_modules\node-gyp\lib\configure.js:467:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:
12)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "C:\\Users\\v-javde\\AppData\\Roaming\\npm\\node_modules
\\node-gyp\\bin\\node-gyp.js" "configure"
gyp ERR! cwd C:\Python27
gyp ERR! node -v v0.10.21
gyp ERR! node-gyp -v v0.11.0
gyp ERR! not ok