Skip to content

npm install error - deasync #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
snowdream opened this issue Aug 20, 2023 · 1 comment
Closed

npm install error - deasync #1

snowdream opened this issue Aug 20, 2023 · 1 comment

Comments

@snowdream
Copy link

Bug report(问题描述)

Steps to reproduce(问题复现步骤)

$ pnpm install
 WARN  deprecated [email protected]: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
 WARN  deprecated [email protected]: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
 WARN  deprecated [email protected]: 3.x is no longer supported
 WARN  deprecated [email protected]: This SVGO version is no longer supported. Upgrade to v2.x.x.
 WARN  deprecated [email protected]: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410
 WARN  deprecated [email protected]: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
 WARN  deprecated [email protected]: This loader has been deprecated. Please use eslint-webpack-plugin
 WARN  deprecated [email protected]: The v1 package contains DANGEROUS / INSECURE binaries. Upgrade to safe fsevents v2
 WARN  deprecated [email protected]: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
 WARN  deprecated [email protected]: Package no longer supported. Contact [email protected] for more info.
 WARN  deprecated [email protected]: Support has ended for 9.x series. Upgrade to @latest
 WARN  deprecated @hapi/[email protected]: Switch to 'npm install joi'
 WARN  deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
 WARN  deprecated [email protected]: Please upgrade to consolidate v1.0.0+ as it has been modernized with several long-awaited fixes implemented. Maintenance is supported by Forward Email at https://forwardemail.net ; follow/watch https://github.com/ladjs/consolidate for updates and release changelog
 WARN  deprecated [email protected]: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
 WARN  deprecated [email protected]: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
 WARN  deprecated [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
 WARN  deprecated [email protected]: Use your platform's native performance.now() and performance.timeOrigin.
 WARN  deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
 WARN  deprecated @hapi/[email protected]: Moved to 'npm install @sideway/address'
 WARN  deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
 WARN  deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
 WARN  deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
 WARN  deprecated [email protected]: this library is no longer supported
 WARN  deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
 WARN  deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
 WARN  deprecated [email protected]: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added WARN  deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
 WARN  deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
 WARN  deprecated [email protected]: use String.prototype.padStart()
Packages: +1686
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
Packages are hard linked from the content-addressable store to the virtual store.
  Content-addressable store is at: D:\.pnpm-store\v3
  Virtual store is at:             node_modules/.pnpm
Progress: resolved 1689, reused 1687, downloaded 0, added 1686, done
node_modules/.pnpm/[email protected]/node_modules/deasync: Running install script, failed in 8.2s
.../[email protected]/node_modules/deasync install$ node ./build.js
│ D:\workspace\go\src\****\vue-element-admin\node_modules\.pnpm\[email protected]\node_modules\deasync>if not defined npm_config_nod…  
│ gyp info it worked if it ends with ok
│ gyp info using [email protected]
│ gyp info using [email protected] | win32 | x64
│ gyp info find Python using Python version 3.11.2 found at "C:\Users\snowdream\AppData\Local\Programs\Python\Python311\python.exe"
│ gyp info find VS using VS2019 (16.11.33423.256) found at:
│ gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community"
│ gyp info find VS run with --verbose for detailed information
│ gyp info spawn C:\Users\snowdream\AppData\Local\Programs\Python\Python311\python.exe
│ gyp info spawn args [
│ gyp info spawn args   'C:\\Users\\snowdream\\AppData\\Roaming\\npm\\node_modules\\pnpm\\dist\\node_modules\\node-gyp\\gyp\\gyp_main.py',    
│ gyp info spawn args   'binding.gyp',
│ gyp info spawn args   '-f',
│ gyp info spawn args   'msvs',
│ gyp info spawn args   '-I',
│ gyp info spawn args   'D:\\workspace\\go\\src\\****\\vue-element-admin\\node_modules\\.pnpm\\[email protected]\\node_modules\\deas…  
│ gyp info spawn args   '-I',
│ gyp info spawn args   'C:\\Users\\snowdream\\AppData\\Roaming\\npm\\node_modules\\pnpm\\dist\\node_modules\\node-gyp\\addon.gypi',
│ gyp info spawn args   '-I',
│ gyp info spawn args   'C:\\Users\\snowdream\\AppData\\Local\\node-gyp\\Cache\\19.8.1\\include\\node\\common.gypi',
│ gyp info spawn args   '-Dlibrary=shared_library',
│ gyp info spawn args   '-Dvisibility=default',
│ gyp info spawn args   '-Dnode_root_dir=C:\\Users\\snowdream\\AppData\\Local\\node-gyp\\Cache\\19.8.1',
│ gyp info spawn args   '-Dnode_gyp_dir=C:\\Users\\snowdream\\AppData\\Roaming\\npm\\node_modules\\pnpm\\dist\\node_modules\\node-gyp',       
│ gyp info spawn args   '-Dnode_lib_file=C:\\\\Users\\\\snowdream\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\19.8.1\\\\<(target_arch)\\\\n…  
│ gyp info spawn args   '-Dmodule_root_dir=D:\\workspace\\go\\src\\****\\vue-element-admin\\node_modules\\.pnpm\\[email protected]\\…  
│ 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   'D:\\workspace\\go\\src\\****\\vue-element-admin\\node_modules\\.pnpm\\[email protected]\\node_modules\\deas…  
│ gyp info spawn args   '-Goutput_dir=.'
│ gyp info spawn args ]
│ gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe
│ gyp info spawn args [
│ gyp info spawn args   'build/binding.sln',
│ gyp info spawn args   '/clp:Verbosity=minimal',
│ gyp info spawn args   '/nologo',
│ gyp info spawn args   '/p:Configuration=Release;Platform=x64'
│ gyp info spawn args ]
│ �ڴ˽��������һ������һ����Ŀ����Ҫ���ò������ɣ������ӡ�-m�����ء�
│ C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.Cpp.WindowsSDK.targets(46,5): error MSB…  
│ gyp ERR! build error 
│ gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe` failed with exit co…  
│ gyp ERR! stack     at ChildProcess.onExit (C:\Users\snowdream\AppData\Roaming\npm\node_modules\pnpm\dist\node_modules\node-gyp\lib\build.…  
│ gyp ERR! stack     at ChildProcess.emit (node:events:512:28)
│ gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:293:12)
│ gyp ERR! System Windows_NT 10.0.19045
│ gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\snowdream\\AppData\\Roaming\\npm\\node_modules\\pnpm\\dist\\node_modul…
│ gyp ERR! cwd D:\workspace\go\src\****\vue-element-admin\node_modules\.pnpm\[email protected]\node_modules\deasync
│ gyp ERR! node -v v19.8.1
│ gyp ERR! node-gyp -v v9.4.0
│ gyp ERR! not ok
│ Build failed
└─ Failed in 8.2s at D:\workspace\go\src\****\vue-element-admin\node_modules\.pnpm\[email protected]\node_modules\deasync
 ELIFECYCLE  Command failed with exit code 1.
@snowdream
Copy link
Author

npm why deasync

npm why deasync
[email protected] dev
node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/deasync
  deasync@"^0.1.15" from [email protected]
  node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/vue-jest
    [email protected]
    node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/vue-jest   
      vue-jest@"^3.0.5" from @vue/[email protected]
      node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@vue/cli-plugin-unit-jest
        @vue/[email protected]
        node_modules/@vue/cli-plugin-unit-jest
          dev @vue/cli-plugin-unit-jest@"4.4.4" from the root project
    [email protected]
    node_modules/.pnpm/node_modules/vue-jest

[email protected] dev
node_modules/.pnpm/[email protected]/node_modules/deasync
  [email protected]
  node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/deasync
    deasync@"^0.1.15" from [email protected]
    node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/vue-jest
      [email protected]
      node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/vue-jest 
        vue-jest@"^3.0.5" from @vue/[email protected]
        node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@vue/cli-plugin-unit-jest
          @vue/[email protected]
          node_modules/@vue/cli-plugin-unit-jest
            dev @vue/cli-plugin-unit-jest@"4.4.4" from the root project
      [email protected]
      node_modules/.pnpm/node_modules/vue-jest

snowdream added a commit that referenced this issue Aug 20, 2023
vuejs/vue-jest#403 (comment)

For Vue2:
```
npm install --save-dev @vue/cli-plugin-unit-jest@next @vue/vue2-jest jest
```

For Vue3:
```
npm install --save-dev @vue/cli-plugin-unit-jest@next @vue/vue3-jest jest ts-jest
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant