casperjs,错误:无法找到模块'路径'

casperjs, error: cannot find module 'Path'

本文关键字:模块 路径 错误 casperjs      更新时间:2023-09-26

嗨,我得到错误'错误:无法找到模块'路径'运行一个基本的casperjs示例之后。

$ casperjs sample.js
$ phantomjs --version    , returns 1.9.8
$ python --version       , returns Python 3.5.0
$ casperjs     , returns...
Error: cannot find module 'path'
phantomjs://bootstrap.js:289
phantomjs://boostrap.js:254 in require
bunch of other lines of code....
CasperJS versions 1.1.0beta

所以它甚至说Casperjs是加载的!argggg。在这蠢事了几个小时 ..................................请上帝保佑某人,某人........

Linux中缺少此包

apt install fontconfig -y