您的位置:首页 > Web前端 > React

React Native 遇到的问题

2018-03-27 11:29 260 查看

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! 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 cache clean --force

4、error: bundling failed: UnableToResolveError: Unable to resolve module

1)、用npm start -- --reset-cache命令重新启动packager服务

2)、引用了文件夹,但是对应的文件夹内没有index.js文件

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: