我从heroku-master撤消了正在进行的项目,并做了一些小的代码更改(JADE,LESS,JS), 不能推回heroku-master ...您能找出问题所在吗?
在JADE中添加了ng-show和ng-if语句,LESS没关系:),在JS中添加了触发函数和用于角度语句的变量
TIGRANs-iMac:tuning-alcar tigranmakaryan$ git push heroku master
Counting objects: 21, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (21/21), done.
Writing objects: 100% (21/21), 24.22 KiB | 8.07 MiB/s, done.
Total 21 (delta 14), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Node.js app detected
remote:
remote: -----> Creating runtime environment
remote:
remote: NPM_CONFIG_LOGLEVEL=error
remote: NODE_ENV=production
remote: NODE_MODULES_CACHE=false
remote: NODE_VERBOSE=false
remote:
remote: -----> Installing binaries
remote: engines.node (package.json): unspecified
remote: engines.npm (package.json): unspecified (use default)
remote:
remote: Resolving node version 12.x...
remote: Downloading and installing node 12.13.1...
remote: Using default npm version: 6.12.1
remote:
remote: -----> Restoring cache
remote: Caching has been disabled because NODE_MODULES_CACHE=false
remote:
remote: -----> Installing dependencies
remote: Installing node modules (package.json + package-lock)
remote:
remote: > uws@9.14.0 install /tmp/build_aa2ee94a07a4c8cc851feb7e1ea4c8d4/node_modules/uws
remote: > node-gyp rebuild > build_log.txt 2>&1 || exit 0
remote:
remote:
remote: > heapdump@0.3.9 install /tmp/build_aa2ee94a07a4c8cc851feb7e1ea4c8d4/node_modules/heapdump
remote: > node-gyp rebuild
remote:
remote: make: Entering directory '/tmp/build_aa2ee94a07a4c8cc851feb7e1ea4c8d4/node_modules/heapdump/build'
remote: CXX(target) Release/obj.target/addon/src/heapdump.o
remote: In file included from ../src/heapdump.cc:17:0:
remote: ../src/compat-inl.h: In static member function ‘static void compat::CpuProfiler::StartCpuProfiling(v8::Isolate*, v8::Local<v8::String>)’:
remote: ../src/compat-inl.h:300:19: error: ‘class v8::Isolate’ has no member named ‘GetCpuProfiler’; did you mean ‘GetHeapProfiler’?
remote: return isolate->GetCpuProfiler()->StartProfiling(title, record_samples);
remote: ^~~~~~~~~~~~~~
remote: GetHeapProfiler
remote: ../src/compat-inl.h:300:73: error: return-statement with a value, in function returning 'void' [-fpermissive]
remote: return isolate->GetCpuProfiler()->StartProfiling(title, record_samples);
remote: ^
remote: ../src/compat-inl.h: In static member function ‘static const v8::CpuProfile* compat::CpuProfiler::StopCpuProfiling(v8::Isolate*, v8::Local<v8::String>)’:
remote: ../src/compat-inl.h:310:19: error: ‘class v8::Isolate’ has no member named ‘GetCpuProfiler’; did you mean ‘GetHeapProfiler’?
remote: return isolate->GetCpuProfiler()->StopProfiling(title);
remote: ^~~~~~~~~~~~~~
remote: GetHeapProfiler
remote: ../src/compat-inl.h: In static member function ‘static v8::Local<v8::String> compat::String::NewFromUtf8(v8::Isolate*, const char*, compat::String::NewStringType, int)’:
remote: ../src/compat-inl.h:341:74: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
remote: isolate, data, static_cast<v8::String::NewStringType>(type), length);
remote: ^
remote: In file included from /app/.cache/node-gyp/12.13.1/include/node/v8-internal.h:14:0,
remote: from /app/.cache/node-gyp/12.13.1/include/node/v8.h:25,
remote: from /app/.cache/node-gyp/12.13.1/include/node/node.h:63,
remote: from ../src/heapdump.cc:15:
remote: /app/.cache/node-gyp/12.13.1/include/node/v8.h:2936:21: note: declared here
remote: Local<String> NewFromUtf8(Isolate* isolate, const char* data,
remote: ^
remote: /app/.cache/node-gyp/12.13.1/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
remote: declarator __attribute__((deprecated(message)))
remote: ^~~~~~~~~~
remote: ../src/heapdump.cc: At global scope:
remote: ../src/heapdump.cc:52:11: error: ‘v8::Handle’ has not been declared
remote: using v8::Handle;
remote: ^~~~~~
remote: ../src/heapdump.cc: In function ‘compat::ReturnType {anonymous}::WriteSnapshot(const ArgumentType&)’:
remote: ../src/heapdump.cc:106:46: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’
remote: String::Utf8Value filename_string(args[0]);
remote: ^
remote: In file included from /app/.cache/node-gyp/12.13.1/include/node/node.h:63:0,
remote: from ../src/heapdump.cc:15:
remote: /app/.cache/node-gyp/12.13.1/include/node/v8.h:3039:5: note: candidate: v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)
remote: Utf8Value(Isolate* isolate, Local<v8::Value> obj);
remote: ^~~~~~~~~
remote: /app/.cache/node-gyp/12.13.1/include/node/v8.h:3039:5: note: candidate expects 2 arguments, 1 provided
remote: ../src/heapdump.cc: In function ‘void {anonymous}::InvokeCallback(const char*)’:
remote: ../src/heapdump.cc:144:32: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
remote: argc, argv);
remote: ^
remote: In file included from ../src/heapdump.cc:15:0:
remote: /app/.cache/node-gyp/12.13.1/include/node/node.h:174:50: note: declared here
remote: NODE_EXTERN v8::Local<v8::Value> MakeCallback(
remote: ^
remote: /app/.cache/node-gyp/12.13.1/include/node/node.h:93:42: note: in definition of macro ‘NODE_DEPRECATED’
remote: __attribute__((deprecated(message))) declarator
remote: ^~~~~~~~~~
remote: ../src/heapdump.cc: In function ‘compat::ReturnType {anonymous}::Configure(const ArgumentType&)’:
remote: ../src/heapdump.cc:157:55: error: no matching function for call to ‘v8::Value::Int32Value()’
remote: PlatformInit(args.GetIsolate(), args[0]->Int32Value());
remote: ^
remote: In file included from /app/.cache/node-gyp/12.13.1/include/node/node.h:63:0,
remote: from ../src/heapdump.cc:15:
remote: /app/.cache/node-gyp/12.13.1/include/node/v8.h:2613:40: note: candidate: v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const
remote: V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
remote: ^~~~~~~~~~
remote: /app/.cache/node-gyp/12.13.1/include/node/v8.h:2613:40: note: candidate expects 1 argument, 0 provided
remote: ../src/heapdump.cc: In function ‘void {anonymous}::Initialize(v8::Local<v8::Object>)’:
remote: ../src/heapdump.cc:164:51: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
remote: C::Integer::New(isolate, kForkFlag));
remote: ^
remote: In file included from /app/.cache/node-gyp/12.13.1/include/node/v8-internal.h:14:0,
remote: from /app/.cache/node-gyp/12.13.1/include/node/v8.h:25,
remote: from /app/.cache/node-gyp/12.13.1/include/node/node.h:63,
remote: from ../src/heapdump.cc:15:
remote: /app/.cache/node-gyp/12.13.1/include/node/v8.h:3403:22: note: declared here
remote: bool Set(Local<Value> key, Local<Value> value));
remote: ^
remote: /app/.cache/node-gyp/12.13.1/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
remote: declarator __attribute__((deprecated(message)))
remote: ^~~~~~~~~~
remote: ../src/heapdump.cc:166:53: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
remote: C::Integer::New(isolate, kSignalFlag));
remote: ^
remote: In file included from /app/.cache/node-gyp/12.13.1/include/node/v8-internal.h:14:0,
remote: from /app/.cache/node-gyp/12.13.1/include/node/v8.h:25,
remote: from /app/.cache/node-gyp/12.13.1/include/node/node.h:63,
remote: from ../src/heapdump.cc:15:
remote: /app/.cache/node-gyp/12.13.1/include/node/v8.h:3403:22: note: declared here
remote: bool Set(Local<Value> key, Local<Value> value));
remote: ^
remote: /app/.cache/node-gyp/12.13.1/include/node/v8config.h:311:3: note: in definition of macro ‘V8_DEPRECATED’
remote: declarator __attribute__((deprecated(message)))
remote: ^~~~~~~~~~
remote: ../src/heapdump.cc:168:74: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
remote: C::FunctionTemplate::New(isolate, Configure)->GetFunction());
remote: ^
remote: In file included from /app/.cache/node-gyp/12.13.1/include/node/node.h:63:0,
remote: from ../src/heapdump.cc:15:
remote: /app/.cache/node-gyp/12.13.1/include/node/v8.h:5995:46: note: candidate: v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)
remote: V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
remote: ^~~~~~~~~~~
remote: /app/.cache/node-gyp/12.13.1/include/node/v8.h:5995:46: note: candidate expects 1 argument, 0 provided
remote: ../src/heapdump.cc:170:78: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’
remote: C::FunctionTemplate::New(isolate, WriteSnapshot)->GetFunction());
remote: ^
remote: In file included from /app/.cache/node-gyp/12.13.1/include/node/node.h:63:0,
remote: from ../src/heapdump.cc:15:
remote: /app/.cache/node-gyp/12.13.1/include/node/v8.h:5995:46: note: candidate: v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)
remote: V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
remote: ^~~~~~~~~~~
remote: /app/.cache/node-gyp/12.13.1/include/node/v8.h:5995:46: note: candidate expects 1 argument, 0 provided
remote: addon.target.mk:107: recipe for target 'Release/obj.target/addon/src/heapdump.o' failed
remote: make: *** [Release/obj.target/addon/src/heapdump.o] Error 1
remote: make: Leaving directory '/tmp/build_aa2ee94a07a4c8cc851feb7e1ea4c8d4/node_modules/heapdump/build'
remote: gyp ERR! build error
remote: gyp ERR! stack Error: `make` failed with exit code: 2
remote: gyp ERR! stack at ChildProcess.onExit (/tmp/build_aa2ee94a07a4c8cc851feb7e1ea4c8d4/.heroku/node/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
remote: gyp ERR! stack at ChildProcess.emit (events.js:210:5)
remote: gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
remote: gyp ERR! System Linux 4.4.0-1057-aws
remote: gyp ERR! command "/tmp/build_aa2ee94a07a4c8cc851feb7e1ea4c8d4/.heroku/node/bin/node" "/tmp/build_aa2ee94a07a4c8cc851feb7e1ea4c8d4/.heroku/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
remote: gyp ERR! cwd /tmp/build_aa2ee94a07a4c8cc851feb7e1ea4c8d4/node_modules/heapdump
remote: gyp ERR! node -v v12.13.1
remote: gyp ERR! node-gyp -v v5.0.5
remote: gyp ERR! not ok
remote: npm ERR! code ELIFECYCLE
remote: npm ERR! errno 1
remote: npm ERR! heapdump@0.3.9 install: `node-gyp rebuild`
remote: npm ERR! Exit status 1
remote: npm ERR!
remote: npm ERR! Failed at the heapdump@0.3.9 install script.
remote: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
remote:
remote: npm ERR! A complete log of this run can be found in:
remote: npm ERR! /tmp/npmcache.vhf9C/_logs/2019-12-11T07_24_40_688Z-debug.log
remote:
remote: -----> Build failed
remote:
remote: We're sorry this build is failing! You can troubleshoot common issues here:
remote: https://devcenter.heroku.com/articles/troubleshooting-node-deploys
remote:
remote: Some possible problems:
remote:
remote: - Node version not specified in package.json
remote: https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
remote:
remote: Love,
remote: Heroku
remote:
remote: ! Push rejected, failed to compile Node.js app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to tuning-alcar.
remote:
To https://git.heroku.com/tuning-alcar.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/tuning-alcar.git'
"dependencies": {
"amqplib": "^0.2.0",
"async": "~0.9.0",
"autoprefixer": "^8.0.0",
"bluebird": "^3.5.1",
"body-parser": "^1.12.0",
"bodybuilder": "^2.2.9",
"connect-multiparty": "^2.1.0",
"connect-redis": "~1.4.5",
"cookie": "^0.3.1",
"cookie-parser": "^1.0.1",
"elastic.js": "^1.2.0",
"elastic.js-update": "^1.1.1",
"elasticsearch": "^14.0.0",
"express": "^3.4.8",
"express-load-ns": "~1.1.9",
"express-validator": "2.8.0",
"fb": "^0.7.0",
"g": "^2.0.1",
"geoip-lite": "*",
"gm": "^1.23.1",
"grunt": "^1.0.2",
"grunt-angular-templates": "^1.1.0",
"grunt-concurrent": "^2.3.1",
"grunt-contrib-clean": "^1.1.0",
"grunt-contrib-concat": "^1.0.1",
"grunt-contrib-copy": "^1.0.0",
"grunt-contrib-cssmin": "^2.2.1",
"grunt-contrib-jade": "^1.0.0",
"grunt-contrib-less": "^1.4.1",
"grunt-contrib-uglify": "^3.3.0",
"grunt-contrib-watch": "^1.0.0",
"grunt-mocha-test": "^0.13.3",
"grunt-ng-annotate": "^3.0.0",
"grunt-postcss": "^0.9.0",
"grunt-spritesmith": "^6.6.0",
"gzippo": "~0.2.0",
"heapdump": "^0.3.7",
"iap_verifier": "0.0.12",
"iso-3166-2": "^1.0.0",
"jade": "*",
"jimp": "^0.2.28",
"karma-jasmine": "^1.1.1",
"load-grunt-tasks": "^3.5.2",
"lodash": "^3.5.0",
"method-override": "^3.0.0",
"minimist": "^1.1.1",
"mobile-detect": "^1.4.1",
"moment": "^2.5.1",
"mongoose": "^4.0.6",
"mongoose-deep-populate": "^3.0.0",
"mongoose-q": "^0.1.0",
"newrelic": "~1.9.0",
"node-recaptcha2": "^2.1.2",
"node-uuid": "~1.4.1",
"nodemailer": "~0.5.15",
"nodemon": "^1.17.2",
"opbeat": "^4.17.0",
"passport": "^0.4.0",
"passport-facebook": "~1.0.2",
"passport-google-oauth": "^1.0.0",
"passport-local": "^1.0.0",
"passport-twitter": "^1.0.4",
"passport-vkontakte": "^0.3.2",
"q": "^1.1.2",
"redis": "~0.9.2",
"request": "~2.27.0",
"sharp": "^0.20.1",
"shortid": "^2.2.8",
"sinon": "^4.3.0",
"sitemap": "^0.7.4",
"socket.io": "^2.0.4",
"socket.io-redis": "^5.2.0",
"streamifier": "~0.1.0",
"time-grunt": "^1.4.0",
"twit": "^1.1.20",
"ua-parser": "^0.3.3",
"uid2": "0.0.3",
"underscore": "~1.5.2",
"uuid": "~1.4.1",
"winston": "^2.4.0",
"xmlbuilder": "^9.0.7",
"xregexp": "^2.0.0"
}