when updating nodeJs gives "ERR! Windows_NT 6.3.9600" error - node.js

I'm trying to update my node using following command
npm cache clean -f
npm install -g n
n stable
while running second command it gives following error
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "n"
npm ERR! node v0.12.0
npm ERR! npm v2.5.1
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported
npm ERR! notsup Not compatible with your operating system or architecture: n#2.0.2
npm ERR! notsup Valid OS: !win32
npm ERR! notsup Valid Arch: any
npm ERR! notsup Actual OS: win32
npm ERR! notsup Actual Arch: x64

As per the documentation of module n:
Note: Does not work on Windows at the moment. Pull Requests are appreciated.
So, they do not support windows OS as of now. And the same issue is reported by the module also when you are trying to install on your machine. Please refer to your error-stack-trace. I am outlining the relevant error-stack-trace as below for your reference:
npm ERR! notsup Unsupported
npm ERR! notsup Not compatible with your operating system or architecture: n#2.0.2
npm ERR! notsup Valid OS: !win32
npm ERR! notsup Valid Arch: any
npm ERR! notsup Actual OS: win32
npm ERR! notsup Actual Arch: x64
Please install the latest node executables for windows from here. And this should help you upgrade node on your system.

Related

How can we do insert into mdb nodejs from linux/macos?

I try to used node-adodb but it didnt work. It works on Windows, but not on MacOS, Linux. Please help.
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for node-adodb#5.0.3: wanted
{"os":"win32"} (current: {"os":"darwin","arch":"arm64"})
npm ERR! notsup Valid OS: win32
npm ERR! notsup Valid Arch: undefined
npm ERR! notsup Actual OS: darwin
npm ERR! notsup Actual Arch: arm64

"npm install -g n" then Error: npm ERR! code EBADPLATFORM

My aim is to update Node.js to the latest.
I followed the instructions on this page.
I got the error when executing npm install -g n:
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for n#6.7.0: 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
I don't know what that means.
You can still install newest/needed version of Node.js on Windows by downloading it from: https://nodejs.org/en/download/

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).

Building rethinkdb from source on Ubuntu

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?

Resources