js-bson: Fehler beim Laden der c ++ bson-Erweiterung mit der reinen JS-Version

Ich habe versucht, mean.io stack auf einem Arch Linux Mini-Computer (der Cubox) zu installieren. Also installiere ich die Pakete nodejs und mongodb.

Ich rufe den Stack mit Git ab, habe eine npm-Installation durchgeführt (es war in Ordnung), aber dann:

Ich erhalte diesen Fehler nach der Eingabe von 'grunt':

[nodemon] v1.2.1
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node --debug server.js`
debugger listening on port 5858
{ [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' }
js-bson: Failed to load c++ bson extension, using pure JS version

fs.js:439
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^
Error: ENOENT, no such file or directory '/projects/mean/bower_components/jquery/dist/jquery.min.map'
    at Object.fs.openSync (fs.js:439:18)
    at Object.fs.readFileSync (fs.js:290:15)
    at module.exports (/projects/mean/node_modules/meanio/lib/bootstrap.js:31:27)
    at /projects/mean/node_modules/meanio/lib/mean.js:20:27
    at Config.onPackageRead (/projects/mean/node_modules/meanio/lib/config.js:101:25)
    at Promise.<anonymous> (/projects/mean/node_modules/mongoose/node_modules/mpromise/lib/promise.js:177:8)
    at Promise.emit (events.js:95:17)
    at Promise.emit (/projects/mean/node_modules/mongoose/node_modules/mpromise/lib/promise.js:84:38)
    at Promise.fulfill (/projects/mean/node_modules/mongoose/node_modules/mpromise/lib/promise.js:97:20)
    at Object.cb (/projects/mean/node_modules/mongoose/lib/query.js:1146:30)
[nodemon] app crashed - waiting for file changes before starting...

node Version: v0.10.35 npm Version: 2.1.18 MongoDB Shell Version: 2.6.6

Was kann ich jetzt machen?? Irgendeine Idee?

Adtional info: Ich habe eine Warnung während der Installation von npm:

npm WARN cannot run in wd [email protected] (node-gyp rebuild 2> builderror.log) || (exit 0) (wd=/projects/mean/node_modules/bson)

Hier ist builderror.log:

cat builderror.log 
gyp ERR! configure error 
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack     at failNoPython (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:103:14)
gyp ERR! stack     at /usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:42:11
gyp ERR! stack     at F (/usr/lib/node_modules/npm/node_modules/which/which.js:38:25)
gyp ERR! stack     at E (/usr/lib/node_modules/npm/node_modules/which/which.js:41:29)
gyp ERR! stack     at /usr/lib/node_modules/npm/node_modules/which/which.js:52:16
gyp ERR! stack     at Object.oncomplete (fs.js:108:15)
gyp ERR! System Linux 3.14.27-1-ARCH
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /projects/mean/node_modules/bson
gyp ERR! node -v v0.10.35
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok 

Ich habe Python (Pacman-Python) installiert. python -V -> Python 3.4.2

###### Mehr Info

achdem ich viel Zeit damit verbracht habe, finde ich etwas. Es scheint, dass 'Bower Install' nicht als root gestartet werden kann. Und wenn ich 'npm install' starte, ruft es 'bower install' auf und schlägt fehl.

Ich versuche 'npm install --allow-root' zu starten, aber es funktioniert auch nicht.

So wollte ich einen neuen Benutzer in Archlinux erstellen, aber ich weiß nicht, welche Gruppe ich ihn auch hinzufügen sollte. (Ich habe eine mit einigen zufälligen Gruppen erstellt, aber npm ist mit einem Berechtigungsfehler fehlgeschlagen.)

Wenn mir jemand den Befehl senden kann, einen Benutzer in den guten Gruppen zu erstellen, kann ich testen, ob das Problem dadurch behoben wird.

Hier ist der Fehler, den ich bekomme, wenn ich npm install mit einem neuen Benutzer aus der Gruppe 'Benutzer' starte:

Error: EACCES, open '.bower-registry/bower.herokuapp.com/lookup/angular_d18b8'
Installing module: mean-admin:
rm: could not remove file (code EACCES): packages/contrib/mean-admin/.bowerrc
Mehr Info

Ich installiere alles von Anfang an neu, ohne root zu sein. Erstellen Sie einen Benutzer in der Radgruppe. Jetzt stecke ich bei npm install hier fest:

[tyvain@alarm fast-annonces]$ npm install 
npm WARN package.json [email protected] No README data
npm WARN package.json [email protected] No README data
npm WARN package.json [email protected] No README data
\
> [email protected] postinstall /projects/fast-annonces
> node node_modules/meanio/node_modules/mean-cli/bin/mean-postinstall


module.js:340
    throw err;
          ^
Error: Cannot find module '/projects/fast-annonces/node_modules/meanio/node_modules/mean-cli/bin/mean-postinstall'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:929:3

npm ERR! Linux 3.14.27-1-ARCH
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! node v0.10.35
npm ERR! npm  v2.1.18
npm ERR! code ELIFECYCLE
npm ERR! [email protected] postinstall: `node node_modules/meanio/node_modules/mean-cli/bin/mean-postinstall`
npm ERR! Exit status 8
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script 'node node_modules/meanio/node_modules/mean-cli/bin/mean-postinstall'.
npm ERR! This is most likely a problem with the mean package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node node_modules/meanio/node_modules/mean-cli/bin/mean-postinstall
npm ERR! You can get their info via:
npm ERR!     npm owner ls mean
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /projects/fast-annonces/npm-debug.log

Das ist ein Albtraum!! :)

Antworten auf die Frage(8)

Ihre Antwort auf die Frage