用weex create 创建app项目 报 ERROR in index.web.js from UglifyJs 错误!

用weex create创建一个APP项目,安装依赖后运行报


这个是package.json

index.web.js 在dist目录下是build时生成的.

上面的答案没有给大家细节,不好意思致歉下面进行补充:

  • 卸载
    npm uninstall weex-toolkit -g
    // 卸载后一定用weex -v看下卸载了没!!!
  • 到你node 安装的目录下的nodejs下node_modules看weex-toolkit 还在没!!!(windows)
    如果在删除之后再次重复上面的命令

删除 .xtoolkit (C:UsersAdministrator.xtoolkit)
删除 npm (C:UsersAdministratorAppDataRoamingnpm)

  • 安装 (如果安装中有错误请重新安装!!)

    // cnpm我没有进行测试
    npm install -g weex-toolkit
    // 安装weexpack
    npm install -g weexpack
    // 通过weex更新weexpack
    weex update weexpack
  • 请对照你的版本号和下面的是否一致

  • 现在试着创建项目启动成功没有报错

* 注意:下面好多朋友说还是会有报错,是因为使用cnpm或者yarn安装的依赖,如果你也有遇到就请换成npm安装依赖!!!

原文地址:https://www.cnblogs.com/qiao20/p/8137216.html

时间: 2024-08-14 10:54:21

用weex create 创建app项目 报 ERROR in index.web.js from UglifyJs 错误!的相关文章

升级ionic版本后,创建新项目报Error Initializing app错误解决

命令行,进入项目路径后,运行 ionic start myApp --v2 命令执行后,报如下错误 Installing npm packages...Error with start undefinedError Initializing app: There was an error with the spawned command: npminstallThere was an error with the spawned command: npminstallCaught excepti

IDEA创建maven项目报错解决:Failed to create a Maven project: 'C:/Users/../IdeaProjects/../pom.xml' already e

晚上用IDEA创建Java的maven项目时报错了: Failed to create a Maven project: 'C:/Users/../IdeaProjects/../pom.xml' already exists in VFS1这个错误是因为之前我已经在这个文件夹里创建过同名的maven项目. 解决方法如下: 先把这个项目删了,然后把回收站中的这个项目和之前同名的项目一起彻底删除,重新创建一遍就不会报错了 IDEA创建maven项目报错解决:Failed to create a M

创建maven项目报错

我在自己的电脑上装了一个MyEclipse6.5 和spring tools suit 3.5.1  因为sts自带了maven插件,所以只要在 preference里面配置下maven的本地路径和settings文件的本地路径就可以了, 配置完了之后 我在MyEclipse和sts里面都导入了maven项目 都可以运行,我就觉得maven配置好了,但是我在sts里面创建maven项目的时候报错 Could not calculate build plan: Plugin org.apache.

android stdio 编译项目报Error:Failed to find target with hash string 'android-24

android stdio 编译项目报Error:Failed to find target with hash string 'android-24 查看已有的SDK 设置项目的sdk为 25 android { compileSdkVersion 25 buildToolsVersion "25.0.0" defaultConfig { applicationId "com.accessibility" minSdkVersion 14 targetSdkVer

RMAN备份报Error occurred getting response - assuming NO response错误处理

1.一个RMAN备份脚本报错信息 Do you really want to delete the above objects (enter YES or NO)? Do you really want to delete the above objects (enter YES or NO)? "exit;" is an invalid response - please re-enter. Do you really want to delete the above objects

ionic start 创建ionic项目报错,及解决过程

问题描述: 前一次创建利用命令行创建ionic项目一次性成功,第二次没有运行: $ npm install -g ionic cordova 直接运行: ionic start ionicDemo 出现上图错误: × Running command - failed!Exception: npm ERR! path C:\work\ionicdemo\node_modules\fsevents\node_modulesnpm ERR! code EPERMnpm ERR! errno -4048

Android studio教程:[1] 创建app项目

Android studio作为面市不久的安卓开发工具,越来越受到大家的喜爱,这里我将介绍如何在Android studio中创建一个APP项目,并在以后经验中介绍其他有关Android studio的操作和编程方法. 工具/原料 Android studio 方法/步骤 打开软件,在菜单中选择file->new project打开创建向导.   配置项目,确定各个名称和存放项目存放路径: Application name:项目名称 Company Domain:公司域名 Package nam

解决eclipse创建maven项目报错!Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp

maveneclipse测试 我是使用代理上网的.在创建maven时报以下错误: Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp:RELEASE from any of the configured repositories. 解决办法: 首先找到 config/settting.xml 在里面添加代理信息 ----------  这个是重点: <proxies><proxy&g

maven权威指南archetype创建简单项目报错解决

在使用maven3.3.1版本和3.2.5版本时,参照<Maven权威指南>beta0.2版本第3.2节以下代码: $ mvn archetype:create -DgroupId=org.sonatype.mavenbook.ch03 -DartifactId=simple -DpackageName=org.sonatype.mavenbook 的时候报错,报错内容如下 [INFO] Scanning for projects... [INFO] [INFO] --------------