1、MSBUILD : error MSB3428: 未能加载 Visual C++ 组件“VCBuild.exe”。要解决此问题,1) 安装 .NET Framework 2.0 SDK;2) 安装 Microsoft Visual Studio 2005;或 3) 如果将该组件安装到了其他位置,请将其位置添加到系统路径中。 [E:\CordovaWorkspace\RailwayLotteryMobile\node_modules\weak\build\binding.sln]
错误原因:缺少windows构建插件
解决方法:npm install --global --production windows-build-tools (全局安装windows构建工具)
2、"npm ERR! Error: EPERM: operation not permitted"
安装插件时,使用的cmd窗口权限不足,使用管理员权限的cmd窗口
3、pm install出现”Unexpected end of JSON input while parsing near”错误。
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'scandir',
npm ERR! path: 'E:\\CordovaWorkspace\\RailwayLotteryMobile\\node_modules\\fsev
ents\\node_modules\\getpass\\node_modules' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! code: 'EPERM',
npm ERR! syscall: 'scandir',
npm ERR! path: 'E:\\CordovaWorkspace\\RailwayLotteryMobile\\node_modules\\fsev
ents\\node_modules\\getpass\\node_modules' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator.PC-20160713AJZS\AppData\Roaming\npm-cache\_l
ogs\2018-04-03T05_52_29_338Z-debug.log
npm ERR! C:\Users\Administrator.PC-20160713AJZS\AppData\Roaming\npm-cache\_l
ogs\2018-04-03T05_52_29_338Z-debug.log
错误:
执行命令:npm cache clean --force
4、error: bundling failed: UnableToResolveError: Unable to resolve module
1)、用npm start -- --reset-cache命令重新启动packager服务
2)、引用了文件夹,但是对应的文件夹内没有index.js文件
5、Connot add a child that doesnot have a YogaNode to a
parent without a measure function!(Trying to add a 'ReactRaw TextShadowDode a a 'LayoutShadowNode')
1)、去掉//注释
2)、内容中有多余的"<"或者">"