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/
Related
trying to upadate node version.
Renter image description hereunning this sequence of commands.
1.npm cache clean -f
npm install -g n
after running the second command I am getting this error
$ npm install -g n
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for n#9.0.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
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\shara\AppData\Roaming\npm-cache_logs\2022-09-10T16_40_44_122Z-debug.log
Help would be greatly appreciated
https://nodejs.org/en/
If you visit this official node.js website, you can download the latest version depending on your operating system.
You will be able to successfully upgrade your node version this way
There is an error when I tried to upgrade my installed pcf-scripts by invoking npm i pcf-scripts#1.7.2. My current pcf-scripts version is 1.5.5. The error is
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for fsevents#2.3.2: wanted {"os":"darwin"} (current: {"os":"win32","arch":"x64"})
npm ERR! notsup Valid OS: darwin
npm ERR! notsup Valid Arch: undefined
npm ERR! notsup Actual OS: win32
npm ERR! notsup Actual Arch: x64
I'm getting the following error when trying to install n, after getting a previous error saying that I need to upgrade my node to run npm commands.
The error is as follows:
PS C:\new-project> npm install -g n
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for n#7.3.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
Npm version
PS C:\new-project> npm -v
6.9.0
Node version
PS C:\new-project> node -v
v12.5.0
It's because the nvm project is only for linux and macos, and cannot be installed in windows.
But there is an alternative which is not clone but recommend nodejs version manager. Here is the link
Ordinary Err from fsevents when trying to install VueJs project.
I'm using windows 10 as a development platform
I have tried several alternatives without success.
npm install --no-optional (Does not work)
npm install -f (Does not work)
In this case, it would not be just a warning message. An error is issued and it does not finish compiling the complete code and the server "npm run serves" does not up
Could anyone help?.
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for fsevents#2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","a
rch":"x64"})
npm ERR! notsup Valid OS: darwin
npm ERR! notsup Valid Arch: any
npm ERR! notsup Actual OS: win32
npm ERR! notsup Actual Arch: x64
Add the following to package.json:
"optionalDependencies": {
"fsevents": "1.2.12"
},
Trying to "npm install socket.io" on a Ubuntu EC2 instance and getting this error. Does this mean I cannot use Ubuntu? Or is there a way to fix this?
$ npm install socket.io
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for fsevents#1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! notsup Valid OS: darwin
npm ERR! notsup Valid Arch: any
npm ERR! notsup Actual OS: linux
npm ERR! notsup Actual Arch: x64
npm ERR! A complete log of this run can be found in:
npm ERR! /home/ubuntu/.npm/_logs/2018-03-15T00_57_15_115Z-debug.log
$ node --version
v8.9.4
$ npm --version
5.7.1
Here is the debug log it referred to:
https://gist.github.com/lampshade9909/57c631be80a75c1675c315de05e51747
It seems that I may need to install an older version of node. I'm trying 6.10 and it installed.
I am on Ubuntu and get that error all the time. I believe fsevents#1.1.3 is for OS x . Linux system ignores fsevents whereas mac will install it.