Skip to content

Commit 27402b5

Browse files
author
baukh789
committed
update install error info
1 parent 5ffff79 commit 27402b5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

karma.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ module.exports = function (config) {
9090
webpack: {
9191
//入口文件配置
9292
entry: {
93-
js: './test/index_test.js'
93+
js: './test/*_test.js'
9494
},
9595
resolve:{
9696
extensions: [".js"] //当requrie的模块找不到时,添加这些后缀

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
"karma-sourcemap-loader": "^0.3.7",
4545
"karma-webpack": "^1.8.1",
4646
"node-sass": "^4.5.3",
47-
"phantomjs-prebuilt": "2.1.13",
4847
"resolve-url-loader": "^2.1.0",
4948
"sass-loader": "^6.0.6",
5049
"sinon": "^1.17.2",

readme/DEVELOP-README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ npm test
4040

4141
## 问题汇总
4242
### npm install 总是失败?
43-
这是由于在国内加载时,有些依赖包无法加载导致的. 将以下包移除掉再进行install, 这两个包都是用于npm run test, 如果需要, 进行单独安装
44-
- karma-phantomjs-launcher 安装需要翻墙
43+
这是由于在国内加载时,有些依赖包无法加载导致的.
44+
将以 karma-phantomjs-launcher 与 phantomjs-prebuilt 移除掉再进行install, 这两个包都是用于npm run test
45+
- karma-phantomjs-launcher 需要注意两点: 1.单独安装; 2.翻墙
4546
```
4647
npm install karma-phantomjs-launcher
4748
```

0 commit comments

Comments
 (0)