昨天打包项目时遇到下图这样的错误: 开始以为了某些模块存在但未使用,折腾一番无果,后来升级angular-cli就搞定了,方法很简单: 1.删掉node_modules 2.更改package.json文件cli版本到最新稳定版 3.npm install 重新下载依赖 再次aot编译,搞定!…
使用Typescript开发Vue,一切准备就绪.但npm start 时,提示“ ERROR in ./src/main.tsModule build failed: TypeError: Cannot read property 'afterCompile' of undefined“错误. 解决方法 将ts-loader从4.0降低到3.1.1解决问题.是由于webpack和ts-loader版本不兼容造成的.…
问题: vue项目npm run dev运行时报错,如下图:  原因: 缺少组件 解决办法: 安装相应的组件:  npm install babel-plugin-transform-vue-jsx --save-dev 然后再次运行:npm run dev…
locust--scalable user load testing tool writen in Python(是用python写的.规模化.可扩展的测试性能的工具) 安装locustio需要的环境条件是:Python2.6+,但是不支持Python3. 今天在cmd里运行pip install locustio,报错提示:error: invalid command 'bdist_wheel'. 原因:pip和setuptools的版本较低. 解决方案:升级pip和setuptools. 一…
问题: vue 项目npm run dev运行时报错,如下图:  原因: 缺少相应的组件 解决办法: 安装相应组件: npm install babel-plugin-syntax-jsx --save-dev 安装完成再次执行npm run dev…
内容提要:wince6.0编译报错:"error C2220: warning treated as error - no 'object' file generated" 原因是:warning treated as error 意思是将警告当成错误,这是编译选项的问题,将警告级别设置得高导致的错误. 解决的办法是:将警告级别设置为低.这个我想大家都知道,但要如何设置呢?我找了一段时间,也没有很好的解决办法,网上也有很多人遇到这个问题,但真正解决的却没有,我是没有找到,或者就是有人解…
安装PHP过程中,make步骤报错:(集合网络上各种解决方法) (1)-liconv -o sapi/fpm/php-fpm /usr/bin/ld: cannot find -liconv collect2: ld returned 1 exit status make: *** [sapi/fpm/php-fpm] Error 1 [root@localhost php-5.4.5]# 初步定位是iconv的问题解决方法 把libiconv卸载掉进入libiconv源码目录执行#make u…
svn客户端报错Cannot negotiate authentication mechanism的解决方法: 问题出现的原因之一: 因为SVN服务器配置了saslauthd服务用来实现与ldap的对接,因此认证的机制发生了变化,所以客户端需要安装组件才可以: 很简单对于RHEL/CentOS,客户端只需要yum安装相应的包即可: yum -y install cyrus-sasl-plain ubuntu系统尚未测试,请查找对应的包安装即可 问题出现的原因之二:可能与svn的版本或源码安装时选…
shell报错:-bash: [: ==: 期待一元表达式 解决方法 ([: ==: unary operator expected) blogdaren 2015-02-26  抢沙发 14916人次 问题背景: if [ $flag == '1' ]; then mode='--dev' else mode='--test' fi 如上代码, 执行shell报错:line 1: [: ==: unary operator expected[翻译过来就是:-bash: [: ==: 期待一元表…
Spark程序编译报错: [INFO] Compiling 2 source files to E:\Develop\IDEAWorkspace\spark\target\classes at 1567004370534[ERROR] E:\Develop\IDEAWorkspace\spark\src\main\scala\cn\itcast\wordCount\WordCount.scala:3: error: object apache is not a member of package…