2013-07-20 20 views
5

1) umieszczony Węzeł v0.10.13 X64 (ja w Win 8)Instalacja pakiet Socket.io w node.js

2) otwarte CMD z Administrator specjalnie uprawnionych

3) Wpisany npm install socket.io to coś pobiera, ale to pokazuje coś takiego jak błąd kompilacji na końcu.

npm http GET https://registry.npmjs.org/socket.io 
npm http 304 https://registry.npmjs.org/socket.io 
unbuild [email protected] 
npm http GET https://registry.npmjs.org/socket.io-client/0.9.16 
npm http GET https://registry.npmjs.org/policyfile/0.0.4 
npm http GET https://registry.npmjs.org/base64id/0.1.0 
npm http GET https://registry.npmjs.org/redis/0.7.3 
npm http 304 https://registry.npmjs.org/base64id/0.1.0 
npm http 304 https://registry.npmjs.org/socket.io-client/0.9.16 
npm http 304 https://registry.npmjs.org/policyfile/0.0.4 
npm http GET https://registry.npmjs.org/base64id/-/base64id-0.1.0.tgz 
npm http GET https://registry.npmjs.org/socket.io-client/-/socket.io-client-0.9. 
16.tgz 
npm http GET https://registry.npmjs.org/policyfile/-/policyfile-0.0.4.tgz 
npm http 304 https://registry.npmjs.org/redis/0.7.3 
npm http 200 https://registry.npmjs.org/socket.io-client/-/socket.io-client-0.9. 
16.tgz 
npm http 200 https://registry.npmjs.org/base64id/-/base64id-0.1.0.tgz 
npm http 200 https://registry.npmjs.org/policyfile/-/policyfile-0.0.4.tgz 
npm http GET https://registry.npmjs.org/uglify-js/1.2.5 
npm http GET https://registry.npmjs.org/xmlhttprequest/1.4.2 
npm http GET https://registry.npmjs.org/ws 
npm http GET https://registry.npmjs.org/active-x-obfuscator/0.0.1 
npm http 304 https://registry.npmjs.org/xmlhttprequest/1.4.2 
npm http 304 https://registry.npmjs.org/uglify-js/1.2.5 
npm http 304 https://registry.npmjs.org/ws 
npm http GET https://registry.npmjs.org/xmlhttprequest/-/xmlhttprequest-1.4.2.tg 
z 
npm http 304 https://registry.npmjs.org/active-x-obfuscator/0.0.1 
npm http GET https://registry.npmjs.org/uglify-js/-/uglify-js-1.2.5.tgz 
npm http GET https://registry.npmjs.org/active-x-obfuscator/-/active-x-obfuscato 
r-0.0.1.tgz 
npm http 200 https://registry.npmjs.org/xmlhttprequest/-/xmlhttprequest-1.4.2.tg 
z 
npm http 200 https://registry.npmjs.org/uglify-js/-/uglify-js-1.2.5.tgz 
npm http 200 https://registry.npmjs.org/active-x-obfuscator/-/active-x-obfuscato 
r-0.0.1.tgz 
npm http GET https://registry.npmjs.org/zeparser/0.0.5 
npm http GET https://registry.npmjs.org/tinycolor 
npm http GET https://registry.npmjs.org/commander 
npm http GET https://registry.npmjs.org/options 
npm http 304 https://registry.npmjs.org/zeparser/0.0.5 
npm http 304 https://registry.npmjs.org/options 
npm http 304 https://registry.npmjs.org/commander 
npm http 304 https://registry.npmjs.org/tinycolor 

>[email protected] install C:\Windows\system32\node_modules\socket.io\node_modules\sock 
et.io-client\node_modules\ws 
> (node-gyp rebuild 2> builderror.log) || (exit 0) 


C:\Windows\system32\node_modules\socket.io\node_modules\socket.io-client\node_mo 
dules\ws>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\ 
node_modules\node-gyp\bin\node-gyp.js" rebuild 
MSBUILD : error MSB1009: Project file does not exist. 
Switch: build/binding.sln 
[email protected] node_modules\socket.io 
├── [email protected] 
├── [email protected] 
├── [email protected] 
└── [email protected] ([email protected], [email protected], active-x-obf 
[email protected], [email protected]) 

Próbowałem też poniżej poleceń z niektórych blogach, ale nie wiem, co to znaczy ani nie działa.

1) npm zainstalować wyraźnej

2) KMP zainstalować jade

3) -g npm zainstalować węzeł -gyp

Próbuję zainstalować od porannego mogłem” t znaleźć rozwiązanie. Proszę mi pomóc.

+0

Nie powiązane, ale zauważyłem, że instalujesz moduły w folderze C: \ Windows \ system32. Czy możesz spróbować innego miejsca, aby wykluczyć problemy z dostępem. – user568109

+0

Próbowałem też ... > [email protected] zainstaluj c: \ wamp \ www \ test \ node_modules \ socket.io \ node_modules \ socket. io-client \ node_modules \ ws > (node-gyp rebuild 2> builderror.log) || (exit 0) c: \ wamp \ www \ test \ node_modules \ socket.io \ node_modules \ socket.io-client \ node_modul es \ ws> node "C: \ Program Files \ nodejs \ node_mulules \ npm \ bin \ node-gyp-bin \\ .. \ .. \ nod e_modules \ node-gyp \ bin \ node-gyp.js "odbuduj –

+0

Upewnij się, że masz wymagane wymagane oprogramowanie. Zobacz https://github.com/TooTallNate/node-gyp – user568109

Odpowiedz

2

Jak widać w this answer uruchom swoją powłokę jako administrator, a ten problem powinien zniknąć.

+0

nie ma (node-v0.12.7-x64.msi/python-2.7.10.amd64) – Jeffz

Powiązane problemy