【问题标题】:sentry install error in step webpack -p --bail步骤 webpack -p --bail 中的哨兵安装错误
【发布时间】:2016-02-17 15:30:57
【问题描述】:

安装哨兵8.0.0:

pip install -e .

出现以下错误:

running [webpack]
Container#eachAtRule is deprecated. Use Container#walkAtRules instead.
Container#eachRule is deprecated. Use Container#walkRules instead.
Container#eachDecl is deprecated. Use Container#walkDecls instead.
Node#removeSelf is deprecated. Use Node#remove.
Traceback (most recent call last):
  File "/www/sentry/sentry/setup.py", line 264, in run
    self._build_static()
  File "/www/sentry/sentry/setup.py", line 306, in _build_static
    cwd=work_path, env=env)
  File "/usr/lib/python2.7/subprocess.py", line 544, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
CalledProcessError: Command '['node_modules/.bin/webpack', '-p', '--bail']' returned non
-zero exit status -9
unable to build Sentry's static assets!
Hint: You might be running an invalid version of NPM.

----------------------------------------
Command "/www/sentry/bin/python -c "import setuptools, tokenize; __file__='/www/sentry/sentry/setup.py'; exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" develop --no-deps" failed with error code 1 in /www/sentry/sentry

我试过 npm@5.0.0 npm@4.1 npm@2.11.2 都没有用

【问题讨论】:

    标签: webpack sentry


    【解决方案1】:

    你可能会尝试这样做,看看你是否会得到更好的错误:

    • 拉下哨兵源代码
    • 从 Sentry 根目录运行“npm install”

    我们需要 Node 0.10.x 或更高版本,但它也应该在最新版本上运行。我相信我们会在本地测试 0.10 和 0.12。

    【讨论】:

    • 谢谢!我重试使用 node 0.10.40 的版本是工作,但 node-v0.12.6 有同样的错误。
    猜你喜欢
    • 2014-06-11
    • 2021-08-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-10-31
    • 1970-01-01
    • 1970-01-01
    • 2019-09-06
    相关资源
    最近更新 更多