Open Zikoat opened 3 years ago
Exactly the same error here on installing that deasync
dependency.
Apparently the fix is: https://github.com/vuejs/vue-jest/issues/403#issuecomment-951492051
But my question is why is Vue CLI installing not just old but deprecated versions? For context, this problem was encountered on a project setup literally days ago.
Thanks @lloydjatkinson a lot!
[4/4] Building fresh packages... [-/24] ⠁ waiting... [9/24] ⠁ deasync [3/24] ⠁ puppeteer [10/24] ⠁ core-js-pure error /opt/my-demo-project/node_modules/deasync: Command failed. Exit code: 1 Command: node ./build.js Arguments: Directory: /opt/my-demo-project/node_modules/deasync Output: gyp info it worked if it ends with ok gyp info using node-gyp@8.2.0 gyp info using node@16.13.0 | linux | x64 gyp info find Python using Python version 3.8.5 found at "/usr/bin/python3" gyp info spawn /usr/bin/python3 gyp info spawn args [ gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'make', gyp info spawn args '-I', gyp info spawn args '/opt/my-demo-project/node_modules/deasync/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/root/.cache/node-gyp/16.13.0/include/node/common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/16.13.0', gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp', gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/16.13.0/<(target_arch)/node.lib', gyp info spawn args '-Dmodule_root_dir=/opt/my-demo-project/node_modules/deasync', gyp info spawn args '-Dnode_engine=v8', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'build', gyp info spawn args '-Goutput_dir=.' gyp info spawn args ] gyp info spawn make gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] g++: error: unrecognized command line option '-std=gnu++14' make: *** [Release/obj.target/deasync/src/deasync.o] Error 1 gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) gyp ERR! stack at ChildProcess.emit (node:events:390:28) gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) gyp ERR! System Linux 4.14.238-125.422.amzn1.x86_64 gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /opt/my-demo-project/node_modules/deasync gyp ERR! node -v v16.13.0 gyp ERR! node-gyp -v v8.2.0 gyp ERR! not ok Build failed
So that fix doesn't work then?
@lloydjatkinson It works! Thanks 😊
Version
4.5.12
Environment info
Steps to reproduce
1.
Overwrite
Manually select features
Unit testing
Eslint with error prevention only
Jest
In dedicated config files
Workaround: Use mocha chai as unit testing framework.
What is expected?
Vue creates a project without errors, or shows an error message that these settings are unavailable.
What is actually happening?
Fails with error message (ignore the
Warning: Ignoring extra certs
warnings)