我目前正在尝试按照此处的说明构建和安装angular.js:https://docs.angularjs.org/misc/contribute#Installing-dependencies
然而,当我到达安装node.js依赖项的阶段时,我收到以下警告:(还有更多错误,但安装后继续安装,因此它们在控制台上不可用)。
WARN engine is-buffer@1.1.3: wanted: {"node":">=0.12"} (current: {"node":"v0.10.25","npm":"1.3.10"})
这个警告很奇怪,但是我的印象是我已经安装了节点版本0.12。
日志文件中的错误如下所示:
147687 silly gunzTarPerm extractEntry library/fn/number/virtual/to-precision.js
147688 error weird error 127
147689 verbose exit [ 1, true ]
...
147732 error tar pack Error reading /home/dimitri/tmp/npm-6229-5eEV6QxH/1470304972279-0.6845361003652215/package
147733 silly lockFile 0e9c507f-72279-0-6845361003652215-package tar:///home/dimitri/tmp/npm-6229-5eEV6QxH/1470304972279-0.6845361003652215/package
147734 silly lockFile 0e9c507f-72279-0-6845361003652215-package tar:///home/dimitri/tmp/npm-6229-5eEV6QxH/1470304972279-0.6845361003652215/package
...
error Error: ENOENT, lstat '/home/dimitri/tmp/npm-6229-5eEV6QxH/1470304951838-0.9155439815949649/package/src/core/longstacktraces/longstacktraces.js'
147757 error If you need help, you may report this log at:
147757 error <http://github.com/isaacs/npm/issues>
147757 error or email it to:
147757 error <npm-@googlegroups.com>
147758 error System Linux 3.13.0-37-generic
147759 error command "/usr/bin/nodejs" "/usr/bin/npm" "install"
147760 error cwd /home/dimitri/angular.js
147761 error node -v v0.10.25
147762 error npm -v 1.3.10
147763 error path /home/dimitri/tmp/npm-6229-5eEV6QxH/1470304951838-0.9155439815949649/package/src/core/longstacktraces/longstacktraces.js
147764 error fstream_path /home/dimitri/tmp/npm-6229-5eEV6QxH/1470304951838-0.9155439815949649/package/src/core/longstacktraces/longstacktraces.js
147765 error fstream_type File
147766 error fstream_class FileWriter
147767 error code ENOENT
147768 error errno 34
147769 error fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
147769 error fstream_stack Object.oncomplete (fs.js:107:15)
...