Tag: mink

加载僵尸JS驱动程序正确的貂皮和PHP

我已经在Centos 6上pipe理安装node.js v0.12.2和npm 2.7.4。 在目录/usr/local/lib/node_modules我现在有两个自动创build的目录: NPM 僵尸 所以我使用了linux命令export PATH_NODE="/usr/local/lib/node_modules" ,但是每当我运行下面的脚本,我得到以下错误: Fatal error: Uncaught exception 'RuntimeException' with message 'Server process has been terminated: (8) [ module.js:340 throw err; ^ Error: Cannot find module 'zombie' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object.<anonymous> (/tmp/mink_nodejs_serverddCfA0:2:16) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at […]

nodejs无法find与PHP水貂模块“僵尸”

我在Ubuntu 14.04上试用了Mink(PHP) 我基本上做了以下几点: $ apt-show-versions nodejs nodejs:amd64/trusty 0.10.45-1nodesource1~trusty1 uptodate $ npm -v 2.15.1 $ sudo npm install -g zombie npm WARN engine zombie@4.2.1: wanted: {"node":"^4.0.0"} (current: {"node":"0.10.45","npm":"2.15.1"}) … zombie@4.2.1 /usr/lib/node_modules/zombie ├── ms@0.7.1 ├── debug@2.2.0 … $ ls /usr/lib/node_modules/zombie/node_modules/ babel-runtime bluebird debug eventsource iconv-lite jsdom lodash mime ms request tough-cookie ws 所以,基本上,即使我得到警告,模块也会build立,并且应该位于/usr/lib/node_modules 。 那我呢: mkdir test_php_mink […]