Error:cannot Find Module Phantomjs

Source: Internet
Author: User

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 the 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, the likely a problem with the phantomjs-prebuilt package,

NPM err! not with npm itself.

NPM err! Tell the author, fails on your system:

NPM err! Node Install.js

NPM err! You can get the information on what to open a 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

When I use Yeoman to install

Yo react-webpack-redux times This can't find Phantomjs's mistake

NPM Install-g Phantomjs can't solve it.

I am a Mac environment after I NPM remove-g PHANTOMJS

Then install PHANTOMJS with your Mac's brew

Brew Install PHANTOMJS after successful installation

It solves the problem.

Error:cannot Find Module Phantomjs

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.