用webStorm打开文件夹后,进行npm安装,出现一大片提示信息,一下就蒙了!
一、安装时提示错误信息如下:
E:\第五节开发框架搭建\第五节开发框架搭建>npm install
> bignum@0.11.0 install E:\第五节开发框架搭建\第五节开发框架搭建\node_modules\bignum
> node-gyp configure build
E:\第五节开发框架搭建\第五节开发框架搭建\node_modules\bignum>if not defined npm_config_node_gyp (node "D:\Program Files (x86)\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" configure build )
else (node "" configure build )
在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
bignum.cc
win_delay_load_hook.cc
..\bignum.cc(413): warning C4244: “=”: 从“double”转换到“uint64_t”,可能丢失数据 (编译源文件 ..\bignum.cc) [E:\第五节开发框架搭建\第五节开发框架搭建\node_modules\bignum\build\bignum.vcxproj]
..\bignum.cc(385): warning C4996: 'v8::Function::NewInstance': 被声明为已否决 (编译源文件 ..\bignum.cc) [E:\第五节开发框架搭建\第五节开发框架搭建\node_modules\bignum\build\bignum.vcxproj]
c:\users\administrator\.node-gyp\8.9.3\include\node\v8.h(3832): note: 参见“v8::Function::NewInstance”的声明 (编译源文件 ..\bignum.cc)
..\bignum.cc(413): warning C4996: 'v8::Value::ToNumber': 被声明为已否决 (编译源文件 ..\bignum.cc) [E:\第五节开发框架搭建\第五节开发框架搭建\node_modules\bignum\build\bignum.vcxproj]
c:\users\administrator\.node-gyp\8.9.3\include\node\v8.h(9707): note: 参见“v8::Value::ToNumber”的声明 (编译源文件 ..\bignum.cc)
..\bignum.cc(461): warning C4996: 'v8::Function::NewInstance': 被声明为已否决 (编译源文件 ..\bignum.cc) [E:\第五节开发框架搭建\第五节开发框架搭建\node_modules\bignum\build\bignum.vcxproj]
c:\users\administrator\.node-gyp\8.9.3\include\node\v8.h(3832): note: 参见“v8::Function::NewInstance”的声明 (编译源文件 ..\bignum.cc)
..\bignum.cc(474): warning C4996: 'v8::Function::NewInstance': 被声明为已否决 (编译源文件 ..\bignum.cc) [E:\第五节开发框架搭建\第五节开发框架搭建\node_modules\bignum\build\bignum.vcxproj]
c:\users\administrator\.node-gyp\8.9.3\include\node\v8.h(3832): note: 参见“v8::Function::NewInstance”的声明 (编译源文件 ..\bignum.cc)
..\bignum.cc(488): warning C4996: 'v8::Function::NewInstance': 被声明为已否决 (编译源文件 ..\bignum.cc) [E:\第五节开发框架搭建\第五节开发框架搭建\node_modules\bignum\build\bignum.vcxproj]
c:\users\administrator\.node-gyp\8.9.3\include\node\v8.h(3832): note: 参见“v8::Function::NewInstance”的声明 (编译源文件 ..\bignum.cc)
..\bignum.cc(502): warning C4996: 'v8::Function::NewInstance': 被声明为已否决 (编译源文件 ..\bignum.cc) [E:\第五节开发框架搭建\第五节开发框架搭建\node_modules\bignum\build\bignum.vcxproj]
c:\users\administrator\.node-gyp\8.9.3\include\node\v8.h(3832): note: 参见“v8::Function::NewInstance”的声明 (编译源文件 ..\bignum.cc)
..\bignum.cc(520): warning C4996: 'v8::Function::NewInstance': 被声明为已否决 (编译源文件 ..\bignum.cc) [E:\第五节开发框架搭建\第五节开发框架搭建\node_modules\bignum\build\bignum.vcxproj]
c:\users\administrator\.node-gyp\8.9.3\include\node\v8.h(3832): note: 参见“v8::Function::NewInstance”的声明 (编译源文件 ..\bignum.cc)
..\bignum.cc(538): warning C4996: 'v8::Function::NewInstance': 被声明为已否决 (编译源文件 ..\bignum.cc) [E:\第五节开发框架搭建\第五节开发框架搭建\node_modules\bignum\build\bignum.vcxproj]
c:\users\administrator\.node-gyp\8.9.3\include\node\v8.h(3832): note: 参见“v8::Function::NewInstance”的声明 (编译源文件 ..\bignum.cc)
..\bignum.cc(557): warning C4996: 'v8::Function::NewInstance': 被声明为已否决 (编译源文件 ..\bignum.cc) [E:\第五节开发框架搭建\第五节开发框架搭建\node_modules\bignum\build\bignum.vcxproj]
c:\users\administrator\.node-gyp\8.9.3\include\node\v8.h(3832): note: 参见“v8::Function::NewInstance”的声明 (编译源文件 ..\bignum.cc)
..\bignum.cc(576): warning C4996: 'v8::Function::NewInstance': 被声明为已否决 (编译源文件 ..\bignum.cc) [E:\第五节开发框架搭建\第五节开发框架搭建\node_modules\bignum\build\bignum.vcxproj]
c:\users\administrator\.node-gyp\8.9.3\include\node\v8.h(3832): note: 参见“v8::Function::NewInstance”的声明 (编译源文件 ..\bignum.cc)
..\bignum.cc(585): warning C4996: 'v8::Value::ToUint32': 被声明为已否决 (编译源文件 ..\bignum.cc) [E:\第五节开发框架搭建\第五节开发框架搭建\node_modules\bignum\build\bignum.vcxproj]
c:\users\administrator\.node-gyp\8.9.3\include\node\v8.h(9737): note: 参见“v8::Value::ToUint32”的声明 (编译源文件 ..\bignum.cc)
..\bignum.cc(589): warning C4996: 'v8::Function::NewInstance': 被声明为已否决 (编译源文件 ..\bignum.cc) [E:\第五节开发框架搭建\第五节开发框架搭建\node_modules\bignum\build\bignum.vcxproj]
c:\users\administrator\.node-gyp\8.9.3\include\node\v8.h(3832): note: 参见“v8::Function::NewInstance”的声明 (编译源文件 ..\bignum.cc)
..\bignum.cc(598): warning C4996: 'v8::Value::ToUint32': 被声明为已否决 (编译源文件 ..\bignum.cc) [E:\第五节开发框架搭建\第五节开发框架搭建\node_modules\bignum\build\bignum.vcxproj]
c:\users\administrator\.node-gyp\8.9.3\include\node\v8.h(9737): note: 参见“v8::Value::ToUint32”的声明 (编译源文件 ..\bignum.cc)
..\bignum.cc(602): warning C4996: 'v8::Function::NewInstance': 被声明为已否决 (编译源文件 ..\bignum.cc) [E:\第五节开发框架搭建\第五节开发框架搭建\node_modules\bignum\build\bignum.vcxproj]
c:\users\administrator\.node-gyp\8.9.3\include\node\v8.h(3832): note: 参见“v8::Function::NewInstance”的声明 (编译源文件 ..\bignum.cc)
..\bignum.cc(614): warning C4996: 'v8::Function::NewInstance': 被声明为已否决 (编译源文件 ..\bignum.cc) [E:\第五节开发框架搭建\第五节开发框架搭建\node_modules\bignum\build\bignum.vcxproj]
c:\users\administrator\.node-gyp\8.9.3\include\node\v8.h(3832): note: 参见“v8::Function::NewInstance”的声明 (编译源文件 ..\bignum.cc)
..\bignum.cc(626): warning C4996: 'v8::Function::NewInstance': 被声明为已否决 (编译源文件 ..\bignum.cc) [E:\第五节开发框架搭建\第五节开发框架搭建\node_modules\bignum\build\bignum.vcxproj]
c:\users\administrator\.node-gyp\8.9.3\include\node\v8.h(3832): note: 参见“v8::Function::NewInstance”的声明 (编译源文件 ..\bignum.cc)
..\bignum.cc(640): warning C4996: 'v8::Function::NewInstance': 被声明为已否决 (编译源文件 ..\bignum.cc) [E:\第五节开发框架搭建\第五节开发框架搭建\node_modules\bignum\build\bignum.vcxproj]
c:\users\administrator\.node-gyp\8.9.3\include\node\v8.h(3832): note: 参见“v8::Function::NewInstance”的声明 (编译源文件 ..\bignum.cc)
..\bignum.cc(659): warning C4996: 'v8::Function::NewInstance': 被声明为已否决 (编译源文件 ..\bignum.cc) [E:\第五节开发框架搭建\第五节开发框架搭建\node_modules\bignum\build\bignum.vcxproj]
c:\users\administrator\.node-gyp\8.9.3\include\node\v8.h(3832): note: 参见“v8::Function::NewInstance”的声明 (编译源文件 ..\bignum.cc)
..\bignum.cc(674): warning C4996: 'v8::Function::NewInstance': 被声明为已否决 (编译源文件 ..\bignum.cc) [E:\第五节开发框架搭建\第五节开发框架搭建\node_modules\bignum\build\bignum.vcxproj]
c:\users\administrator\.node-gyp\8.9.3\include\node\v8.h(3832): note: 参见“v8::Function::NewInstance”的声明 (编译源文件 ..\bignum.cc)
..\bignum.cc(691): warning C4996: 'v8::Function::NewInstance': 被声明为已否决 (编译源文件 ..\bignum.cc) [E:\第五节开发框架搭建\第五节开发框架搭建\node_modules\bignum\build\bignum.vcxproj]
c:\users\administrator\.node-gyp\8.9.3\include\node\v8.h(3832): note: 参见“v8::Function::NewInstance”的声明 (编译源文件 ..\bignum.cc)
..\bignum.cc(707): warning C4996: 'v8::Function::NewInstance': 被声明为已否决 (编译源文件 ..\bignum.cc) [E:\第五节开发框架搭建\第五节开发框架搭建\node_modules\bignum\build\bignum.vcxproj]
c:\users\administrator\.node-gyp\8.9.3\include\node\v8.h(3832): note: 参见“v8::Function::NewInstance”的声明 (编译源文件 ..\bignum.cc)
..\bignum.cc(720): warning C4996: 'v8::Function::NewInstance': 被声明为已否决 (编译源文件 ..\bignum.cc) [E:\第五节开发框架搭建\第五节开发框架搭建\node_modules\bignum\build\bignum.vcxproj]
c:\users\administrator\.node-gyp\8.9.3\include\node\v8.h(3832): note: 参见“v8::Function::NewInstance”的声明 (编译源文件 ..\bignum.cc)
..\bignum.cc(727): warning C4996: 'v8::Value::ToUint32': 被声明为已否决 (编译源文件 ..\bignum.cc) [E:\第五节开发框架搭建\第五节开发框架搭建\node_modules\bignum\build\bignum.vcxproj]
c:\users\administrator\.node-gyp\8.9.3\include\node\v8.h(9737): note: 参见“v8::Value::ToUint32”的声明 (编译源文件 ..\bignum.cc)
..\bignum.cc(734): warning C4996: 'v8::Function::NewInstance': 被声明为已否决 (编译源文件 ..\bignum.cc) [E:\第五节开发框架搭建\第五节开发框架搭建\node_modules\bignum\build\bignum.vcxproj]
c:\users\administrator\.node-gyp\8.9.3\include\node\v8.h(3832): note: 参见“v8::Function::NewInstance”的声明 (编译源文件 ..\bignum.cc)
..\bignum.cc(744): warning C4996: 'v8::Value::ToUint32': 被声明为已否决 (编译源文件 ..\bignum.cc) [E:\第五节开发框架搭建\第五节开发框架搭建\node_modules\bignum\build\bignum.vcxproj]
c:\users\administrator\.node-gyp\8.9.3\include\node\v8.h(9737): note: 参见“v8::Value::ToUint32”的声明 (编译源文件 ..\bignum.cc)
..\bignum.cc(753): warning C4996: 'v8::Value::ToUint32': 被声明为已否决 (编译源文件 ..\bignum.cc) [E:\第五节开发框架搭建\第五节开发框架搭建\node_modules\bignum\build\bignum.vcxproj]
c:\users\administrator\.node-gyp\8.9.3\include\node\v8.h(9737): note: 参见“v8::Value::ToUint32”的声明 (编译源文件 ..\bignum.cc)
..\bignum.cc(861): warning C4996: 'v8::Function::NewInstance': 被声明为已否决 (编译源文件 ..\bignum.cc) [E:\第五节开发框架搭建\第五节开发框架搭建\node_modules\bignum\build\bignum.vcxproj]
c:\users\administrator\.node-gyp\8.9.3\include\node\v8.h(3832): note: 参见“v8::Function::NewInstance”的声明 (编译源文件 ..\bignum.cc)
..\bignum.cc(893): warning C4996: 'v8::Function::NewInstance': 被声明为已否决 (编译源文件 ..\bignum.cc) [E:\第五节开发框架搭建\第五节开发框架搭建\node_modules\bignum\build\bignum.vcxproj]
c:\users\administrator\.node-gyp\8.9.3\include\node\v8.h(3832): note: 参见“v8::Function::NewInstance”的声明 (编译源文件 ..\bignum.cc)
..\bignum.cc(928): warning C4996: 'v8::Function::NewInstance': 被声明为已否决 (编译源文件 ..\bignum.cc) [E:\第五节开发框架搭建\第五节开发框架搭建\node_modules\bignum\build\bignum.vcxproj]
c:\users\administrator\.node-gyp\8.9.3\include\node\v8.h(3832): note: 参见“v8::Function::NewInstance”的声明 (编译源文件 ..\bignum.cc)
..\bignum.cc(952): warning C4996: 'v8::Value::ToUint32': 被声明为已否决 (编译源文件 ..\bignum.cc) [E:\第五节开发框架搭建\第五节开发框架搭建\node_modules\bignum\build\bignum.vcxproj]
c:\users\administrator\.node-gyp\8.9.3\include\node\v8.h(9737): note: 参见“v8::Value::ToUint32”的声明 (编译源文件 ..\bignum.cc)
LINK : fatal error LNK1181: 无法打开输入文件“C:\OpenSSL-Win64\lib\libeay32.lib” [E:\第五节开发框架搭建\第五节开发框架搭建\node_modules\bignum\build\bignum.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (D:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "D:\\Program Files (x86)\\nodejs\\node.exe" "D:\\Program Files (x86)\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "build"
gyp ERR! cwd E:\第五节开发框架搭建\第五节开发框架搭建\node_modules\bignum
gyp ERR! node -v v8.9.3
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN datongmajiangguan@1.0.0 No description
npm WARN datongmajiangguan@1.0.0 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! bignum@0.11.0 install: `node-gyp configure build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bignum@0.11.0 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\Administrator\AppData\Roaming\npm-cache\_logs\2018-02-18T22_13_26_914Z-debug.log
二、跟着老师继续看视频,删除了dtrace-provider文件夹
三、运行start.js,继续提示出现错误
Error: Cannot find module 'mmap-kit'
at Function.Module._resolveFilename (module.js:536:15)
at Function.Module._load (module.js:466:25)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (E:\kaifahuanjing\model\IDs.js:6:16)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (E:\kaifahuanjing\servicesforserver\IDService.js:9:11)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at load (E:\kaifahuanjing\core\UnitTools.js:111:20)
at Services.makeServer (E:\kaifahuanjing\core\Services.js:131:46)
TypeError: a.hah is not a function
at module.exports (E:\kaifahuanjing\servicesforserver\Test.js:26:7)
at Services.makeServer (E:\kaifahuanjing\core\Services.js:132:25)
at Services.startServiceServer (E:\kaifahuanjing\core\Services.js:33:23)
at App.startServiceServer (E:\kaifahuanjing\core\app.js:238:32)
at App.startServer (E:\kaifahuanjing\core\app.js:256:18)
at E:\kaifahuanjing\core\app.js:274:14
at Function.UnitTools.forEach (E:\kaifahuanjing\core\UnitTools.js:283:13)
at App.startAll (E:\kaifahuanjing\core\app.js:273:15)
at Object.<anonymous> (E:\kaifahuanjing\start.js:23:9)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Function.Module.runMain (module.js:676:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3
请老师看一下这些错误的原因是什么呢?怎么去解决?我用的是Windows,和这个有关系吗?
2018-02-19 06:26
回复 赞(0)共89节 · 21小时40分钟
cocos creator手机游戏实战(客户端+服务器+数据库)视频教程
¥1598.0020231人在学
共20节 · 5小时52分钟
¥69.0023773人在学
共5节 · 1小时36分钟
¥1.0015865人在学
共58节 · 8小时29分钟
零基础游戏制作入门(游戏设计 + CocosCreator开发 + 音乐制作 )视频教程
¥699.0011118人在学