dalekjs - 安装期间出错

时间:2017-08-02 08:35:30

标签: ubuntu npm dalekjs

我无法以任何方式安装项目文件夹中的dalekjs / var / www / example-project /

要安装它,我正在进行后续步骤(在Ubuntu控制台中):

andrew@andrew-Lenovo-G50-80:/var/www/example-project/src$ npm install dalekjs --save-dev
npm WARN deprecated CSSselect@0.4.1: the module is now available as 'css-select'
npm WARN deprecated npmconf@2.0.9: this package has been reintegrated into npm and is now out of date with respect to npm
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm WARN deprecated minimatch@1.0.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm ERR! Cannot read property '0' of undefined

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/andrew/.npm/_logs/2017-08-02T08_24_30_411Z-debug.log
andrew@andrew-Lenovo-G50-80:/var/www/example-project/src$ 

enter image description here

似乎这里的拐杖FIX位于:https://github.com/dalekjs/dalek/issues/165#issuecomment-319631099

我尝试在 package.json 中执行以下操作: "devDependencies": { "dalek-driver-native": "^0.0.6", "dalek-reporter-console": "0.0.7", "dalek-browser-phantomjs":"https://github.com/wrumsby/dalek-browser-phantomjs/tarball/b0b6c011eec55ea7da987461f6e1c79a6ab4bf6e" }`

安装正常,但是当我查看它时:dalek -v没有DalekJS本地安装

enter image description here

当地没有安装dalekjs:

enter image description here

请帮忙!

0 个答案:

没有答案