node install.js

Considering PhantomJS found at /usr/local/bin/phantomjs

Looks like an `npm install -g`

Error checking path, continuing { Error: Cannot find module '/usr/local/lib/node_modules/phantomjs/lib/location'

at Function.Module._resolveFilename (module.js:438:15)

at Function.Module._load (module.js:386:25)

at Module.require (module.js:466:17)

at require (internal/module.js:20:19)

at getLocationInLibModuleIfMatching (/Users/zhangjin/MyWork/FrontWorkspace/react-flux/react-webpack-redux/node_modules/phantomjs-prebuilt/install.js:332:19)

at Promise._successFn (/Users/zhangjin/MyWork/FrontWorkspace/react-flux/react-webpack-redux/node_modules/phantomjs-prebuilt/install.js:389:28)

at nextTickCallback (/Users/zhangjin/MyWork/FrontWorkspace/react-flux/react-webpack-redux/node_modules/kew/kew.js:47:28)

at _combinedTickCallback (internal/process/next_tick.js:67:7)

at process._tickCallback (internal/process/next_tick.js:98:9) code: 'MODULE_NOT_FOUND' }

Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1//phantomjs-2.1.1-macosx.zip

Saving to /tmp/phantomjs/phantomjs-2.1.1-macosx.zip

Receiving...

Error making request.

Error: read ECONNRESET

at exports._errnoException (util.js:896:11)

at TLSWrap.onread (net.js:556:26)

Please report this full log at https://github.com/Medium/phantomjs

npm ERR! Darwin 15.0.0

npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"

npm ERR! node v6.0.0

npm ERR! npm  v3.9.1

npm ERR! code ELIFECYCLE

npm ERR! phantomjs-prebuilt@2.1.7 install: `node install.js`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the phantomjs-prebuilt@2.1.7 install script 'node install.js'.

npm ERR! Make sure you have the latest version of node.js and npm installed.

npm ERR! If you do, this is most likely a problem with the phantomjs-prebuilt package,

npm ERR! not with npm itself.

npm ERR! Tell the author that this fails on your system:

npm ERR!     node install.js

npm ERR! You can get information on how to open an issue for this project with:

npm ERR!     npm bugs phantomjs-prebuilt

npm ERR! Or if that isn't available, you can get their info via:

npm ERR!     npm owner ls phantomjs-prebuilt

npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:

npm ERR!     /Users/zhangjin/MyWork/FrontWorkspace/react-flux/react-webpack-redux/npm-debug.log

当我使用 yeoman 安装

yo react-webpack-redux 时 报这个找不到 PhantomJS 的错误

npm install -g phantomjs也解决不了

我是Mac环境 之后 我npm remove -g phantomjs

然后 用 Mac的brew安装phantomjs

brew install phantomjs 安装成功后

就解决了问题

最新文章

  1. Visual Studio 使用Web Deploy 3.6发布项目
  2. 自动生成.py文件头部的C语言小程序
  3. enable feature AJAX of MOSS2007
  4. 里面的div怎么撑开外面的div让高度自适应
  5. 【字体区别】Serif和Sans Serif
  6. 今天想把iphone4刷成ios7.3beta,折腾半天,成功
  7. UML系列图--用例图
  8. Linux分区
  9. WPF——数据绑定(二)绑定方法—绑定本地对象
  10. javascript 原生方法监听DOM结构改变事件
  11. SQL存儲過程的調試方法
  12. 2693: jzptab - BZOJ
  13. 大道至简—SQLite3 使用教学
  14. 1052: [HAOI2007]覆盖问题 - BZOJ
  15. [转] jQuery 操作 JSON 数据
  16. 转:sublime text快捷键 (很实用的东东)
  17. VUE2.0实现购物车和地址选配功能学习第七节
  18. C#扩展(2):Random的扩展
  19. Android 插件化方案(动态加载)总结
  20. H5学习之旅-H5的格式化(4)

热门文章

  1. Lodop导出excel及提示成功【回调和直接返回值】
  2. codeforces580C
  3. BZOJ1115[POI2009]石子游戏——阶梯Nim游戏
  4. 【BZOJ2424】[HAOI2010]订货(费用流)
  5. sql server 小技巧(2) 删除sql server中重复的数据
  6. 洛谷 P10P1343 地震逃生 改错
  7. bzoj2599/luogu4149 [IOI2011]Race (点分治)
  8. onTouchEvent方法的使用
  9. pacman安装软件包出现损坏
  10. 【tools】vim删除命令