MMM-awesome-alexa icon indicating copy to clipboard operation
MMM-awesome-alexa copied to clipboard

npm install --only=prod broken links?

Open Noah-Phense opened this issue 4 years ago • 7 comments

mirror@MirrorMirror:~/MagicMirror/modules/MMM-awesome-alexa$ npm install --only=prod npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated [email protected]: this library is no longer supported

[email protected] install /home/mirror/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(403): https://snowboy-release-node.s3-us-west-2.amazonaws.com/snowboy/v1.3.1/Release/snowboy-v1.3.1-node-v64-linux-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v64 ABI, glibc) (falling back to source compile with node-gyp) node-pre-gyp ERR! Tried to download(undefined): https://snowboy-release-node.s3-us-west-2.amazonaws.com/snowboy/v1.3.1/Release/snowboy-v1.3.1-node-v64-linux-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v64 ABI, glibc) (falling back to source compile with node-gyp) internal/modules/cjs/loader.js:638 throw err; ^

Error: Cannot find module 'nan' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) at Function.Module._load (internal/modules/cjs/loader.js:562:25) at Module.require (internal/modules/cjs/loader.js:690:17) at require (internal/modules/cjs/helpers.js:25:18) at [eval]:1:1 at Script.runInThisContext (vm.js:122:20) at Object.runInThisContext (vm.js:329:38) at Object. ([eval]-wrapper:6:22) at Module._compile (internal/modules/cjs/loader.js:776:30) at evalScript (internal/bootstrap/node.js:589:27) internal/modules/cjs/loader.js:638 throw err; ^

Error: Cannot find module 'nan' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) at Function.Module._load (internal/modules/cjs/loader.js:562:25) at Module.require (internal/modules/cjs/loader.js:690:17) at require (internal/modules/cjs/helpers.js:25:18) at [eval]:1:1 at Script.runInThisContext (vm.js:122:20) at Object.runInThisContext (vm.js:329:38) at Object. ([eval]-wrapper:6:22) at Module._compile (internal/modules/cjs/loader.js:776:30) at evalScript (internal/bootstrap/node.js:589:27) gyp: Call to 'node -e "require('nan')"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp gyp: Call to 'node -e "require('nan')"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp gypgyp ERR!ERR! configure errorconfigure error

gypgyp ERR!ERR! stackstack Error: gyp failed with exit code: 1 Error: gyp failed with exit code: 1 gypgyp ERR!ERR! stackstack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:345:16) at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:345:16) gypgyp ERR!ERR! stackstack at ChildProcess.emit (events.js:198:13) at ChildProcess.emit (events.js:198:13) gypgyp ERR!ERR! stackstack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12) at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12) gypgyp ERR!ERR! System Linux 5.8.0-41-generic System Linux 5.8.0-41-generic gyp gyp ERR! ERR!command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/home/mirror/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-x64/snowboy.node" "--module_name=snowboy" "--module_path=/home/mirror/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-x64" command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/home/mirror/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-x64/snowboy.node" "--module_name=snowboy" "--module_path=/home/mirror/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-x64" gyp gypERR! ERR!cwd /home/mirror/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy cwdgyp /home/mirror/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy gypERR! node -vERR! v10.16.0 node -vgyp v10.16.0 ERR!gyp node-gyp -vERR! v3.8.0 gypnode-gyp -v v3.8.0 ERR!gyp not ok ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/mirror/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-x64/snowboy.node --module_name=snowboy --module_path=/home/mirror/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-x64' (1) node-pre-gyp ERR! stack at ChildProcess. (/home/mirror/MagicMirror/modules/MMM-awesome-alexa/node_modules/node-pre-gyp/lib/util/compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:198:13) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:982:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5) node-pre-gyp ERR! System Linux 5.8.0-41-generic node-pre-gyp ERR! command "/usr/local/bin/node" "/home/mirror/MagicMirror/modules/MMM-awesome-alexa/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd /home/mirror/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy node-pre-gyp ERR! node -v v10.16.0 node-pre-gyp ERR! node-pre-gyp -v v0.6.39 node-pre-gyp ERR! not ok Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/mirror/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-x64/snowboy.node --module_name=snowboy --module_path=/home/mirror/MagicMirror/modules/MMM-awesome-alexa/node_modules/snowboy/lib/node/binding/Release/node-v64-linux-x64' (1) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /home/mirror/.npm/_logs/2021-01-30T22_12_15_413Z-debug.log

Noah-Phense avatar Jan 30 '21 22:01 Noah-Phense

Same problem here...

apocalipse9 avatar Dec 24 '21 14:12 apocalipse9

same here

SvenHerr avatar Dec 25 '21 22:12 SvenHerr

problem still exist

dragonempire96 avatar Sep 21 '22 22:09 dragonempire96

Same

Themaster312 avatar Apr 09 '23 20:04 Themaster312

I literally just reinstalled from the beginning and it worked.

I did try using the "npm install --only=prod" a bunch of times and it never installed correctly. and then randomly i tried it from the beginning and it worked 🤷‍♂️

Kevinjconnorsjr avatar Jun 25 '23 02:06 Kevinjconnorsjr

I've got this too, anyone got a fix?

joelis10 avatar Nov 16 '23 13:11 joelis10

Maybe the my comments in the following issue can help you guys

https://github.com/dolanmiu/MMM-awesome-alexa/issues/231

payolemo avatar Dec 19 '23 21:12 payolemo