0

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

要安装它,我正在执行后续步骤(在 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$ 

在此处输入图像描述

好像这里是拐杖 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 本地安装

在此处输入图像描述

没有本地安装dalekjs:

在此处输入图像描述

请帮忙!

4

0 回答 0