Error: Cannot find module PhantomJS

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! [email protected] install: `node install.js`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the [email protected] 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 安装成功后

就解决了问题

时间: 2024-12-29 11:24:52

Error: Cannot find module PhantomJS的相关文章

关于npm安装全局模块,require时报Error: Cannot find module 'XXX'的解决办法

系统环境:centos 下午使用npm安装"cheerio",想搞爬虫玩玩. npm安装有两种模式: 本地 # npm install cheerio 全局 # npm install cheerio -g 如果想要全局安装,你首先要先设置个全局路径 我在"node的安装位置/lib/node_modules/"目录下新建了文件夹node_global专门用来存放新安装的全局包 # npm config set cache "node的安装位置/lib/n

对express中引入文件时提示Error: Cannot find module错误的理解

打算写个小demo,在引入一个routes文件时,一直提示Error: Cannot find module('./routes')的错误,经过一番了解. 如果要把整个文件夹下所有的模块都引进来  var routes = require('./routes')这时express会默认的去读取文件下的index.js文件,所以文件夹下所有的模块只需在index.js声明即可. 例如: 在routes文件下有user.js.count.js.index.js文件, 只需在index.js中 exp

Error: Cannot find module 'express'

问题描述: 系统:Windows 7 x64 Node.js版本:版本是:v4.2.4 LTS 安装过程参考:<Node.js入门>Windows 7下Node.js Web开发环境搭建笔记 从IBM Bluemix上下载的示例代码,本地启动调试时出现错误:Error: Cannot find module 'express' 如下图: 解决方法: 在对应的应用目录下执行命令"npm install"就可以了,如下图: 在执行以上操作之前,还执行了命令"npm i

Gulp Error: Cannot find module &#39;jshint/src/cli&#39;

首先是执行 gulp 的时候,提示: 此时,第一反应是: npm install gulp-jshint -g 理论上来说,除非还有插件没有安装,那么执行 gulp 是可以的.然而,出现以下错误(稀碎..): 网上查找的方法是: npm install --save-dev jshint gulp-jshint 这种方法应该是可行的,但这种方法下载的 gulp-jshint 模块是放在项目环境下的,如果是在项目中执行gulp的话,可以采用上面的方法.而我需要的是全局安装.这种方法不适合我的需求了

Error loading MySQLdb module: No module named MySQLdb 错误的解决方法

具体报错如下: django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb 解法办法: 需要安装python连接mysql的模块 注意:本人使用yum install MySQL-pyton安装后依然报上错误,经测试必须要pip方式安装 pip install mysql-python 如果安装报以下错误: pip install pandas` gives

Error Cannot find module node-sass

问题描述 在webpack利用打包css文件时出现: Error: Cannot find module 'node-sass' 解决方法 $ npm install node-sass --save-dev 安装node-sass模块即可解决

django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb的解决方法

今天自学django创建mysql数据库表的时候报了如下错误: raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e) django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb在我百度查询下,终于找到了问题所在,就是没有安装MySQL-python.基于这个问题,网上提供

./configure: error: the GeoIP module requires the GeoIP library.

近期安装的nginx的geo的模块在编译nginx的时候遇到报错,报错信息如下: checking for OpenSSL library ... found checking for zlib library ... found checking for GeoIP library ... not found checking for GeoIP library in /usr/local/ ... not found checking for GeoIP library in /usr/pk

FreeBSD修改root密码错误passwd: pam_chau(www.111cn.net)thtok(): error in service module from:http://www.111cn.net/sys/freebsd/66713.htm

在FreeBSD中修改帐号密码有时候会出现一些错误,针对passwd: pam_chauthtok(): error in service module这样的错误提示,简单整理了以下解决方案:错误提示: 代码如下 复制代码 kiccleaf# passwd kiccleafChanging local password for kiccleafNew Password:Retype New Password: /: write failed, filesystem is fullpasswd: