【问题标题】:Issues when trying to install Socioboard-api NodeJs尝试安装 Socioboard-api NodeJs 时的问题
【发布时间】:2020-02-01 04:57:42
【问题描述】:

我正在尝试安装 socialbaord 从以下网址 https://github.com/socioboard/Socioboard-4.0

我尝试安装它的一部分,即https://github.com/socioboard/Socioboard-4.0/tree/master/socioboard-web-php,并成功了

但是

我无法安装 API 部分 https://github.com/socioboard/Socioboard-4.0/tree/master/socioboard-api

当我尝试安装 Socioboard API 时出现以下错误

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

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.

【问题讨论】:

    标签: node.js npm npm-install


    【解决方案1】:

    在与您一起解决问题后.. 我们发现您需要按照文档安装所有文件夹中的所有软件包。

    此外,他们的文档缺少正确安装应用程序的信息,我们需要安装 sequelize-cli,最好安装它globally

    安装后 .. 只需删除 sequelize 二进制文件的完整链接../node_modules/.bin/sequelize 并改为输入sequelize

    【讨论】:

    • 我尝试了以下错误sh : The term 'sh' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + sh ../node_modules/.bin/sequelize db:migrate + ~~ + CategoryInfo : ObjectNotFound: (sh:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
    • 是通过powershell还是通常的cmd?
    • 在 PowerShell 中
    • 不幸的是,我现在使用的是 linux,所以无法测试.. 但你可以像这样..\node_modules\.bin\sequelize db:migrate 作为反斜杠尝试一下
    • 我在 CMD 和 PowerShell 中都尝试过,但在 power shell 中的 CMD The system cannot find the path specified. 中出现错误,与之前的错误相同。
    猜你喜欢
    • 2021-05-07
    • 1970-01-01
    • 2020-06-28
    • 2021-04-10
    • 1970-01-01
    • 1970-01-01
    • 2017-07-20
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多