从上周五开始,现在用nodejs云引擎部署项目总是报错失败,长时间卡在“正在下载和安装依赖项 ...”这一步,然后报错了,报错内容如下:
正在下载和安装依赖项 ...
部署失败:The command '/bin/sh -c chown leanengine:leanengine . && su leanengine -c 'npm install --production --registry=http://registry.npm.taobao.org --disturl=http://npm.taobao.org/dist' && su leanengine -c 'npm list --depth 0'' returned a non-zero code: 1:
npm WARN package.json 51wish@1.0.0 No repository field.
npm WARN package.json 51wish@1.0.0 No README data
npm WARN deprecated gulp-minify-css@1.2.4: Please use gulp-clean-css
npm WARN peerDependencies The peer dependency stream-browserify@* included from bl will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN optional dep failed, continuing fsevents@1.1.1
npm WARN optional dep failed, continuing fsevents@1.1.1
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN optional dep failed, continuing fsevents@1.1.1
npm WARN optional dep failed, continuing fsevents@1.1.1
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated node-uuid@1.4.7: use uuid module instead
npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
> phantomjs-prebuilt@2.1.14 install /home/leanengine/app/node_modules/webshot/node_modules/phantomjs-prebuilt
> node install.js
PhantomJS not found on PATH
Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-linux-x86_64.tar.bz2
Saving to /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
Receiving...
Error making request.
Error: read ECONNRESET
at exports._errnoException (util.js:907:11)
at TLSWrap.onread (net.js:558:26)
Please report this full log at https://github.com/Medium/phantomjs
> pngquant-bin@3.1.1 postinstall /home/leanengine/app/node_modules/imagemin-pngquant/node_modules/pngquant-bin
> node lib/install.js
✔ pngquant pre-build test passed successfully
npm WARN optional dep failed, continuing phantomjs-prebuilt@2.1.14
> gifsicle@3.0.4 postinstall /home/leanengine/app/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle
> node lib/install.js
✔ gifsicle pre-build test passed successfully
> jpegtran-bin@3.2.0 postinstall /home/leanengine/app/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin
> node lib/install.js
✔ jpegtran pre-build test passed successfully
> optipng-bin@3.1.2 postinstall /home/leanengine/app/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-optipng/node_modules/optipng-bin
> node lib/install.js
✔ optipng pre-build test passed successfully
> node-sass@3.13.1 install /home/leanengine/app/node_modules/gulp-sass/node_modules/node-sass
> node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v3.13.1/linux-x64-46_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v3.13.1/linux-x64-46_binding.node":
ESOCKETTIMEDOUT
Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.
export HTTP_PROXY=http://example.com:1234
or configure npm proxy via
npm config set proxy http://example.com:8080
> node-sass@3.13.1 postinstall /home/leanengine/app/node_modules/gulp-sass/node_modules/node-sass
> node scripts/build.js
Binary found at /home/leanengine/app/node_modules/gulp-sass/node_modules/node-sass/vendor/linux-x64-46/binding.node
Testing binary
Bus error (core dumped)
npm ERR! Linux 4.4.0-67-generic
npm ERR! argv "/usr/local/nvm/versions/node/v4.8.0/bin/node" "/usr/local/bin/npm" "install" "--production" "--registry=http://registry.npm.taobao.org" "--disturl=http://npm.taobao.org/dist"
npm ERR! node v4.8.0
npm ERR! npm v2.15.11
npm ERR! code ELIFECYCLE
npm ERR! node-sass@3.13.1 postinstall: `node scripts/build.js`
npm ERR! Exit status 135
npm ERR!
npm ERR! Failed at the node-sass@3.13.1 postinstall script 'node scripts/build.js'.
npm ERR! This is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node scripts/build.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs node-sass
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls node-sass
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/leanengine/app/npm-debug.log
求帮助