javascript - 这是什么cordova构建错误\ip-regex\index.js :3?

标签 javascript node.js visual-studio-cordova

我卸载了 Visual Studio 2017,因为尝试构建空白的 cordova 应用程序时遇到很多问题。我安装了 VS2015,希望它能更好。但我仍然收到有关此 js 脚本的错误,指出语法错误。 enter image description here

这是我的环境变量,我已经手动安装了32位git和java 32位sdk。 enter image description here

有人可以告诉我我在为 Visual Studio 2015 设置 cordova 时做错了什么吗?

这是最后的关闭错误,我刚刚构建了一个新创建的 Cordova 项目。 enter image description here

最佳答案

我刚刚遇到了同样的问题。我知道那是很久以前的事了,但也许有人会节省时间:

库 ip-regex 没有固定版本,最新版本不兼容。 您应该使用旧版本更改index.js的内容,例如:https://github.com/sindresorhus/ip-regex/blob/9b6153933a856153fe2ca78081f8851761f03b6c/index.js

或者替换包配置中的版本。

关于javascript - 这是什么cordova构建错误\ip-regex\index.js :3?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54328728/

相关文章:

javascript - 切换导航器和选项卡导航器冲突

javascript - 努力实现 promise

javascript - 函数完成时 Nodejs 回调下一个循环

Javascript SetInterval 并获取值 Math.random

cordova - 无法加载资源 : the server responded with a status of 404 (Not Found) ripple. js

javascript - JavaScript 循环中的异步调用 - Apache Cordova

JavaScript:如何覆盖基类函数?

javascript - Express JS mongoose model.find 在 es6 中未定义

javascript - 如何按计划从 Firebase 数据库中删除数据

javascript - 放大/缩小和旋转 div,平滑过渡