Building rethinkdb from source on Ubuntu - node.js

I am trying to build rethinkdb from source and hitting on this error:
npm WARN engine amdefine#0.1.1: wanted: {"node":">=0.4.2"} (current: {"node":"0.13.0-pre","npm":"2.11.3"})
npm WARN engine mime-db#1.13.0: wanted: {"node":">= 0.6"} (current: {"node":"0.13.0-pre","npm":"2.11.3"})
npm http fetch 200 https://registry.npmjs.org/is-property/-/is-property-1.0.2.tgz
npm ERR! Linux 3.16.0-30-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "--userconfig" "/home/myth/rethinkdb/mk/support/config/npm.conf" "--cache" "/home/myth/rethinkdb/external/npm_cache-2cOLXsUU" "--cache" "/home/myth/rethinkdb/external/admin-deps_2.0.3.fetch-2Suk269g/npm-cache" "install"
npm ERR! node v0.13.0-pre
npm ERR! npm v2.11.3
npm ERR! code ENOTSUP
npm ERR! notsup Unsupported
npm ERR! notsup Not compatible with your version of node/npm: vinyl-fs#0.3.13
npm ERR! notsup Required: {"node":">= 0.10"}
npm ERR! notsup Actual: {"npm":"2.11.3","node":"0.13.0-pre"}
npm ERR! Please include the following file with any support request:
npm ERR! /home/myth/rethinkdb/external/admin-deps_2.0.3.fetch-bcJwskoE/npm-debug.log
Full error log: ./build/external/admin-deps_2.0.3_fetch.log
make[1]: *** [external/admin-deps_2.0.3] Error 1
make: *** [make] Error 2
Seems like an appropriate version of npm is missing. Which version do I need?
How should I diagnose this problem?

It seems the problem is not RethinkDB, but the vinyl-fs (an npm module) which doesn't seem to like the fact that you're using a version of node with -pre. Perhaps you can try installing nvm and using 0.12 to install RethinKDB?

Related

npm is throwing me an error and i'm not sure how to fix it. already tried upgrading node. It happens when I run the install command (`npm i`)

these are the errors i get from running npm i:
npm ERR! code EBADENGINE
npm ERR! engine Unsupported engine
npm ERR! engine Not compatible with your version of node/npm: #sveltejs/kit#1.0.0-next.378
npm ERR! notsup Not compatible with your version of node/npm: #sveltejs/kit#1.0.0-next.378
npm ERR! notsup Required: {"node":">=16.9"}
npm ERR! notsup Actual: {"npm":"7.10.0","node":"v16.0.0"}

Version incompatibility node and npm?

I using from this command "nvm install node" and then nvm use 11, but get me bellow error:
npm ERR! notsup Required: {"node":">=14.15.0 <15"}
npm ERR! notsup Actual: {"npm":"6.7.0","node":"11.15.0"}
But I need just to use nvm use 11, what can I do? (witch version of npm?)
My system is Mac.
My error is:
> npm install && npx cordova prepare && npx gulp
npm ERR! code ENOTSUP
npm ERR! notsup Unsupported engine for moodlemobile#3.9.6-dev: wanted: {"node":">=14.15.0 <15"} (current: {"node":"11.15.0","npm":"6.7.0"})
npm ERR! notsup Not compatible with your version of node/npm: moodlemobile#3.9.6-dev
npm ERR! notsup Not compatible with your version of node/npm: moodlemobile#3.9.6-dev
npm ERR! notsup Required: {"node":">=14.15.0 <15"}
npm ERR! notsup Actual: {"npm":"6.7.0","node":"11.15.0"}
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/asheq/.npm/_logs/2021-09-02T04_50_08_043Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! moodlemobile#3.9.6-dev setup: `npm install && npx cordova prepare && npx gulp`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the moodlemobile#3.9.6-dev setup script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/asheq/.npm/_logs/2021-09-02T04_50_08_060Z-debug.log

Error while starting the backend in the node app.js in angular 6

When I am starting my backend in the angular using the node app.js command in the terminal it shows some error
I tried all the methods like npm-install or npm-install --save
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents#1.2.7
npm WARN optional Skipping failed optional dependency /nodemon/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents#1.2.7
npm WARN mongoose-type-url#1.0.5 requires a peer of mongoose# but none was installed.
npm ERR! Linux 4.15.0-44-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! file /home/suraj/contactly/sales-tool/salesapp/node_modules/.staging/encrypt-36282e46/package.json
npm ERR! code EJSONPARSE
npm ERR! Failed to parse json
npm ERR! Unexpected token 'n' at 1:3
npm ERR! { name: 'encrypt',
npm ERR! ^
npm ERR! File: /home/suraj/contactly/sales-tool/salesapp/node_modules/.staging/encrypt-36282e46/package.json
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR!
npm ERR! This is not a bug in npm.
npm ERR! Tell the package author to fix their package.json file. JSON.parse
npm ERR! Please include the following file with any support request:
npm ERR! /home/suraj/contactly/sales-tool/salesapp/npm-debug.log
want to fix the bug

Cannot install cross-env on Laravel 5.5 fresh project

I'm trying to install corss-env on fresh Laravel 5.5 project.
I'm using
node v6.12.0
nmp 3.10.10
Vagrant 2.0.1
laravel/homestead (virtualbox, 4.0.0) on Windows 10
Ubuntu 16.04.3 LTS
I have been searching on the web, I'll try the following suggestions, but neither have solved the issue
https://github.com/JeffreyWay/laravel-mix/issues/478
https://github.com/react-boilerplate/react-boilerplate/issues/493
https://github.com/JeffreyWay/laravel-mix/issues/805
https://laracasts.com/discuss/channels/laravel/laravel-mix-windows-npm-error?page=1
This is the console output
$ npm install --save-dev cross-env
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! Linux 4.4.0-92-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "cross-env"
npm ERR! node v6.12.0
npm ERR! npm v3.10.10
npm ERR! path ../cross-env/dist/bin/cross-env.js
npm ERR! code EPROTO
npm ERR! errno -71
npm ERR! syscall symlink
npm ERR! EPROTO: protocol error, symlink '../cross-env/dist/bin/cross-env.js' -> '/home/vagrant/code/laravel-5.5/node_modules/.bin/cross-env'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /home/vagrant/code/laravel-5.5/npm-debug.log

When I install the node.js, it gives me some errors.And install failed

C:\Users\ASUS>npm install -g n
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\ASUS\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "n"
npm ERR! node v6.10.0
npm ERR! npm v4.3.0
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for n#2.1.4: wanted {"os":"!win32","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! notsup Valid OS: !win32
npm ERR! notsup Valid Arch: any
npm ERR! notsup Actual OS: win32
npm ERR! notsup Actual Arch: x64
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\ASUS\AppData\Roaming\npm-cache\_logs\2017-03-07T11_09_13_826Z-debug.log
This is the error, I don't know how to fix it.
Looking at the README for the library you're trying to install (which you should always, always do!):
(Unfortunately n is not supported on Windows yet. If you're able to make it work, send in a pull request!)
And sure enough, that's what the error message is telling you:
Unsupported platform for n#2.1.4: wanted {"os":"!win32","arch":"any"} (current: {"os":"win32","arch":"x64"})
It's saying that the package wanted to be installed on a !win32 platform (in other words, not Windows), but your current platform doesn't meet that requirement.
The package n that you're trying to install doesn't have Windows support (as mentioned in the README).

Resources