Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install #249

Open
zanjs opened this issue Oct 21, 2015 · 4 comments
Open

npm install #249

zanjs opened this issue Oct 21, 2015 · 4 comments

Comments

@zanjs
Copy link

zanjs commented Oct 21, 2015

[email protected] postinstall E:\zan\www\node\austack-core
./node_modules/gulp-protractor/node_modules/protractor/bin/webdriver-manager update

'.' ▒▒▒▒▒ڲ▒▒▒▒ⲿ▒▒▒Ҳ▒▒▒ǿ▒▒▒▒еij▒▒▒
▒▒▒▒▒▒▒▒▒ļ▒▒▒

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "D:\nodejs\node.exe" "D:\nodejs\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v4.1.2
npm ERR! npm v2.14.4
npm ERR! code ELIFECYCLE
npm ERR! [email protected] postinstall: ./node_modules/gulp-protractor/node_modules/protractor/bin/webdriver-manager update
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script './node_modules/gulp-protractor/node_modules/protractor/bin/webdriver-manager update'.
npm ERR! This is most likely a problem with the austack package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ./node_modules/gulp-protractor/node_modules/protractor/bin/webdriver-manager update
npm ERR! You can get their info via:
npm ERR! npm owner ls austack
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! E:\zan\www\node\austack-core\npm-debug.log

@hailiang-wang
Copy link
Member

这是因为npm包安装不稳定,以前也遇到过。解决办法:
(1)多执行两边,最好能翻墙。
(2)手动安装

cd ./node_modules/gulp-protractor
npm install protractor

另外,这个包是测试时使用的,如果执行 npm start, 服务应该可以运行的。

@zanjs
Copy link
Author

zanjs commented Oct 21, 2015

npm WARN package.json Dependency 'gulp-protractor' exists in both dependencies and devDependencies, using 'gulp-protractor@^1.0.0' from dependencies

@zanjs
Copy link
Author

zanjs commented Oct 21, 2015

Administrator@WIN-9PH4ISN44NM MINGW64 /e/zan/www/node/austack-core (develop)
$ touch .env

Administrator@WIN-9PH4ISN44NM MINGW64 /e/zan/www/node/austack-core (develop)
$ npm start

[email protected] start E:\zan\www\node\austack-core
node bin/server.js

E:\zan\www\node\austack-core\dist
E:\zan\www\node\austack-core\dist E:\zan\www\node\austack-core\server\public
Wed, 21 Oct 2015 09:23:41 GMT express-session deprecated undefined saveUninitialized option; provide saveUninitialized option at server\config\express.js:57:11
2015-10-21T17:23:41+0800 E:\zan\www\node\austack-core\server\lib\sms\index.js:11
Initialize SMS Service with weimi {"uid":"lmf8FDhlAHHB","pas":"r2z36xbh","cid":"Zh07NWBGgr1r"}
events.js:141
throw er; // Unhandled 'error' event
^

Error: listen EADDRINUSE 0.0.0.0:9001
at Object.exports._errnoException (util.js:849:11)
at exports._exceptionWithHostPort (util.js:872:20)
at Server._listen2 (net.js:1231:14)
at listen (net.js:1267:10)
at net.js:1376:9
at doNTCallback3 (node.js:441:9)
at process._tickDomainCallback (node.js:388:17)
at Function.Module.runMain (module.js:477:11)
at startup (node.js:118:18)
at node.js:952:3

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "D:\nodejs\node.exe" "D:\nodejs\node_modules\npm\bin\npm-cli.js" "start"
npm ERR! node v4.1.2
npm ERR! npm v2.14.4
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: node bin/server.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'node bin/server.js'.
npm ERR! This is most likely a problem with the austack package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node bin/server.js
npm ERR! You can get their info via:
npm ERR! npm owner ls austack
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! E:\zan\www\node\austack-core\npm-debug.log

@hailiang-wang
Copy link
Member

Sorry, I get time now to handle it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants