How exactly did you do this? If the answer doesn’t involve some sort of version control, then stop here, go back, involve some sort of version control in that process, and then see what the situation is.
I’m not trying to be flippant here, but literally the point of error messages is the message itself. Aggregating things into “a lot of errors” really dilutes their value. Posting two or three representative actual messages (AS TEXT, NOT IMAGES) would be much more useful to anybody trying to help you.
If you’re going to draw a conclusion like that, it is absolutely crucial to note the context (including time created) surrounding those search results. In your case here, I suspect they tend to involve people using Node versions beyond LTS. You are on LTS, so I would not jump to blame your Node version.
While you are hunting down those error messages, be on the lookout for suggestions you might see involving node-sass. I have a hunch that’ll be a more productive angle of inquiry than node versions.
Thank you for input, and you are of course right that I could explain better, but at first I was just looking for an answer for the question:
Should I be able to build my Ionic-V3 application with Ionic-CLI 6.0.1 and NodeJS v12.15
If yes I will go hunt for all the fixes and upgrades needed, if no I will have to find a solution with multiple version of NodeJS on the same computer (As suggested in the Ionic documentation)
My repository are on github, so thats where i cloned it from, and I have done that before with success, so I assume I have all the right dependencies committed
gave many pages of warnings and errors, and it was hard to find the actual reason for the error.
But you are right the problem is not npm (and I am on LTS) but probably something else that needs to be upgraded, and while searching I remember seeing node-sass as a possible issue, but also the compiler for node-gyp could be an issue.
For now I will pursue the task of building the app with the latest CLI’s
Looking at the log this seems to be the first interesting issue
email@example.com install <user>/Documents/Geme.io/node_modules/grpc
node-pre-gyp install --fallback-to-build --library=static_library
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Tried to download(404): https://node-precompiled-binaries.grpc.io/grpc/v1.20.0/node-v72-darwin-x64-unknown.tar.gz
node-pre-gyp WARN Pre-built binaries not found for firstname.lastname@example.org and email@example.com (node-v72 ABI, unknown) (falling back to source compile with node-gyp)
and then it downloads a lot of files to compile and build and gives compile errors and this resulting output
6 errors generated.
make: *** [Release/obj.target/grpc_node/ext/byte_buffer.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:223:5)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Darwin 17.7.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--library=static_library" "--module=/<user>/Documents/Geme.io/node_modules/grpc/src/node/extension_binary/node-v72-darwin-x64-unknown/grpc_node.node" "--module_name=grpc_node" "--module_path=/<user>/Documents/Geme.io/node_modules/grpc/src/node/extension_binary/node-v72-darwin-x64-unknown" "--napi_version=5" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v72"
gyp ERR! cwd /<user>/Documents/Geme.io/node_modules/grpc
gyp ERR! node -v v12.15.0
gyp ERR! node-gyp -v v5.0.5
gyp 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 build --fallback-to-build --library=static_library --module=/<user>/Documents/Geme.io/node_modules/grpc/src/node/extension_binary/node-v72-darwin-x64-unknown/grpc_node.node --module_name=grpc_node --module_path=<user>Documents/Geme.io/node_modules/grpc/src/node/extension_binary/node-v72-darwin-x64-unknown --napi_version=5 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/<user>/Documents/Geme.io/node_modules/grpc/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:223:5)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1021:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
node-pre-gyp ERR! System Darwin 17.7.0
node-pre-gyp ERR! command "/usr/local/bin/node" "/Users/thorvaldaagaard/Documents/Geme.io/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd /Users/thorvaldaagaard/Documents/Geme.io/node_modules/grpc
node-pre-gyp ERR! node -v v12.15.0
node-pre-gyp ERR! node-pre-gyp -v v0.12.0
node-pre-gyp ERR! not ok
And I have installed node-gyp 6.1.0 and also node-pre-gyp version 0.14.0 but it still picks up the old versions
Besides that I have updated note-sass to version 4.13.1 and fsevents to 1.2.9
Trying to install the grpc version using
npm i firstname.lastname@example.org
gives the same bunch of errors so there is my problem, but how to fix it?
In order to eliminate peculiarities of your environment, I would suggest installing nvm, uninstalling all node stuff you currently have if it’s still being picked up on your PATH (shouldn’t be necessary, but just in case…).