按照下面这个网页所说的https://github.com/WindowsAzure/node-sqlserver,我在node-gyp configure这步就报错了,有大神有这方面的例子么,求指导。 另外,在npm install msnodesql这个模块时,最新版的node.js装的时候就报错,而0.6.10的版本安装的时候没问题- -不懂,求指导!,但是在node-gyp configure的时候都报错了。 最新版本安装msnodesql时报错
msnodesql@0.2.0 install C:\Program Files\nodejs\node_modules\msnodesql node-gyp rebuild
C:\Program Files\nodejs\node_modules\msnodesql>node “C:\Program Files\nodejs\nod e_modules\npm\bin\node-gyp-bin\…\node_modules\node-gyp\bin\node-gyp.js” reb uild C:\Program Files\nodejs\node_modules\msnodesql\build\sqlserver.vcxproj(40,46): error MSB4025: 未能加载项目文件。给定编码中的字符无效。 第 40 行,位置 46。 gyp ERR! build error
新版本node-gyp configure报错
gyp info spawn args '-Dvisibility=default’,
gyp info spawn args '-Dnode_root_dir=C:\Users\封盛\.node-gyp\0.8.14’,
gyp info spawn args '-Dmodule_root_dir=C:\Program Files\nodejs’,
gyp info spawn args '–depth=.’,
gyp info spawn args '–generator-output’,
gyp info spawn args ‘C:\Program Files\nodejs\build’,
gyp info spawn args '-Goutput_dir=.’ ]
Traceback (most recent call last):
File "C:\Users\封盛.node-gyp\0.8.14\tools\gyp\gyp", line 18, in <module>
sys.exit(gyp.main(sys.argv[1:]))
File "C:\Users\封盛.node-gyp\0.8.14\tools\gyp\pylib\gyp_init.py", line 5
1, in main
return gyp_main(args)
File "C:\Users\封盛.node-gyp\0.8.14\tools\gyp\pylib\gyp_init.py", line 4
4, in gyp_main
options.circular_check)
File "C:\Users\封盛.node-gyp\0.8.14\tools\gyp\pylib\gyp_init_.py", line 1
3, in Load
depth, generator_input_info, check, circular_check)
File "C:\Users\封盛.node-gyp\0.8.14\tools\gyp\pylib\gyp\input.py", line 2378
in Load
depth, check)
File "C:\Users\封盛.node-gyp\0.8.14\tools\gyp\pylib\gyp\input.py", line 358,
in LoadTargetBuildFile
includes, True, check)
File "C:\Users\封盛.node-gyp\0.8.14\tools\gyp\pylib\gyp\input.py", line 208,
in LoadOneBuildFile
raise Exception("%s not found (cwd: %s)" % (build_file_path, os.getcwd()))
Exception: binding.gyp not found (cwd: C:\Program Files\nodejs) 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\封盛\AppData\Roaming\npm
ode_modules\node-gyp\lib\configure.js:420:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:99:17)
gyp ERR! stack at Process._handle.onexit (child_process.js:678:10)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command “node” “C:\Users\封盛\AppData\Roaming\npm\node_modules\
ode-gyp\bin\node-gyp.js” “configure”
gyp ERR! cwd C:\Program Files\nodejs
gyp ERR! node -v v0.8.14
gyp ERR! node-gyp -v v0.8.0
gyp ERR! not ok
旧版本node-gyp configure报错 D:\nodejs\nodejs>node-gyp configure gyp info it worked if it ends with ok gyp info using node-gyp@0.8.0 gyp info using node@0.6.10 | win32 | ia32 gyp http GET http://nodejs.org/dist/v0.6.10/node-v0.6.10.tar.gz gyp http 200 http://nodejs.org/dist/v0.6.10/node-v0.6.10.tar.gz gyp http GET http://nodejs.org/dist/v0.6.10/x64/node.lib gyp http GET http://nodejs.org/dist/v0.6.10/node.lib gyp http 200 http://nodejs.org/dist/v0.6.10/node.lib gyp http 404 http://nodejs.org/dist/v0.6.10/x64/node.lib gyp WARN install got an error, rolling back install gyp ERR! configure error gyp ERR! stack Error: 404 status code downloading 64-bit node.lib gyp ERR! stack at Request.<anonymous> (C:\Users\��ʢ\AppData\Roaming\npm\node _modules\node-gyp\lib\install.js:338:20) gyp ERR! stack at Request.emit (events.js:88:20) gyp ERR! stack at ClientRequest.<anonymous> (C:\Users\��ʢ\AppData\Roaming\np m\node_modules\node-gyp\node_modules\request\main.js:521:12)