2016-07-16 15 views
-1

Ich bin neu bei nodejs und suche einen einfachen Code unter Ubuntu 16.04.Autobahn mit node.js installieren

Ich habe NodeJS und npm installiert

[email protected]:~# node -v 
v6.3.0 
[email protected]:~# npm -v 
3.10.3 

ich jetzt bin auf der Suche Autobahn nach installieren: http://autobahn.ws/js/gettingstarted.html

Leider bekomme ich:

[email protected]:~# npm install autobahn 

> [email protected] install /root/node_modules/bufferutil 
> node-gyp rebuild 

gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR 
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR 
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR 
make: Entering directory '/root/node_modules/bufferutil/build' 
    CXX(target) Release/obj.target/bufferutil/src/bufferutil.o 
    SOLINK_MODULE(target) Release/obj.target/bufferutil.node 
    COPY Release/bufferutil.node 
make: Leaving directory '/root/node_modules/bufferutil/build' 

> [email protected] install /root/node_modules/utf-8-validate 
> node-gyp rebuild 

gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR 
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR 
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR 
make: Entering directory '/root/node_modules/utf-8-validate/build' 
    CXX(target) Release/obj.target/validation/src/validation.o 
    SOLINK_MODULE(target) Release/obj.target/validation.node 
    COPY Release/validation.node 
make: Leaving directory '/root/node_modules/utf-8-validate/build' 
/root 
└─┬ [email protected] 
    ├─┬ [email protected] 
    │ ├── [email protected] 
    │ └── [email protected] 
    ├── [email protected] 
    ├─┬ [email protected] 
    │ ├── [email protected] 
    │ ├── [email protected] 
    │ ├── [email protected] 
    │ └── [email protected] 
    ├── [email protected] 
    ├── [email protected] 
    └─┬ [email protected] 
    ├── [email protected] 
    └── [email protected] 

npm WARN enoent ENOENT: no such file or directory, open '/root/package.json' 
npm WARN root No description 
npm WARN root No repository field. 
npm WARN root No README data 
npm WARN root No license field. 
+2

Warnungen sind keine Fehler. Sieht für mich aus wie gearbeitet. –

+0

Danke Robert, ja es hat geklappt. – Dercni

Antwort

2

WARNING-1:

gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR 

GRUND: Eine der Abhängigkeiten entweder Ihrer npm oder Autobahn verwendet eine veraltete Bibliothek oder Funktion, die NVM_NODEJS_ORG_MIRROR in diesem Fall ist. Wenn Ihr Npm bereits auf dem neuesten Stand ist, machen Sie sich keine Sorgen, dass die Jungs um autobahn es beheben werden. Erhebe ein Problem mit ihnen, wenn du dich so fühlst.

WARNING-2:

npm WARN enoent ENOENT: no such file or directory, open '/root/package.json' 
npm WARN root No description 
npm WARN root No repository field. 
npm WARN root No README data 
npm WARN root No license field. 

GRUND: Sie brauchen keinen package.json haben. Führen Sie einfach npm init aus und folgen Sie den Anweisungen und es wird eine für Sie erstellt.

FAZIT:

So oder so beide warnen. Überprüfen Sie Ihre node_modules\ Ordner und mit größter Wahrscheinlichkeit sollte alles installiert werden becase, es gab keine Fehler aufgelistet.

Verwandte Themen