Issues when trying to install Socioboard-api NodeJs - node.js

I am trying to install sociobaord
from the following URL
https://github.com/socioboard/Socioboard-4.0
I tried installing a part of it i.e https://github.com/socioboard/Socioboard-4.0/tree/master/socioboard-web-php and have succeeded
but
I am unable to install the API part https://github.com/socioboard/Socioboard-4.0/tree/master/socioboard-api
when I am trying to install Socioboard API I am getting following errors
D:\wamp\www\social\user>npm install
npm WARN user#1.0.0 No description
npm WARN user#1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.7 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
audited 877396 packages in 46.139s
found 0 vulnerabilities
and
D:\wamp\www\social\library\sequelize-cli> ../node_modules/.bin/sequelize db:migrate
'..' is not recognized as an internal or external command,
operable program or batch file.

After going through the issue with you .. we came to figure that you need to install all the packages in all the folders as per the documentation.
Also, their documentation is missing that to install the app correctly we need to install sequelize-cli, and preferably to install it globally.
once installed .. just remove the full link to the sequelize binary ../node_modules/.bin/sequelize and type sequelize instead

Related

Error while trying to install nodemon with Discord.js [duplicate]

This question already has answers here:
I can´t install nodemon globally, "nodemon" not recognized
(15 answers)
Closed 2 years ago.
When I try to install nodemon with npm install -g nodemon it gives me the following error:
'nodemon' is not recognized as an internal or external command,
operable program or batch file.
It isn't a problem, as it had said, it's an optional dependency, so you don't really need it. Please refer to these answers below:
How to solve npm install throwing fsevents warning on non-MAC OS?
How to fix 'Unsupported platform for fsevents#1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.0.14
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.7

How to clear EPERM : operation not permitted warning while installing gulp

I'm trying to install gulp in Windows8 by issuing the below command,
C:\Users\acer>npm install gulp -g
C:\Users\acer\AppData\Roaming\npm\gulp-> C:\Users\acer\AppData\Roaming\npm\node_modules\gulp\bin\gulp.js
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.7 (node_modules\gulp\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
+ gulp#4.0.0
updated 1 package in 63.384s
Although the installation was successful, while executing the gulp I'm receiving the below error.
C:\Users\acer>gulp -v
'gulp' is not recognized as an internal or external command,
operable program or batch file.
Can someone help to overcome this issue?.
You need to add the npm global directory to your PATH variable. You can do this by executing the below command.
set PATH=%PATH%;C:\Users\YOUR_USER_NAME_OR_LOGIN\AppData\Roaming\npm;
After issuing the above command, try executing gulp -v and it will work.
Hope this helps!

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.7

I'm trying to install Angular using the Angular CLI but I'm getting an error when I try to run this command.
Command
npm install -g #angular/cli
Error:
C:\Users\abc>npm install -g #angular/cli
C:\Users\abc\AppData\Roaming\npm\ng -> C:\Users\abc\AppData\Roaming\npm\node_modules\#angular\cli\bin\ng
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.7 (node_modules\#angular\cli\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
+ #angular/cli#7.3.6
updated 1 package in 102.686s
Node Version v10.15.3
This is a warning not an error, and it's because you're on Windows. FSevents only works on Mac so it's not needed on Windows and that's why it's SKIPPING OPTIONAL DEPENDENCY.
And no as of right now there is no way to get rid of that being printed into the console so just ignore it given the fact that it's not doing anything anyways rather it's just being a bit verbose and telling you that it's not being used.
This is because you're running on windows. A lot of apps use that library, but it only works on the Mac, so they use something else for Windows and Linux. That's why it's listed as "optional". You can ignore the warning.

error running quorra: quorra is not recognized

I received an app that uses quorra, so I installed quorra via the instructions on the webpage
λ npm install -g quorra-cli
C:\Users\****\AppData\Roaming\npm\quorra -> C:\Users\****\AppData\Roaming\npm\node_modules\quorra-cli\quorra.js
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.4 (node_modules\quorra-cli\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
+ quorra-cli#1.0.0
added 209 packages from 124 contributors in 18.942s
But then when I try to run anything, like
quorra ride
quorra new
quorra -v
I get:
'quorra' is not recognized as an internal or external command,
operable program or batch file.
It seems like it cant find where to run the quorra command, but I installed it so I dont understand what else I am supposed to do I didnt find anything else on the docs.
I even tried adding the quora folder
C:\Users****\AppData\Roaming\npm\node_modules\quorra-cli
into my path variable but no luck
Any help?

Force npm install to install optional dependencies for other platforms

I'm building a build task for Visual Studio Team Services. In this task I'm using 7zip-bin to package the binary for 7zip for linux, mac and windows.
This is all nice and it would work if I had the ability to deploy just the package.json to the build server, but no... A build task contains all its dependencies at build time.
Is there a way I can force npm to download all OS optional packages somehow? Or will I have to download the file myself during build and extract it?
Right now I'm using
npm install 7zip-bin --save
Which results in:
C:\temp>npm install
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: 7zip-bin-linux#^1.0.3 (node_modules\7zip-bin\node_modules\7zip-bin-linux):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 7zip-bin-linux#1.0.3: wanted {"os":"linux","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: 7zip-bin-mac#^1.0.1 (node_modules\7zip-bin\node_modules\7zip-bin-mac):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 7zip-bin-mac#1.0.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
installing each optional package directly isn't possible, when I run
npm install 7zip-bin-linux --save
on a windows machine, the install is skipped and I get a EBADPLATFORM error.
I understand I can't run these on my machine, but I need to package them in a vsix file (a glorified zip) so I can use them when my build task is running on these other platforms.
You should depend on these 3 optional packages, because you never know if 7zip-bin will change it's optional dependencies, which you are using directly.
For example:
dependencies: {
"7zip-bin-mac": "^1.0.1",
"7zip-bin-win": "^2.0.2",
"7zip-bin-linux": "^1.0.3"
}
Using either way, you need to run npm install -f to force the installation.

Resources