Error in installing pcf-scripts using npm i - node.js

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

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"}

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/

Ordinary Err from fsevents when trying to install VueJs project

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"
},

Failing to npm install socket.io, notsup Unsupported platform for fsevents#1.1.3

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.

Resources