2014-06-26 363 views
1

任何時候我試圖通過包含phantomJS的npm或使用它作爲依賴包的npm安裝package.json時,安裝將在phantomJS安裝中掛起。沒有線索會導致什麼,有什麼想法?PhantomJS的Npm安裝掛起

>$ npm install 
| 
> [email protected] install c:\Users\user\application\node_modules\grunt-mo 
cha\node_modules\grunt-lib-phantomjs\node_modules\phantomjs 
> node install.js 
\ 

它就停在那兒無限期(與最後一個斜線紡)

詳細輸出:

npm info install [email protected] into c:\Users\Nick\extensionTest\node_modules\phan 
    tomjs\node_modules\request\node_modules\hawk 
    npm info install [email protected] into c:\Users\Nick\extensionTest\node_modules 
    \phantomjs\node_modules\request\node_modules\hawk 
    npm info install [email protected] into c:\Users\Nick\extensionTest\node_modules\phan 
    tomjs\node_modules\request\node_modules\hawk 
    npm info installOne [email protected] 
    npm info installOne [email protected] 
    npm info installOne [email protected] 
    npm info installOne [email protected] 
    npm info c:\Users\Nick\extensionTest\node_modules\phantomjs\node_modules\reque 
    st\node_modules\hawk\node_modules\hoek unbuild 
    npm info c:\Users\Nick\extensionTest\node_modules\phantomjs\node_modules\reque 
    st\node_modules\hawk\node_modules\sntp unbuild 
    npm info c:\Users\Nick\extensionTest\node_modules\phantomjs\node_modules\reque 
    st\node_modules\hawk\node_modules\cryptiles unbuild 
    npm info c:\Users\Nick\extensionTest\node_modules\phantomjs\node_modules\reque 
    st\node_modules\hawk\node_modules\boom unbuild 
    npm verb tar unpack C:\Users\Nick\AppData\Roaming\npm-cache\hoek\0.9.1\packa 
    ge.tgz 
    npm verb lock tar://c:\Users\Nick\extensionTest\node_modules\phantomjs\node_mo 
    dules\request\node_modules\hawk\node_modules\hoek C:\Users\Nick\AppData\Roam 
    ing\npm-cache\863dbeb6-e-modules-hawk-node-modules-hoek.lock 
    npm verb lock tar://C:\Users\Nick\AppData\Roaming\npm-cache\hoek\0.9.1\packa 
    ge.tgz C:\Users\Nick\AppData\Roaming\npm-cache\50375b14-npm-cache-hoek-0-9-1 
    -package-tgz.lock 
    npm verb tar unpack C:\Users\Nick\AppData\Roaming\npm-cache\sntp\0.2.4\packa 
    ge.tgz 
    npm verb lock tar://c:\Users\Nick\extensionTest\node_modules\phantomjs\node_mo 
    dules\request\node_modules\hawk\node_modules\sntp C:\Users\Nick\AppData\Roam 
    ing\npm-cache\8fd8d464-e-modules-hawk-node-modules-sntp.lock 
    npm verb lock tar://C:\Users\Nick\AppData\Roaming\npm-cache\sntp\0.2.4\packa 
    ge.tgz C:\Users\Nick\AppData\Roaming\npm-cache\8e173eaf-npm-cache-sntp-0-2-4 
    -package-tgz.lock 
    npm verb tar unpack C:\Users\Nick\AppData\Roaming\npm-cache\cryptiles\0.2.2\ 
    package.tgz 
    npm verb lock tar://c:\Users\Nick\extensionTest\node_modules\phantomjs\node_mo 
    dules\request\node_modules\hawk\node_modules\cryptiles C:\Users\Nick\AppData 
    \Roaming\npm-cache\ea16e82e-ules-hawk-node-modules-cryptiles.lock 
    npm verb lock tar://C:\Users\Nick\AppData\Roaming\npm-cache\cryptiles\0.2.2\ 
    package.tgz C:\Users\Nick\AppData\Roaming\npm-cache\46f6a6ad-ache-cryptiles- 
    0-2-2-package-tgz.lock 
    npm verb tar unpack C:\Users\Nick\AppData\Roaming\npm-cache\boom\0.4.2\packa 
    ge.tgz 
    npm verb lock tar://c:\Users\Nick\extensionTest\node_modules\phantomjs\node_mo 
    dules\request\node_modules\hawk\node_modules\boom C:\Users\Nick\AppData\Roam 
    ing\npm-cache\12a79658-e-modules-hawk-node-modules-boom.lock 
    npm verb lock tar://C:\Users\Nick\AppData\Roaming\npm-cache\boom\0.4.2\packa 
    ge.tgz C:\Users\Nick\AppData\Roaming\npm-cache\9ddfd014-npm-cache-boom-0-4-2 
    -package-tgz.lock 
    npm info preinstall [email protected] 
    npm info preinstall [email protected] 
    npm verb readDependencies using package.json deps 
    npm verb readDependencies using package.json deps 
    npm verb about to build c:\Users\Nick\extensionTest\node_modules\phantomjs\nod 
    e_modules\request\node_modules\hawk\node_modules\cryptiles 
    npm info build c:\Users\Nick\extensionTest\node_modules\phantomjs\node_modules 
    \request\node_modules\hawk\node_modules\cryptiles 
    npm verb linkStuff [ false, 
    npm verb linkStuff false, 
    npm verb linkStuff false, 
    npm verb linkStuff 'c:\\Users\\Nick\\extensionTest\\node_modules\\phantomjs\ 
    \node_modules\\request\\node_modules\\hawk\\node_modules' ] 
    npm info linkStuff [email protected] 
    npm verb linkBins [email protected] 
    npm verb linkMans [email protected] 
    npm verb rebuildBundles [email protected] 
    npm info install [email protected] 
    npm verb readDependencies using package.json deps 
    npm verb readDependencies using package.json deps 
    npm verb about to build c:\Users\Nick\extensionTest\node_modules\phantomjs\nod 
    e_modules\request\node_modules\http-signature\node_modules\ctype 
    npm info build c:\Users\Nick\extensionTest\node_modules\phantomjs\node_modules 
    \request\node_modules\http-signature\node_modules\ctype 
    npm verb linkStuff [ false, 
    npm verb linkStuff false, 
    npm verb linkStuff false, 
    npm verb linkStuff 'c:\\Users\\Nick\\extensionTest\\node_modules\\phantomjs\ 
    \node_modules\\request\\node_modules\\http-signature\\node_modules' ] 
    npm info linkStuff [email protected] 
    npm verb linkBins [email protected] 
    npm verb linkMans [email protected] 
    npm verb rebuildBundles [email protected] 
    npm info postinstall [email protected] 
    npm info install [email protected] 
    npm info preinstall [email protected] 
    npm info postinstall [email protected] 
    npm info preinstall [email protected] 
    npm verb about to build c:\Users\Nick\extensionTest\node_modules\phantomjs\nod 
    e_modules\request\node_modules\http-signature 
    npm info build c:\Users\Nick\extensionTest\node_modules\phantomjs\node_modules 
    \request\node_modules\http-signature 
    npm verb linkStuff [ false, 
    npm verb linkStuff false, 
    npm verb linkStuff false, 
    npm verb linkStuff 'c:\\Users\\Nick\\extensionTest\\node_modules\\phantomjs\ 
    \node_modules\\request\\node_modules' ] 
    npm info linkStuff [email protected] 
    npm verb linkBins [email protected] 
    npm verb linkMans [email protected] 
    npm verb rebuildBundles [email protected] 
    npm verb readDependencies using package.json deps 
    npm verb rebuildBundles [ 'asn1', 'assert-plus', 'ctype' ] 
    npm info install [email protected] 
    npm verb readDependencies using package.json deps 
    npm verb about to build c:\Users\Nick\extensionTest\node_modules\phantomjs\nod 
    e_modules\request\node_modules\hawk\node_modules\sntp 
    npm info build c:\Users\Nick\extensionTest\node_modules\phantomjs\node_modules 
    \request\node_modules\hawk\node_modules\sntp 
    npm verb linkStuff [ false, 
    npm verb linkStuff false, 
    npm verb linkStuff false, 
    npm verb linkStuff 'c:\\Users\\Nick\\extensionTest\\node_modules\\phantomjs\ 
    \node_modules\\request\\node_modules\\hawk\\node_modules' ] 
    npm info linkStuff [email protected] 
    npm verb linkBins [email protected] 
    npm verb linkMans [email protected] 
    npm verb rebuildBundles [email protected] 
    npm info install [email protected] 
    npm verb readDependencies using package.json deps 
    npm info postinstall [email protected] 
    npm verb readDependencies using package.json deps 
    npm verb about to build c:\Users\Nick\extensionTest\node_modules\phantomjs\nod 
    e_modules\request\node_modules\hawk\node_modules\boom 
    npm info build c:\Users\Nick\extensionTest\node_modules\phantomjs\node_modules 
    \request\node_modules\hawk\node_modules\boom 
    npm verb linkStuff [ false, 
    npm verb linkStuff false, 
    npm verb linkStuff false, 
    npm verb linkStuff 'c:\\Users\\Nick\\extensionTest\\node_modules\\phantomjs\ 
    \node_modules\\request\\node_modules\\hawk\\node_modules' ] 
    npm info linkStuff [email protected] 
    npm verb linkBins [email protected] 
    npm verb linkMans [email protected] 
    npm verb rebuildBundles [email protected] 
    npm info postinstall [email protected] 
    npm info install [email protected] 
    npm info postinstall [email protected] 
    npm info preinstall [email protected] 
    npm verb readDependencies using package.json deps 
    npm verb readDependencies using package.json deps 
    npm verb about to build c:\Users\Nick\extensionTest\node_modules\phantomjs\nod 
    e_modules\request\node_modules\hawk\node_modules\hoek 
    npm info build c:\Users\Nick\extensionTest\node_modules\phantomjs\node_modules 
    \request\node_modules\hawk\node_modules\hoek 
    npm verb linkStuff [ false, 
    npm verb linkStuff false, 
    npm verb linkStuff false, 
    npm verb linkStuff 'c:\\Users\\Nick\\extensionTest\\node_modules\\phantomjs\ 
    \node_modules\\request\\node_modules\\hawk\\node_modules' ] 
    npm info linkStuff [email protected] 
    npm verb linkBins [email protected] 
    npm verb linkMans [email protected] 
    npm verb rebuildBundles [email protected] 
    npm info install [email protected] 
    npm info postinstall [email protected] 
    npm verb about to build c:\Users\Nick\extensionTest\node_modules\phantomjs\nod 
    e_modules\request\node_modules\hawk 
    npm info build c:\Users\Nick\extensionTest\node_modules\phantomjs\node_modules 
    \request\node_modules\hawk 
    npm verb linkStuff [ false, 
    npm verb linkStuff false, 
    npm verb linkStuff false, 
    npm verb linkStuff 'c:\\Users\\Nick\\extensionTest\\node_modules\\phantomjs\ 
    \node_modules\\request\\node_modules' ] 
    npm info linkStuff [email protected] 
    npm verb linkBins [email protected] 
    npm verb linkMans [email protected] 
    npm verb rebuildBundles [email protected] 
    npm verb rebuildBundles [ 'boom', 'cryptiles', 'hoek', 'sntp' ] 
    npm info install [email protected] 
    npm info postinstall [email protected] 
    npm http 304 https://registry.npmjs.org/delayed-stream 
    npm verb etag delayed-stream from cache 
    npm info install [email protected] into c:\Users\Nick\extensionTest\node_mo 
    dules\phantomjs\node_modules\request\node_modules\form-data\node_modules\combine 
    d-stream 
    npm info installOne [email protected] 
    npm info c:\Users\Nick\extensionTest\node_modules\phantomjs\node_modules\reque 
    st\node_modules\form-data\node_modules\combined-stream\node_modules\delayed-stre 
    am unbuild 
    npm verb tar unpack C:\Users\Nick\AppData\Roaming\npm-cache\delayed-stream\0 
    .0.5\package.tgz 
    npm verb lock tar://c:\Users\Nick\extensionTest\node_modules\phantomjs\node_mo 
    dules\request\node_modules\form-data\node_modules\combined-stream\node_modules\d 
    elayed-stream C:\Users\Nick\AppData\Roaming\npm-cache\d068bb68-ream-node-mod 
    ules-delayed-stream.lock 
    npm verb lock tar://C:\Users\Nick\AppData\Roaming\npm-cache\delayed-stream\0 
    .0.5\package.tgz C:\Users\Nick\AppData\Roaming\npm-cache\916573b0-delayed-st 
    ream-0-0-5-package-tgz.lock 
    npm info preinstall [email protected] 
    npm verb readDependencies using package.json deps 
    npm verb readDependencies using package.json deps 
    npm verb about to build c:\Users\Nick\extensionTest\node_modules\phantomjs\nod 
    e_modules\request\node_modules\form-data\node_modules\combined-stream\node_modul 
    es\delayed-stream 
    npm info build c:\Users\Nick\extensionTest\node_modules\phantomjs\node_modules 
    \request\node_modules\form-data\node_modules\combined-stream\node_modules\delaye 
    d-stream 
    npm verb linkStuff [ false, 
    npm verb linkStuff false, 
    npm verb linkStuff false, 
    npm verb linkStuff 'c:\\Users\\Nick\\extensionTest\\node_modules\\phantomjs\ 
    \node_modules\\request\\node_modules\\form-data\\node_modules\\combined-stream\\ 
    node_modules' ] 
    npm info linkStuff [email protected] 
    npm verb linkBins [email protected] 
    npm verb linkMans [email protected] 
    npm verb rebuildBundles [email protected] 
    npm info install [email protected] 
    npm info postinstall [email protected] 
    npm verb about to build c:\Users\Nick\extensionTest\node_modules\phantomjs\nod 
    e_modules\request\node_modules\form-data\node_modules\combined-stream 
    npm info build c:\Users\Nick\extensionTest\node_modules\phantomjs\node_modules 
    \request\node_modules\form-data\node_modules\combined-stream 
    npm verb linkStuff [ false, 
    npm verb linkStuff false, 
    npm verb linkStuff false, 
    npm verb linkStuff 'c:\\Users\\Nick\\extensionTest\\node_modules\\phantomjs\ 
    \node_modules\\request\\node_modules\\form-data\\node_modules' ] 
    npm info linkStuff [email protected] 
    npm verb linkBins [email protected] 
    npm verb linkMans [email protected] 
    npm verb rebuildBundles [email protected] 
    npm verb rebuildBundles [ 'delayed-stream' ] 
    npm info install [email protected] 
    npm info postinstall [email protected] 
    npm verb about to build c:\Users\Nick\extensionTest\node_modules\phantomjs\nod 
    e_modules\request\node_modules\form-data 
    npm info build c:\Users\Nick\extensionTest\node_modules\phantomjs\node_modules 
    \request\node_modules\form-data 
    npm verb linkStuff [ false, 
    npm verb linkStuff false, 
    npm verb linkStuff false, 
    npm verb linkStuff 'c:\\Users\\Nick\\extensionTest\\node_modules\\phantomjs\ 
    \node_modules\\request\\node_modules' ] 
    npm info linkStuff [email protected] 
    npm verb linkBins [email protected] 
    npm verb linkMans [email protected] 
    npm verb rebuildBundles [email protected] 
    npm verb rebuildBundles [ 'async', 'combined-stream' ] 
    npm info install [email protected] 
    npm info postinstall [email protected] 
    npm verb about to build c:\Users\Nick\extensionTest\node_modules\phantomjs\nod 
    e_modules\request 
    npm info build c:\Users\Nick\extensionTest\node_modules\phantomjs\node_modules 
    \request 
    npm verb linkStuff [ false, 
    npm verb linkStuff false, 
    npm verb linkStuff false, 
    npm verb linkStuff 'c:\\Users\\Nick\\extensionTest\\node_modules\\phantomjs\ 
    \node_modules' ] 
    npm info linkStuff [email protected] 
    npm verb linkBins [email protected] 
    npm verb linkMans [email protected] 
    npm verb rebuildBundles [email protected] 
    npm verb rebuildBundles [ 'aws-sign2', 
    npm verb rebuildBundles 'forever-agent', 
    npm verb rebuildBundles 'form-data', 
    npm verb rebuildBundles 'hawk', 
    npm verb rebuildBundles 'http-signature', 
    npm verb rebuildBundles 'json-stringify-safe', 
    npm verb rebuildBundles 'mime', 
    npm verb rebuildBundles 'node-uuid', 
    npm verb rebuildBundles 'oauth-sign', 
    npm verb rebuildBundles 'qs', 
    npm verb rebuildBundles 'tough-cookie', 
    npm verb rebuildBundles 'tunnel-agent' ] 
    npm info install [email protected] 
    npm info postinstall [email protected] 
    npm verb about to build c:\Users\Nick\extensionTest\node_modules\phantomjs 
    npm info build c:\Users\Nick\extensionTest\node_modules\phantomjs 
    npm verb linkStuff [ false, 
    npm verb linkStuff false, 
    npm verb linkStuff false, 
    npm verb linkStuff 'c:\\Users\\Nick\\extensionTest\\node_modules' ] 
    npm info linkStuff [email protected] 
    npm verb linkBins [email protected] 
    npm verb link bins [ { phantomjs: './bin/phantomjs' }, 
    npm verb link bins 'c:\\Users\\Nick\\extensionTest\\node_modules\\.bin', 
    npm verb link bins false ] 
    npm verb linkMans [email protected] 
    npm verb rebuildBundles [email protected] 
    npm verb rebuildBundles [ '.bin', 
    npm verb rebuildBundles 'adm-zip', 
    npm verb rebuildBundles 'kew', 
    npm verb rebuildBundles 'mkdirp', 
    npm verb rebuildBundles 'ncp', 
    npm verb rebuildBundles 'npmconf', 
    npm verb rebuildBundles 'request', 
    npm verb rebuildBundles 'rimraf', 
    npm verb rebuildBundles 'which' ] 
    npm info install [email protected] 


    > [email protected] install c:\Users\Nick\extensionTest\node_modules\phantomj 
    s 
    > node install.js 

    \ 
+1

添加 --verbose 和後輸出這裏 –

+0

@MarcodeJongh,希望這意味着更多的人在這裏比它我 – user3779637

回答

6

我有這個問題,以及在我的Windows 7盒。我通過卸載PhantomJS的現有安裝並從PATH變量中除去對其的引用來解決此問題。然後我清理了我的npm緩存(npm cache clean)並再次運行npm install。這一次npm安裝操作成功完成。

+0

也做到了,感謝您的幫助。這讓我瘋狂。 – user3779637

+0

謝謝,這也幫助了我 –