我试图在我的操作系统(Ubuntu 14.04)上为AngularJs设置nodeJs:guideline for installing angular js components 但是当试图运行最后一个命令时,发现了这个错误。任何人都可以提供帮助。
usman@usman-cs:~/angular-phonecat$ npm run protractor
angular-phonecat@0.0.0 preprotractor / home / usman / angular-phonecat npm运行update-webdriver
angular-phonecat@0.0.0 preupdate-webdriver / home / usman / angular-phonecat npm install
angular-phonecat@0.0.0 postinstall / home / usman / angular-phonecat 凉亭安装
angular-phonecat@0.0.0 update-webdriver / home / usman / angular-phonecat webdriver-manager更新
selenium standalone是最新的。 chromedriver是最新的。
angular-phonecat@0.0.0量角器/ home / usman / angular-phonecat 量角器测试/量角器-conf.js
Starting selenium standalone server...
[launcher] Running 1 instances of WebDriver
[launcher] Process exited with error code 1
events.js:72
throw er; // Unhandled 'error' event
^
Error: spawn ENOENT
at errnoException (child_process.js:988:11)
at Process.ChildProcess._handle.onexit (child_process.js:779:34)
npm ERR! weird error 8
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR! not ok code 0
usman@usman-cs:~/angular-phonecat$
答案 0 :(得分:0)
我认为你应该在项目目录上运行npm install
。
那应该安装所有必需的依赖项。如果这不起作用,那么package.json
文件中缺少依赖项。
我按照教程说不应该有任何问题。