我试图在已经运行OpenEDX的Ubuntu 14.04服务器上安装电子商务服务。
我被困在那里。我将此项目(https://github.com/edx/ecommerce)克隆到/ opt / bitnami / apps / edx / edx-platform中,并在该文件夹中运行命令“ make requirements”。但随后在25分钟后崩溃了。大约有4-5次警告

npm install
npm WARN deprecated [email protected]: Please update to ...
npm WARN deprecated [email protected]: ReDoS vulnerability parsing..
...
npm WARN optional dep failed, continuing [email protected]
 GitHub
edx/ecommerce
ecommerce - Django application used to manage edX's product catalog and handle orders for those products.


我完全呆在那里,甚至对配置该平台都不了解..由于文档(http://edx.readthedocs.io/projects/edx-installing-configuring-and-running/en/latest/ecommerce/install_ecommerce.html#switch-from-shoppingcart-to-e-commerce)指出我必须运行虚拟环境,因此我尝试了bitnami文档中的以下内容:

激活虚拟环境(venv)

source /opt/bitnami/apps/edx/edx-platform/venv/bin/


克隆GitHub Repo并执行“制作要求”

cd /opt/bitnami/apps/edx
sudo git clone https://github.com/edx/ecommerce
cd ecommerce
sudo make requirements


现在它告诉我

    (venv)user@OpenEdxDev:/opt/bitnami/apps/edx/ecommerce$ sudo make requirements
npm install
npm WARN package.json edx-ecommerce@ No license field.
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS iss                                                                          ue
npm WARN deprecated [email protected]: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/adv                                                                          isories/130
npm WARN deprecated [email protected]: use uuid module instead
npm WARN optional dep failed, continuing [email protected]
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS iss                                                                          ue
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issu                                                                          e
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. P                                                                          lease update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
/
> [email protected] postinstall /opt/bitnami/apps/edx/ecommerce/node_modules/geckodriver
> node index.js

Complete.g... /kodriver... -
|
> [email protected] install /opt/bitnami/apps/edx/ecommerce/node_modules/phantomjs
> node install.js

PhantomJS not found on PATH
Downloading https://github.com/Medium/phantomjs/releases/download/v1.9.19/phantomjs-1.9.8-linux-x86_64.tar                                                                          .bz2
Saving to /opt/bitnami/apps/edx/ecommerce/node_modules/phantomjs/phantomjs/phantomjs-1.9.8-linux-x86_64.ta                                                                          r.bz2
Receiving...
  [================------------------------] 39%
Received 12854K total.
Extracting tar contents (via spawned process)
Removing /opt/bitnami/apps/edx/ecommerce/node_modules/phantomjs/lib/phantom
Copying extracted folder /opt/bitnami/apps/edx/ecommerce/node_modules/phantomjs/phantomjs/phantomjs-1.9.8-                                                                          linux-x86_64.tar.bz2-extract-1481636967989/phantomjs-1.9.8-linux-x86_64 -> /opt/bitnami/apps/edx/ecommerce                                                                          /node_modules/phantomjs/lib/phantom
Writing location.js file
Done. Phantomjs binary available at /opt/bitnami/apps/edx/ecommerce/node_modules/phantomjs/lib/phantom/bin                                                                          /phantomjs
[email protected] node_modules/karma-sinon

[email protected] node_modules/karma-firefox-launcher

[email protected] node_modules/karma-requirejs

[email protected] node_modules/karma-jasmine

[email protected] node_modules/requirejs

[email protected] node_modules/karma-spec-reporter
└── [email protected]

[email protected] node_modules/jasmine-core

[email protected] node_modules/sinon
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected] ([email protected])

[email protected] node_modules/gulp
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected]
├── [email protected] ([email protected])
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected], ha                                                                          [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], mkd                                                                          [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected].                                                                          2, [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected],                                                                           [email protected], [email protected], [email protected], [email protected], [email protected], f                                                                          [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], datefo                                                                          [email protected])

[email protected] node_modules/karma-coverage
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], sup                                                                          [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected].                                                                          0, [email protected])

[email protected] node_modules/gulp-jshint
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], lodash._rees                                                                          [email protected], [email protected], [email protected], [email protected], [email protected], f                                                                          [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], through2@2                                                                          .0.3, [email protected], [email protected])
└── [email protected]

[email protected] node_modules/jshint
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], dom                                                                          [email protected])
└── [email protected]

[email protected] node_modules/geckodriver
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected]                                                                          .0, [email protected], [email protected], [email protected], [email protected], unzip-response@1                                                                          .0.2, [email protected], [email protected], [email protected], [email protected], readabl                                                                          [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])

[email protected] node_modules/karma
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], on-finished                                                                          @2.3.0, [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], is-glob@2                                                                          .0.1, [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], socket.i                                                                          [email protected], [email protected], [email protected])
├── [email protected]
└── [email protected]

[email protected] node_modules/gulp-jscs
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], lodash._r                                                                          [email protected], [email protected], [email protected], [email protected], [email protected], m                                                                          [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], multipipe@                                                                          0.1.2, [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected]                                                                          .4, [email protected], [email protected], [email protected], [email protected], [email protected], jscs-preset-wik                                                                          [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]                                                                          , [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], htmlparser2@                                                                          3.8.3, [email protected], [email protected], [email protected], [email protected], [email protected])

[email protected] node_modules/bower

[email protected] node_modules/phantomjs
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], caseless@0                                                                          .11.0, [email protected], [email protected], [email protected], [email protected], [email protected], t                                                                          [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]                                                                          .3, [email protected], [email protected], [email protected])
./node_modules/.bin/bower install
bower ESUDO         Cannot be run with sudo

Additional error details:
Since bower is a user command, there is no need to execute it with superuser permissions.
If you're having permission errors when using bower without sudo, please spend a few minutes learning more                                                                           about how your system should work and make any necessary repairs.

http://www.joyent.com/blog/installing-node-and-npm
https://gist.github.com/isaacs/579814

You can however run a command with sudo using --allow-root option
make: *** [requirements.js] Error 1


但是当我想迁移它时,会发生这种情况:

sudo make migrate
python manage.py migrate
Traceback (most recent call last):
  File "manage.py", line 8, in <module>
    from django.core.management import execute_from_command_line
ImportError: No module named django.core.management
make: *** [migrate] Error 1


现在我完全迷路了。也许我缺少一些完全必要的东西。我也遵循了本教程,但是它也不起作用:http://edx.readthedocs.io/projects/edx-installing-configuring-and-running/en/latest/ecommerce/install_ecommerce.html#switch-from-shoppingcart-to-e-commerce

最佳答案

您遵循的说明适用于devstack安装,如果我没有记错的话,Bitnami edX是edX的本机安装,在这种情况下,您应遵循以下说明:
https://openedx.atlassian.net/wiki/spaces/OpenOPS/pages/110330276/How+to+Install+and+Start+the+E-Commerce+Service+in+Native+Installations

(事实上​​,您可以在较旧版本的Ubuntu上运行实例,但在此安装中不会影响您)

关于python - 如何正确安装Open edX电子商务服务?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/41123557/

10-12 04:32