![npm install modules not working npm install modules not working](https://s3.51cto.com/images/blog/202104/12/d400b8cebe00a1a85c1d6ff6f7273790.png)
Npm ERR! Tell the author that this fails on your system: Npm ERR! This is most likely a problem with the speaker package, Npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1 Gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/b in/node-gyp.js" "rebuild" Gyp ERR! stack at Process._handle.onexit (child_process.js:678:10) Gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_ modules/node-gyp/lib/build.js:232:23) Gyp ERR! stack Error: `make` failed with exit code: 2
![npm install modules not working npm install modules not working](https://aws1.discourse-cdn.com/codecademy/optimized/5X/f/4/c/0/f4c06ba79bc6e9c140ecb1997b67d475beb2eb5c_2_690x386.png)
Make: Leaving directory '/node_modules/speaker/build' deps/mpg123/src/output/alsa.c:19:28: fatal error: alsa/asoundlib.h: No such f ile or directoryĭeps/mpg123/:92: recipe for target 'Release/obj.target/output/de ps/mpg123/src/output/alsa.o' failed Make: Entering directory '/node_modules/speaker/build'ĬC(target) Release/obj.target/output/deps/mpg123/src/output/alsa.o Gyp WARN EACCES attempting to reinstall using temporary dev dir "/node_modules/s peaker/.node-gyp" Had to copy the whole web directory into one which wasn't shared between guest and host, then run it in there, then copy it all back. Gyp WARN EACCES user "root" does not have permission to access the dev dir "/roo t/.node-gyp/0.8.16" It appears to have been an issue with my vagrant/virtualbox setup, where npm install just simply doesn't work on a synced folder. This is the error NPM throws at me: npm install speaker
![npm install modules not working npm install modules not working](https://i.stack.imgur.com/cy9P6.jpg)
I really need help with installing this particular module. When I try and install the speaker module (node-speaker), I get a bunch of errors. My current Node.js version is version 0.8.16 which comes with the NPM module manager (1.1.69).
Npm install modules not working code#
Today, I successfully compiled the source code of Node.js on my Raspberry Pi, and I managed to install it without any hassle. I have a Raspberry Pi Model B+, and currently I have been working with web development.