主頁 > 區塊鏈 > herokurailsbuild失敗并出現瘋狂錯誤......可能是節點問題?

herokurailsbuild失敗并出現瘋狂錯誤......可能是節點問題?

2022-03-29 05:26:32 區塊鏈

我有一個應用程式一年左右沒有更新,今天我做了一個微小的改變,沒有破壞任何東西,但是當我推動掌握時,我得到了很多東西......你會在下面看到. 做了一些谷歌搜索,注意到它可能是一個節點版本問題,所以我添加了heroku buildpack所以結果是這樣的,heroku/nodejs首先有 buildpack 是允許 Heroku 使用我指定的版本packages.json而不是它的默認值:

Using buildpacks:
1. heroku/nodejs
2. heroku/ruby

并進一步指定版本packages.json

{
  "name": "timely",
  "private": true,
  "dependencies": {
    "@rails/actioncable": "^6.0.0",
    "@rails/activestorage": "^6.0.0",
    "@rails/ujs": "^6.0.0",
    "@rails/webpacker": "4.2.2",
    "jasmine-core": "^3.5.0",
    "jquery": "^3.4.1",
    "turbolinks": "^5.2.0"
  },
  "version": "0.1.0",
  "devDependencies": {
    "webpack-dev-server": "^3.10.1"
  },
  "engines": {
    "node": "16.x"
  }
}

但不幸的是,這并沒有解決問題。我仍然收到一個巨大的錯誤流......有人看到類似的東西并且可以指出我正確的方向嗎?完整流在這里:https ://gist.github.com/jmzbond/8a8785321752c36e2e83a5c65697d734

remote: -----> Building on the Heroku-18 stack
remote: -----> Using buildpacks:
remote:        1. heroku/nodejs
remote:        2. heroku/ruby
remote: -----> Node.js app detected
remote:        
remote: -----> Creating runtime environment
remote:        
remote:        NPM_CONFIG_LOGLEVEL=error
remote:        USE_YARN_CACHE=true
remote:        NODE_ENV=production
remote:        NODE_MODULES_CACHE=true
remote:        NODE_VERBOSE=false
remote:        
remote: -----> Installing binaries
remote:        engines.node (package.json):  16.x
remote:        engines.npm (package.json):   unspecified (use default)
remote:        engines.yarn (package.json):  unspecified (use default)
remote:        
remote:        Resolving node version 16.x...
remote:        Downloading and installing node 16.14.2...
remote:        Using default npm version: 8.5.0
remote:        Resolving yarn version 1.22.x...
remote:        Downloading and installing yarn (1.22.18)
remote:        Installed yarn 1.22.18
remote:        
remote: -----> Installing dependencies
remote:        Installing node modules (yarn.lock)
remote:        yarn install v1.22.18
remote:        [1/4] Resolving packages...
remote:        [2/4] Fetching packages...
remote:        [3/4] Linking dependencies...
remote:        warning " > [email protected]" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
remote:        warning "webpack-dev-server > [email protected]" has unmet peer dependency "webpack@^4.0.0".
remote:        [4/4] Building fresh packages...
remote:        error /tmp/build_f6dcc7a1/node_modules/node-sass: Command failed.
remote:        Exit code: 1
remote:        Command: node scripts/build.js
remote:        Arguments: 
remote:        Directory: /tmp/build_f6dcc7a1/node_modules/node-sass
remote:        Output:
remote:        Building: /tmp/build_f6dcc7a1/.heroku/node/bin/node /tmp/build_f6dcc7a1/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
remote:        gyp info it worked if it ends with ok
remote:        gyp verb cli [
remote:        gyp verb cli   '/tmp/build_f6dcc7a1/.heroku/node/bin/node',
remote:        gyp verb cli   '/tmp/build_f6dcc7a1/node_modules/node-gyp/bin/node-gyp.js',
remote:        gyp verb cli   'rebuild',
remote:        gyp verb cli   '--verbose',
remote:        gyp verb cli   '--libsass_ext=',
remote:        gyp verb cli   '--libsass_cflags=',
remote:        gyp verb cli   '--libsass_ldflags=',
remote:        gyp verb cli   '--libsass_library='
remote:        gyp verb cli ]
remote:        gyp info using node-gyp@3.8.0
remote:        gyp info using node@16.14.2 | linux | x64
remote:        gyp verb command rebuild []
remote:        gyp verb command clean []
remote:        gyp verb clean removing "build" directory
remote:        gyp verb command configure []
remote:        gyp verb check python checking for Python executable "python2" in the PATH
remote:        gyp verb `which` succeeded python2 /usr/bin/python2
remote:        gyp verb check python version `/usr/bin/python2 -c "import sys; print "2.7.17
remote:        gyp verb check python version .%s.%s" % sys.version_info[:3];"` returned: %j
remote:        gyp verb get node dir no --target version specified, falling back to host node version: 16.14.2
remote:        gyp verb command install [ '16.14.2' ]
remote:        gyp verb install input version string "16.14.2"
remote:        gyp verb install installing version: 16.14.2
remote:        gyp verb install --ensure was passed, so won't reinstall if already installed
remote:        gyp verb install version not already installed, continuing with install 16.14.2
remote:        gyp verb ensuring nodedir is created /app/.node-gyp/16.14.2
remote:        gyp verb created nodedir /app/.node-gyp
remote:        gyp http GET https://nodejs.org/download/release/v16.14.2/node-v16.14.2-headers.tar.gz
remote:        gyp http 200 https://nodejs.org/download/release/v16.14.2/node-v16.14.2-headers.tar.gz
remote:        gyp verb extracted file from tarball include/node/common.gypi
remote:        gyp verb extracted file from tarball include/node/config.gypi
# ...
# ...
# ...
# ...
# ... a lot more lines with extracted file info

remote:        gyp verb tarball done parsing tarball
remote:        gyp verb check download content checksum, need to download `SHASUMS256.txt`... 
remote:        gyp verb checksum url
https://nodejs.org/download/release/v16.14.2/SHASUMS256.txt
remote:        gyp verb checksum data {"node-v16.14.2-aix-ppc64.tar.gz":"acae171e4d58905e7e4c712a614de17bdf6a6720addbb5e440a94efda78807e4","node-v16.14.2-darwin-arm64.tar.gz":"a66d9217d2003bd416d3dd06dfd2c7a044c4c9ff2e43a27865790bd0d59c682d","node-v16.14.2-darwin-arm64.tar.xz":"d6fce58cab15017eba3529fe345a8dfcacbd37599ac8af6ec3e4e74d75c82b2b","node-v16.14.2-darwin-x64.tar.gz":"d3076ca7fcc7269c8ff9b03fe7d1c277d913a7e84a46a14eff4af7791ff9d055","node-v16.14.2-darwin-x64.tar.xz":"8c45f73fd1227ac6e9ad9127398251c381c9af1b2cd364fb32726dc5f38bf393","node-v16.14.2-headers.tar.gz":"505e1c287e55bb8ec25d2e20d7d87a57b0c2666e1aa7064e0661ad76b60db594","node-v16.14.2-headers.tar.xz":"a4e858e062af48cbf57b8505044f1fe38c7debeb7a9eeddcb3b16e90bff4c73b","node-v16.14.2-linux-arm64.tar.gz":"8a792a4cb6d83a960f7bd2901225c492e40ace541fbd73ff59ac4a332c3aaafb","node-v16.14.2-linux-arm64.tar.xz":"f7c5a573c06a520d6c2318f6ae204141b8420386553a692fc359f8ae3d88df96","node-v16.14.2-linux-armv7l.tar.gz":"339d6505835efdc3cda6f44af9db2b3ca5df240b7b34845a0b2d26342a4c328f","node-v16.14.2-linux-armv7l.tar.xz":"364ca85c71ce52eb2789bba223d6aed0b76c6f064e9f2074493388fb1c917245","node-v16.14.2-linux-ppc64le.tar.gz":"52884670d96d1b16d00b3dfd8f18f54649cd796aafbf66d574c92d2bddbd771b","node-v16.14.2-linux-ppc64le.tar.xz":"48469382586c9a1c0f372ed88cbb13870d225538a305eb35efcb7bd7732d330b","node-v16.14.2-linux-s390x.tar.gz":"39cfa5f998378e620c1f659bd933ea0460ee5cbec575e6831e27b4bf3e575525","node-v16.14.2-linux-s390x.tar.xz":"3197925919ca357e17a31132dc6ef4e5afae819fa09905cfe9f7ff7924a00bf5","node-v16.14.2-linux-x64.tar.gz":"57e02c27eb5e52f560f72d96240e898cb52818dc9fc50f45478ce39ece38583a","node-v16.14.2-linux-x64.tar.xz":"e40c6f81bfd078976d85296b5e657be19e06862497741ad82902d0704b34bb1b","node-v16.14.2.pkg":"ff790d712b5db675020b1e387e1824c45e71803e25d7356dc7399aaeff8caf65","node-v16.14.2.tar.gz":"082170f362c4da0e97f3a1899e3f5e4c998bbc245b803c77c6ab113a2b5cbd5f","node-v16.14.2.tar.xz":"e922e215cc68eb5f94d33e8a0b61e2c863b7731cc8600ab955d3822da90ff8d1","node-v16.14.2-win-x64.7z":"3f4b168eaa479397ec40ab8f514e2a924b078a032845fb896d364c0b4084b19c","node-v16.14.2-win-x64.zip":"4731da4fbb2015d414e871fa9118cabb643bdb6dbdc8a69a3ed563266ac93229","node-v16.14.2-win-x86.7z":"5b550768e452cf4d8039aa903c1e5881326c1837e7db6f14d5b11dea8302629a","node-v16.14.2-win-x86.zip":"b48aa66a6f35933bd048b4b1290ca0e5d43ffb31147618f29cbc60b5a2b43009","node-v16.14.2-x64.msi":"df1a010e89fd6fe1cca920425a165dffef45e6b1f072aeef9ed47eba8ff5f283","node-v16.14.2-x86.msi":"8d9bdfdfe8a3d18eb724f71b64a0dc41d18b1f6d904d4f35556e70d0fa3bece8","win-x64/node.exe":"92e971faed43bebbd8c8695167d9b5d732a322d6ffc0b8b3034560a119f8d487","win-x64/node.lib":"4b083c771184555dcc23bca56986e0761cf58ebce6ea2b27a81a524a18d5d7ee","win-x64/node_pdb.7z":"5d550962ef37620d36c58be08781660b3f118a3b1e6776c64729df6f5efbf06c","win-x64/node_pdb.zip":"420c2793f1ae4e5e8ae7b150800403f2753ca66ae1d0f9ad82f81d732e2ac67e","win-x86/node.exe":"34c7200f548fa5e6014211410b53edc187e59b9f75155e6afac23496b7b97cb7","win-x86/node.lib":"838696e87e61ac96bedbf45331be7e22f4cf5ad1fec1aef75b8dbbd49efa82a2","win-x86/node_pdb.7z":"db7b9eee61d1d598b832db323bebd145f16a2e225e19b43f72275e19c5b65793","win-x86/node_pdb.zip":"de87c0bf84c10553bf13732a4778c12e11b06efbaa9fd58a8b8c6a3c71b28862"}
remote:        gyp verb download contents checksum {"node-v16.14.2-headers.tar.gz":"505e1c287e55bb8ec25d2e20d7d87a57b0c2666e1aa7064e0661ad76b60db594"}
remote:        gyp verb validating download checksum for node-v16.14.2-headers.tar.gz (505e1c287e55bb8ec25d2e20d7d87a57b0c2666e1aa7064e0661ad76b60db594 == 505e1c287e55bb8ec25d2e20d7d87a57b0c2666e1aa7064e0661ad76b60db594)
remote:        gyp verb get node dir target node version installed: 16.14.2
remote:        gyp verb build dir attempting to create "build" dir: /tmp/build_f6dcc7a1/node_modules/node-sass/build
remote:        gyp verb build dir "build" dir needed to be created? /tmp/build_f6dcc7a1/node_modules/node-sass/build
remote:        gyp verb build/config.gypi creating config file
remote:        gyp verb build/config.gypi writing out config file: /tmp/build_f6dcc7a1/node_modules/node-sass/build/config.gypi
remote:        (node:1043) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
remote:        (Use `node --trace-deprecation ...` to show where the warning was created)
remote:        gyp verb config.gypi checking for gypi file: /tmp/build_f6dcc7a1/node_modules/node-sass/config.gypi
remote:        gyp verb common.gypi checking for gypi file: /tmp/build_f6dcc7a1/node_modules/node-sass/common.gypi
remote:        gyp verb gyp gyp format was not specified; forcing "make"
remote:        gyp info spawn /usr/bin/python2
remote:        gyp info spawn args [
# ...
# ...
remote:        make: Entering directory '/tmp/build_f6dcc7a1/node_modules/node-sass/build'
remote:          g   '-DNODE_GYP_MODULE_NAME=libsass' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DLIBSASS_VERSION="3.5.4"' -I/app/.node-gyp/16.14.2/include/node -I/app/.node-gyp/16.14.2/src -I/app/.node-gyp/16.14.2/deps/openssl/config -I/app/.node-gyp/16.14.2/deps/openssl/openssl/include -I/app/.node-gyp/16.14.2/deps/uv/include -I/app/.node-gyp/16.14.2/deps/zlib -I/app/.node-gyp/16.14.2/deps/v8/include -I../src/libsass/include  -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -std=gnu  14 -std=c  0x -fexceptions -frtti -MMD -MF ./Release/.deps/Release/obj.target/libsass/src/libsass/src/ast.o.d.raw   -c -o Release/obj.target/libsass/src/libsass/src/ast.o ../src/libsass/src/ast.cpp
remote:          g   '-DNODE_GYP_MODULE_NAME=libsass' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DLIBSASS_VERSION="3.5.4"' -I/app/.node-gyp/16.14.2/include/node -I/app/.node-gyp/16.14.2/src -I/app/.node-gyp/16.14.2/deps/openssl/config -I/app/.node-gyp/16.14.2/deps/openssl/openssl/include -I/app/.node-gyp/16.14.2/deps/uv/include -I/app/.node-gyp/16.14.2/deps/zlib -I/app/.node-gyp/16.14.2/deps/v8/include -I../src/libsass/include  -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -std=gnu  14 -std=c  0x -fexceptions -frtti -MMD -MF ./Release/.deps/Release/obj.target/libsass/src/libsass/src/ast_fwd_decl.o.d.raw   -c -o Release/obj.target/libsass/src/libsass/src/ast_fwd_decl.o ../src/libsass/src/ast_fwd_decl.cpp
remote:          g   '-DNODE_GYP_MODULE_NAME=libsass' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DLIBSASS_VERSION="3.5.4"' -I/app/.node-gyp/16.14.2/include/node -I/app/.node-gyp/16.14.2/src -I/app/.node-gyp/16.14.2/deps/openssl/config -I/app/.node-gyp/16.14.2/deps/openssl/openssl/include -I/app/.node-gyp/16.14.2/deps/uv/include -I/app/.node-gyp/16.14.2/deps/zlib -I/app/.node-gyp/16.14.2/deps/v8/include -I../src/libsass/include  -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -std=gnu  14 -std=c  0x -fexceptions -frtti -MMD -MF ./Release/.deps/Release/obj.target/libsass/src/libsass/src/backtrace.o.d.raw   -c -o Release/obj.target/libsass/src/libsass/src/backtrace.o ../src/libsass/src/backtrace.cpp
remote:          g   '-DNODE_GYP_MODULE_NAME=libsass' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DLIBSASS_VERSION="3.5.4"' -I/app/.node-gyp/16.14.2/include/node -I/app/.node-gyp/16.14.2/src -I/app/.node-gyp/16.14.2/deps/openssl/config -I/app/.node-gyp/16.14.2/deps/openssl/openssl/include -I/app/.node-gyp/16.14.2/deps/uv/include -I/app/.node-gyp/16.14.2/deps/zlib -I/app/.node-gyp/16.14.2/deps/v8/include -I../src/libsass/include  -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -std=gnu  14 -std=c  0x -fexceptions -frtti -MMD -MF ./Release/.deps/Release/obj.target/libsass/src/libsass/src/base64vlq.o.d.raw   -c -o Release/obj.target/libsass/src/libsass/src/base64vlq.o ../src/libsass/src/base64vlq.cpp
remote:          g   '-DNODE_GYP_MODULE_NAME=libsass' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DLIBSASS_VERSION="3.5.4"' -I/app/.node-gyp/16.14.2/include/node -I/app/.node-gyp/16.14.2/src -I/app/.node-gyp/16.14.2/deps/openssl/config -I/app/.node-gyp/16.14.2/deps/openssl/openssl/include -I/app/.node-gyp/16.14.2/deps/uv/include -I/app/.node-gyp/16.14.2/deps/zlib -I/app/.node-gyp/16.14.2/deps/v8/include -I../src/libsass/include  -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -std=gnu  14 -std=c  0x -fexceptions -frtti -MMD -MF ./Release/.deps/Release/obj.target/libsass/src/libsass/src/bind.o.d.raw   -c -o Release/obj.target/libsass/src/libsass/src/bind.o ../src/libsass/src/bind.cpp
remote:          cc '-DNODE_GYP_MODULE_NAME=libsass' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DLIBSASS_VERSION="3.5.4"' -I/app/.node-gyp/16.14.2/include/node -I/app/.node-gyp/16.14.2/src -I/app/.node-gyp/16.14.2/deps/openssl/config -I/app/.node-gyp/16.14.2/deps/openssl/openssl/include -I/app/.node-gyp/16.14.2/deps/uv/include -I/app/.node-gyp/16.14.2/deps/zlib -I/app/.node-gyp/16.14.2/deps/v8/include -I../src/libsass/include  -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer  -MMD -MF ./Release/.deps/Release/obj.target/libsass/src/libsass/src/cencode.o.d.raw   -c -o Release/obj.target/libsass/src/libsass/src/cencode.o ../src/libsass/src/cencode.c
remote:        ../src/libsass/src/cencode.c: In function ‘base64_encode_block’:
remote:        ../src/libsass/src/cencode.c:48:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
remote:            result = (fragment & 0x003) << 4;
remote:            ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
remote:        ../src/libsass/src/cencode.c:52:2: note: here
remote:          case step_B:
remote:          ^~~~
remote:        ../src/libsass/src/cencode.c:62:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
remote:            result = (fragment & 0x00f) << 2;
remote:            ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
remote:        ../src/libsass/src/cencode.c:66:2: note: here
remote:          case step_C:
remote:          ^~~~
# ...
# ...
# ...
# ...
remote:          g   '-DNODE_GYP_MODULE_NAME=libsass' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DLIBSASS_VERSION="3.5.4"' -I/app/.node-gyp/16.14.2/include/node -I/app/.node-gyp/16.14.2/src -I/app/.node-gyp/16.14.2/deps/openssl/config -I/app/.node-gyp/16.14.2/deps/openssl/openssl/include -I/app/.node-gyp/16.14.2/deps/uv/include -I/app/.node-gyp/16.14.2/deps/zlib -I/app/.node-gyp/16.14.2/deps/v8/include -I../src/libsass/include  -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -std=gnu  14 -std=c  0x -fexceptions -frtti -MMD -MF ./Release/.deps/Release/obj.target/libsass/src/libsass/src/values.o.d.raw   -c -o Release/obj.target/libsass/src/libsass/src/values.o ../src/libsass/src/values.cpp
remote:          rm -f Release/obj.target/src/sass.a && ar crs Release/obj.target/src/sass.a Release/obj.target/libsass/src/libsass/src/ast.o Release/obj.target/libsass/src/libsass/src/ast_fwd_decl.o 
# ... 
# ...
remote:          rm -rf "Release/sass.a" && cp -af "Release/obj.target/src/sass.a" "Release/sass.a"
remote:          g   '-DNODE_GYP_MODULE_NAME=binding' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DBUILDING_NODE_EXTENSION' -I/app/.node-gyp/16.14.2/include/node -I/app/.node-gyp/16.14.2/src -I/app/.node-gyp/16.14.2/deps/openssl/config -I/app/.node-gyp/16.14.2/deps/openssl/openssl/include -I/app/.node-gyp/16.14.2/deps/uv/include -I/app/.node-gyp/16.14.2/deps/zlib -I/app/.node-gyp/16.14.2/deps/v8/include -I../../nan -I../src/libsass/include  -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu  14 -std=c  0x -MMD -MF ./Release/.deps/Release/obj.target/binding/src/binding.o.d.raw   -c -o Release/obj.target/binding/src/binding.o ../src/binding.cpp
remote:        In file included from /app/.node-gyp/16.14.2/include/node/v8.h:30:0,
remote:                         from /app/.node-gyp/16.14.2/include/node/node.h:63,
remote:                         from ../../nan/nan.h:54,
remote:                         from ../src/binding.cpp:1:
remote:        /app/.node-gyp/16.14.2/include/node/v8-internal.h: In function ‘void v8::internal::PerformCastCheck(T*)’:
remote:        /app/.node-gyp/16.14.2/include/node/v8-internal.h:492:38: error: ‘remove_cv_t’ is not a member of ‘std’
remote:                     !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);
remote:                                              ^~~~~~~~~~~
remote:        /app/.node-gyp/16.14.2/include/node/v8-internal.h:492:38: note: suggested alternative: ‘remove_cv’
remote:                     !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);
remote:                                              ^~~~~~~~~~~
remote:                                              remove_cv
remote:        /app/.node-gyp/16.14.2/include/node/v8-internal.h:492:38: error: ‘remove_cv_t’ is not a member of ‘std’
remote:        /app/.node-gyp/16.14.2/include/node/v8-internal.h:492:38: note: suggested alternative: ‘remove_cv’
remote:                     !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);
remote:                                              ^~~~~~~~~~~
remote:                                              remove_cv
remote:        /app/.node-gyp/16.14.2/include/node/v8-internal.h:492:50: error: template argument 2 is invalid
remote:                     !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);
remote:                                                          ^
remote:        /app/.node-gyp/16.14.2/include/node/v8-internal.h:492:63: error: ‘::Perform’ has not been declared
remote:                     !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);
remote:                                                                       ^~~~~~~
remote:        /app/.node-gyp/16.14.2/include/node/v8-internal.h:492:63: note: suggested alternative: ‘herror’
remote:                     !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);
remote:                                                                       ^~~~~~~
remote:                                                                       herror
remote:        binding.target.mk:133: recipe for target 'Release/obj.target/binding/src/binding.o' failed
remote:        make: Leaving directory '/tmp/build_f6dcc7a1/node_modules/node-sass/build'
remote:        make: *** [Release/obj.target/binding/src/binding.o] Error 1
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_f6dcc7a1/node_modules/node-gyp/lib/build.js:262:23)
remote:        gyp ERR! stack     at ChildProcess.emit (node:events:526:28)
remote:        gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
remote:        gyp ERR! System Linux 4.4.0-1101-aws
remote:        gyp ERR! command "/tmp/build_f6dcc7a1/.heroku/node/bin/node" "/tmp/build_f6dcc7a1/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
remote:        gyp ERR! cwd /tmp/build_f6dcc7a1/node_modules/node-sass
remote:        gyp ERR! node -v v16.14.2
remote:        gyp ERR! node-gyp -v v3.8.0
remote:        gyp ERR! not ok 
remote:        Build failed with error code: 1
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:        If you're stuck, please submit a ticket so we can help:
remote:        https://help.heroku.com/

更新,當降級到節點 14 或 12(在 中指定packages.json)時,出現新錯誤:

remote: -----> Detecting rake tasks
remote: -----> Preparing app for Rails asset pipeline
remote:        Running: rake assets:precompile
remote:        yarn install v1.22.18
remote:        [1/5] Validating package.json...
remote:        [2/5] Resolving packages...
remote:        [3/5] Fetching packages...
remote:        [4/5] Linking dependencies...
remote:        warning " > [email protected]" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
remote:        warning "webpack-dev-server > [email protected]" has unmet peer dependency "webpack@^4.0.0".
remote:        [5/5] Building fresh packages...
remote:        Done in 17.43s.
remote:        yarn install v1.22.18
remote:        [1/5] Validating package.json...
remote:        [2/5] Resolving packages...
remote:        [3/5] Fetching packages...
remote:        [4/5] Linking dependencies...
remote:        warning " > [email protected]" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
remote:        warning "webpack-dev-server > [email protected]" has unmet peer dependency "webpack@^4.0.0".
remote:        [5/5] Building fresh packages...
remote:        Done in 2.46s.
remote:        Compiling...
remote:        Compilation failed:
remote:        Hash: 7e4370e94305cc4b9b02
remote:        Version: webpack 4.41.5
remote:        Time: 507ms
remote:        Built at: 03/24/2022 5:00:33 PM
remote:         8 assets
remote:        Entrypoint application = js/application-4f23df965b2165b7f041.js js/application-4f23df965b2165b7f041.js.map
remote:        Entrypoint jasmine = js/jasmine-d8b8975acaa6cfb2b2bf.js js/jasmine-d8b8975acaa6cfb2b2bf.js.map
remote:        Entrypoint sites_manage = js/sites_manage-13c9c9ba6fdcdc7aafd1.js js/sites_manage-13c9c9ba6fdcdc7aafd1.js.map
remote:        Entrypoint specs = js/specs-4cac5a803bb1c566a801.js js/specs-4cac5a803bb1c566a801.js.map
remote:        [0] ./app/javascript/packs/application.js 3.08 KiB {0} [built] [failed] [1 error]
remote:        [1] ./app/javascript/packs/jasmine.js 3.08 KiB {1} [built] [failed] [1 error]
remote:        [2] ./app/javascript/packs/sites_manage.js 3.08 KiB {2} [built] [failed] [1 error]
remote:        [3] ./app/javascript/packs/specs.js 3.08 KiB {3} [built] [failed] [1 error]

其他 4 個錯誤中的每一個都有以下詳細資訊

remote:        ERROR in ./app/javascript/packs/specs.js
remote:        Module build failed (from ./node_modules/babel-loader/lib/index.js):
remote:        Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in /tmp/build_26758029/node_modules/@babel/helper-compilation-targets/package.json
remote:            at new NodeError (internal/errors.js:322:7)
remote:            at throwExportsNotFound (internal/modules/esm/resolve.js:332:9)
remote:            at packageExportsResolve (internal/modules/esm/resolve.js:565:3)
remote:            at resolveExports (internal/modules/cjs/loader.js:450:36)
remote:            at Function.Module._findPath (internal/modules/cjs/loader.js:490:31)
remote:            at Function.Module._resolveFilename (internal/modules/cjs/loader.js:888:27)
remote:            at Function.Module._load (internal/modules/cjs/loader.js:746:27)
remote:            at Module.require (internal/modules/cjs/loader.js:974:19)
remote:            at require (/tmp/build_26758029/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
remote:            at Object.<anonymous> (/tmp/build_26758029/node_modules/@babel/preset-env/lib/debug.js:8:33)
remote:            at Module._compile (/tmp/build_26758029/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
remote:            at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
remote:            at Module.load (internal/modules/cjs/loader.js:950:32)
remote:            at Function.Module._load (internal/modules/cjs/loader.js:790:12)
remote:            at Module.require (internal/modules/cjs/loader.js:974:19)
remote:            at require (/tmp/build_26758029/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
remote:            at Object.<anonymous> (/tmp/build_26758029/node_modules/@babel/preset-env/lib/index.js:11:14)
remote:            at Module._compile (/tmp/build_26758029/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
remote:            at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
remote:            at Module.load (internal/modules/cjs/loader.js:950:32)
remote:            at Function.Module._load (internal/modules/cjs/loader.js:790:12)
remote:            at Module.require (internal/modules/cjs/loader.js:974:19)
remote:            at require (/tmp/build_26758029/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
remote:            at requireModule (/tmp/build_26758029/node_modules/@babel/core/lib/config/files/plugins.js:165:12)
remote:            at loadPreset (/tmp/build_26758029/node_modules/@babel/core/lib/config/files/plugins.js:83:17)
remote:            at createDescriptor (/tmp/build_26758029/node_modules/@babel/core/lib/config/config-descriptors.js:154:9)
remote:            at /tmp/build_26758029/node_modules/@babel/core/lib/config/config-descriptors.js:109:50
remote:            at Array.map (<anonymous>)
remote:            at createDescriptors (/tmp/build_26758029/node_modules/@babel/core/lib/config/config-descriptors.js:109:29)
remote:            at createPresetDescriptors (/tmp/build_26758029/node_modules/@babel/core/lib/config/config-descriptors.js:101:10)
remote:            at presets (/tmp/build_26758029/node_modules/@babel/core/lib/config/config-descriptors.js:47:19)
remote:            at mergeChainOpts (/tmp/build_26758029/node_modules/@babel/core/lib/config/config-chain.js:320:26)
remote:            at /tmp/build_26758029/node_modules/@babel/core/lib/config/config-chain.js:283:7
remote:            at Generator.next (<anonymous>)
remote:            at buildRootChain (/tmp/build_26758029/node_modules/@babel/core/lib/config/config-chain.js:90:27)
remote:            at buildRootChain.next (<anonymous>)
remote:        

uj5u.com熱心網友回復:

webpacker 嘗試安裝的 node-sass 版本與 NodeJS 的新版本不兼容。Webpacker 4.2.2指定node-sass 版本^4.13.0當我進行測驗安裝時,看起來這正在決議為4.14.1,根據 node-sass 的兼容性表,它與節點 14 之后的任何新版本都不兼容。

嘗試在您的engines配置中指定節點 14,如果這不起作用,則使用節點 12。節點 14 在我的快速測驗中作業。

uj5u.com熱心網友回復:

packages.json僅指定version是不夠的12.x我確實必須為我在本地使用的版本node和版本指定。yarn就我而言,那是:

"engines": {
    "node": "13.7.0",
    "yarn":"1.21.1"
  }

如果對其他人有幫助,只需進入終端node -v即可找到。yarn -v

轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/451191.html

標籤:节点.js 轨道上的红宝石 heroku

上一篇:如何在Heroku的node_modules檔案夾中編輯檔案?

下一篇:在Heroku中存盤API_KEY

標籤雲
其他(157675) Python(38076) JavaScript(25376) Java(17977) C(15215) 區塊鏈(8255) C#(7972) AI(7469) 爪哇(7425) MySQL(7132) html(6777) 基礎類(6313) sql(6102) 熊猫(6058) PHP(5869) 数组(5741) R(5409) Linux(5327) 反应(5209) 腳本語言(PerlPython)(5129) 非技術區(4971) Android(4554) 数据框(4311) css(4259) 节点.js(4032) C語言(3288) json(3245) 列表(3129) 扑(3119) C++語言(3117) 安卓(2998) 打字稿(2995) VBA(2789) Java相關(2746) 疑難問題(2699) 细绳(2522) 單片機工控(2479) iOS(2429) ASP.NET(2402) MongoDB(2323) 麻木的(2285) 正则表达式(2254) 字典(2211) 循环(2198) 迅速(2185) 擅长(2169) 镖(2155) 功能(1967) .NET技术(1958) Web開發(1951) python-3.x(1918) HtmlCss(1915) 弹簧靴(1913) C++(1909) xml(1889) PostgreSQL(1872) .NETCore(1853) 谷歌表格(1846) Unity3D(1843) for循环(1842)

熱門瀏覽
  • JAVA使用 web3j 進行token轉賬

    最近新學習了下區塊鏈這方面的知識,所學不多,給大家分享下。 # 1. 關于web3j web3j是一個高度模塊化,反應性,型別安全的Java和Android庫,用于與智能合約配合并與以太坊網路上的客戶端(節點)集成。 # 2. 準備作業 jdk版本1.8 引入maven <dependency> < ......

    uj5u.com 2020-09-10 03:03:06 more
  • 以太坊智能合約開發框架Truffle

    前言 部署智能合約有多種方式,命令列的瀏覽器的渠道都有,但往往跟我們程式員的風格不太相符,因為我們習慣了在IDE里寫了代碼然后打包運行看效果。 雖然現在IDE中已經存在了Solidity插件,可以撰寫智能合約,但是部署智能合約卻要另走他路,沒辦法進行一個快捷的部署與測驗。 如果團隊管理的區塊節點多、 ......

    uj5u.com 2020-09-10 03:03:12 more
  • 谷歌二次驗證碼成為區塊鏈專用安全碼,你怎么看?

    前言 谷歌身份驗證器,前些年大家都比較陌生,但隨著國內互聯網安全的加強,它越來越多地出現在大家的視野中。 比較廣泛接觸的人群是國際3A游戲愛好者,游戲盜號現象嚴重+國外賬號安全應用廣泛,這類游戲一般都會要求用戶系結名為“兩步驗證”、“雙重驗證”等,平臺一般都推薦用谷歌身份驗證器。 后來區塊鏈業務風靡 ......

    uj5u.com 2020-09-10 03:03:17 more
  • 密碼學DAY1

    目錄 ##1.1 密碼學基本概念 密碼在我們的生活中有著重要的作用,那么密碼究竟來自何方,為何會產生呢? 密碼學是網路安全、資訊安全、區塊鏈等產品的基礎,常見的非對稱加密、對稱加密、散列函式等,都屬于密碼學范疇。 密碼學有數千年的歷史,從最開始的替換法到如今的非對稱加密演算法,經歷了古典密碼學,近代密 ......

    uj5u.com 2020-09-10 03:03:50 more
  • 密碼學DAY1_02

    目錄 ##1.1 ASCII編碼 ASCII(American Standard Code for Information Interchange,美國資訊交換標準代碼)是基于拉丁字母的一套電腦編碼系統,主要用于顯示現代英語和其他西歐語言。它是現今最通用的單位元組編碼系統,并等同于國際標準ISO/IE ......

    uj5u.com 2020-09-10 03:04:50 more
  • 密碼學DAY2

    ##1.1 加密模式 加密模式:https://docs.oracle.com/javase/8/docs/api/javax/crypto/Cipher.html ECB ECB : Electronic codebook, 電子密碼本. 需要加密的訊息按照塊密碼的塊大小被分為數個塊,并對每個塊進 ......

    uj5u.com 2020-09-10 03:05:42 more
  • NTP時鐘服務器的特點(京準電子)

    NTP時鐘服務器的特點(京準電子) NTP時鐘服務器的特點(京準電子) 京準電子官V——ahjzsz 首先對時間同步進行了背景介紹,然后討論了不同的時間同步網路技術,最后指出了建立全球或區域時間同步網存在的問題。 一、概 述 在通信領域,“同步”概念是指頻率的同步,即網路各個節點的時鐘頻率和相位同步 ......

    uj5u.com 2020-09-10 03:05:47 more
  • 標準化考場時鐘同步系統推進智能化校園建設

    標準化考場時鐘同步系統推進智能化校園建設 標準化考場時鐘同步系統推進智能化校園建設 安徽京準電子科技官微——ahjzsz 一、背景概述隨著教育事業的快速發展,學校建設如雨后春筍,隨之而來的學校教育、管理、安全方面的問題成了學校管理人員面臨的最大的挑戰,這些問題同時也是學生家長所擔心的。為了讓學生有更 ......

    uj5u.com 2020-09-10 03:05:51 more
  • 位元幣入門

    引言 位元幣基本結構 位元幣基礎知識 1)哈希演算法 2)非對稱加密技術 3)數字簽名 4)MerkleTree 5)哪有位元幣,有的是UTXO 6)位元幣挖礦與共識 7)區塊驗證(共識) 總結 引言 上一篇我們已經知道了什么是區塊鏈,此篇說一下區塊鏈的第一個應用——位元幣。其實先有位元幣,后有的區塊 ......

    uj5u.com 2020-09-10 03:06:15 more
  • 北斗對時服務器(北斗對時設備)電力系統應用

    北斗對時服務器(北斗對時設備)電力系統應用 北斗對時服務器(北斗對時設備)電力系統應用 京準電子科技官微(ahjzsz) 中國北斗衛星導航系統(英文名稱:BeiDou Navigation Satellite System,簡稱BDS),因為是目前世界范圍內唯一可以大面積提供免費定位服務的系統,所以 ......

    uj5u.com 2020-09-10 03:06:20 more
最新发布
  • web3 產品介紹:metamask 錢包 使用最多的瀏覽器插件錢包

    Metamask錢包是一種基于區塊鏈技術的數字貨幣錢包,它允許用戶在安全、便捷的環境下管理自己的加密資產。Metamask錢包是以太坊生態系統中最流行的錢包之一,它具有易于使用、安全性高和功能強大等優點。 本文將詳細介紹Metamask錢包的功能和使用方法。 一、 Metamask錢包的功能 數字資 ......

    uj5u.com 2023-04-20 08:46:47 more
  • Hyperledger Fabric 使用 CouchDB 和復雜智能合約開發

    在上個實驗中,我們已經實作了簡單智能合約實作及客戶端開發,但該實驗中智能合約只有基礎的增刪改查功能,且其中的資料管理功能與傳統 MySQL 比相差甚遠。本文將在前面實驗的基礎上,將 Hyperledger Fabric 的默認資料庫支持 LevelDB 改為 CouchDB 模式,以實作更復雜的資料... ......

    uj5u.com 2023-04-16 07:28:31 more
  • .NET Core 波場鏈離線簽名、廣播交易(發送 TRX和USDT)筆記

    Get Started NuGet You can run the following command to install the Tron.Wallet.Net in your project. PM> Install-Package Tron.Wallet.Net 配置 public reco ......

    uj5u.com 2023-04-14 08:08:00 more
  • DKP 黑客分析——不正確的代幣對比率計算

    概述: 2023 年 2 月 8 日,針對 DKP 協議的閃電貸攻擊導致該協議的用戶損失了 8 萬美元,因為 execute() 函式取決于 USDT-DKP 對中兩種代幣的余額比率。 智能合約黑客概述: 攻擊者的交易:0x0c850f,0x2d31 攻擊者地址:0xF38 利用合同:0xf34ad ......

    uj5u.com 2023-04-07 07:46:09 more
  • Defi開發簡介

    Defi開發簡介 介紹 Defi是去中心化金融的縮寫, 是一項旨在利用區塊鏈技術和智能合約創建更加開放,可訪問和透明的金融體系的運動. 這與傳統金融形成鮮明對比,傳統金融通常由少數大型銀行和金融機構控制 在Defi的世界里,用戶可以直接從他們的電腦或移動設備上訪問廣泛的金融服務,而不需要像銀行或者信 ......

    uj5u.com 2023-04-05 08:01:34 more
  • solidity簡單的ERC20代幣實作

    // SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.7.0 <0.9.0; import "hardhat/console.sol"; //ERC20 同質化代幣,每個代幣的本質或性質都是相同 //ETH 是原生代幣,它不是ERC20代幣, ......

    uj5u.com 2023-03-21 07:56:29 more
  • solidity 參考型別修飾符memory、calldata與storage 常量修飾符C

    在solidity語言中 參考型別修飾符(參考型別為存盤空間不固定的數值型別) memory、calldata與storage,它們只能修飾參考型別變數,比如字串、陣列、位元組等... memory 適用于方法傳參、返參或在方法體內使用,使用完就會清除掉,釋放記憶體 calldata 僅適用于方法傳參 ......

    uj5u.com 2023-03-08 07:57:54 more
  • solidity注解標簽

    在solidity語言中 注釋符為// 注解符為/* 內容*/ 或者 是 ///內容 注解中含有這幾個標簽給予我們使用 @title 一個應該描述合約/介面的標題 contract, library, interface @author 作者的名字 contract, library, interf ......

    uj5u.com 2023-03-08 07:57:49 more
  • 評價指標:相似度、GAS消耗

    【代碼注釋自動生成方法綜述】 這些評測指標主要來自機器翻譯和文本總結等研究領域,可以評估候選文本(即基于代碼注釋自動方法而生成)和參考文本(即基于手工方式而生成)的相似度. BLEU指標^[^?88^^?^]^:其全稱是bilingual evaluation understudy.該指標是最早用于 ......

    uj5u.com 2023-02-23 07:27:39 more
  • 基于NOSTR協議的“公有制”版本的Twitter,去中心化社交軟體Damus

    最近,一個幽靈,Web3的幽靈,在網路游蕩,它叫Damus,這玩意詮釋了什么叫做病毒式營銷,滑稽的是,一個Web3產品卻在Web2的產品鏈上瘋狂傳銷,各方大佬紛紛為其背書,到底發生了什么?Damus的葫蘆里,賣的是什么藥? 注冊和簡單實用 很少有什么產品在用戶注冊環節會有什么噱頭,但Damus確實出 ......

    uj5u.com 2023-02-05 06:48:39 more