无法部署Django

时间:2015-06-24 16:18:00

标签: python django node.js ubuntu npm

我正在尝试部署Django应用程序,但是我遇到了NPM的一些问题。在运行脚本时,我被npm输出错误,希望能够获得所需的所有信息。

我使用Digital Ocean作为服务器,并在Ubuntu Linux上单击django应用程序。

我已经尝试过常见的东西,例如清除NPM缓存,检查.npm文件夹的权限并以sudo身份运行,但问题仍然存在。有人遇到过这个吗?

Checking name of current directory
Deleting old *.pyc files
Checking whether GAE is installed in /home/django/django_project/oppia/../oppia_tools/google_appengine_1.8.8/google_appengine
Checking if webtest is installed in third_party
done
Checking if node.js is installed in /home/django/django_project/oppia/../oppia_tools
Checking whether jsrepl is installed in third_party
Installing CoffeeScript
npm http GET https://registry.npmjs.org/coffee-script/1.2.0
npm http 304 https://registry.npmjs.org/coffee-script/1.2.0
coffee-script@1.2.0 ../node_modules/coffee-script
Installing uglify
npm http GET https://registry.npmjs.org/uglify-js
npm http 304 https://registry.npmjs.org/uglify-js
npm http GET https://registry.npmjs.org/yargs
npm http GET https://registry.npmjs.org/uglify-to-browserify
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/source-map/0.1.34
npm http 304 https://registry.npmjs.org/uglify-to-browserify
npm http 304 https://registry.npmjs.org/yargs
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/source-map/0.1.34
npm http GET https://registry.npmjs.org/camelcase
npm http GET https://registry.npmjs.org/decamelize
npm http GET https://registry.npmjs.org/window-size/0.1.0
npm http GET https://registry.npmjs.org/wordwrap/0.0.2
npm http 304 https://registry.npmjs.org/camelcase
npm http 304 https://registry.npmjs.org/wordwrap/0.0.2
npm http 304 https://registry.npmjs.org/decamelize
npm ERR! Error: ENOENT, lstat '/home/django/django_project/node_modules/uglify-js/node_modules/source-map/lib/source-map/util.js'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Linux 3.13.0-43-generic
npm ERR! command "/home/django/django_project/oppia/../oppia_tools/node-0.10.1/bin/node" "/home/django/django_project/oppia_tools/node-0.10.1/bin/npm" "install" "uglify-js"
npm ERR! cwd /home/django/django_project/oppia
npm ERR! node -v v0.10.1
npm ERR! npm -v 1.2.15
npm ERR! path /home/django/django_project/node_modules/uglify-js/node_modules/source-map/lib/source-map/util.js
npm ERR! fstream_path /home/django/django_project/node_modules/uglify-js/node_modules/source-map/lib/source-map/util.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /home/django/django_project/oppia_tools/node-0.10.1/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: No compatible version found: camelcase@'^1.0.2'
npm ERR! Valid install targets:
npm ERR! ["1.0.0","1.0.1","1.0.2","1.1.0"]
npm ERR!     at installTargetsError (/home/django/django_project/oppia_tools/node-0.10.1/lib/node_modules/npm/lib/cache.js:684:10)
npm ERR!     at /home/django/django_project/oppia_tools/node-0.10.1/lib/node_modules/npm/lib/cache.js:606:10
npm ERR!     at saved (/home/django/django_project/oppia_tools/node-0.10.1/lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js:138:7)
npm ERR!     at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Linux 3.13.0-43-generic
npm ERR! command "/home/django/django_project/oppia/../oppia_tools/node-0.10.1/bin/node" "/home/django/django_project/oppia_tools/node-0.10.1/bin/npm" "install" "uglify-js"
npm ERR! cwd /home/django/django_project/oppia
npm ERR! node -v v0.10.1
npm ERR! npm -v 1.2.15
npm http 304 https://registry.npmjs.org/window-size/0.1.0
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/django/django_project/oppia/npm-debug.log
npm ERR! not ok code 0

我将Google Code项目分叉到我的GitHub,你可以在这里找到:https://github.com/BitSpaceDevelopment/oppia但原始项目在这里:https://code.google.com/p/oppia/

0 个答案:

没有答案