Skip to content
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

微信原生小程序转taro报错 #16371

Open
Doomtinger opened this issue Aug 22, 2024 · 2 comments
Open

微信原生小程序转taro报错 #16371

Doomtinger opened this issue Aug 22, 2024 · 2 comments
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@Doomtinger
Copy link

相关平台

微信小程序

小程序基础库: 2.33.0
使用框架: React

复现步骤

npx @tarojs/cli-convertor

期望结果

生成taroConvert

实际结果

报错Failed to load plugin 'taro' declared in 'BaseConfig': Cannot find module 'eslint-plugin-taro'
Require stack:

  • D:\company\whjz_wechat_c\whjz_wechat_c_placeholder_.js
    Referenced from: BaseConfig
    internal/fs/utils.js:332
    throw err;
    ^
    Error: EPERM: operation not permitted, unlink 'C:\Users\admin\AppData\Roaming\npm-cache_npx\21036\node_modules@tarojs\cli-convertor\node_modules@swc\core-win32-x64-msvc\swc.win32-x64-msvc.node'
    at Object.unlinkSync (fs.js:1255:3)
    at fixWinEPERMSync (D:\soft\nvm\nvm\v14.19.0\node_modules\npm\node_modules\rimraf\rimraf.js:219:13)
    at rimrafSync (D:\soft\nvm\nvm\v14.19.0\node_modules\npm\node_modules\rimraf\rimraf.js:319:28)
    at D:\soft\nvm\nvm\v14.19.0\node_modules\npm\node_modules\rimraf\rimraf.js:350:5
    at Array.forEach ()
    at rmkidsSync (D:\soft\nvm\nvm\v14.19.0\node_modules\npm\node_modules\rimraf\rimraf.js:349:26)
    at rmdirSync (D:\soft\nvm\nvm\v14.19.0\node_modules\npm\node_modules\rimraf\rimraf.js:342:7)
    at fixWinEPERMSync (D:\soft\nvm\nvm\v14.19.0\node_modules\npm\node_modules\rimraf\rimraf.js:217:5)
    at rimrafSync (D:\soft\nvm\nvm\v14.19.0\node_modules\npm\node_modules\rimraf\rimraf.js:319:28)
    at D:\soft\nvm\nvm\v14.19.0\node_modules\npm\node_modules\rimraf\rimraf.js:350:5 {
    errno: -4048,
    syscall: 'unlink',
    code: 'EPERM',
    path: 'C:\Users\admin\AppData\Roaming\npm-cache\_npx\21036\node_modules\@tarojs\cli-convertor\node_modules\@swc\core-win32-x64-msvc\swc.win32-x64-msvc.node'
    }

环境信息

 Taro CLI 3.6.34 environment info:
    System:
      OS: Windows 11 10.0.22631
    Binaries:
      Node: 20.15.1 - C:\Program Files\nodejs\node.EXE
      Yarn: 1.22.22 - C:\Program Files\nodejs\yarn.CMD
      npm: 10.7.0 - C:\Program Files\nodejs\npm.CMD
    npmPackages:
      @tarojs/cli: 3.6.34 => 3.6.34
      @tarojs/components: 3.6.34 => 3.6.34
      @tarojs/helper: 3.6.34 => 3.6.34
      @tarojs/plugin-framework-vue3: 3.6.34 => 3.6.34
      @tarojs/plugin-html: 3.6.34 => 3.6.34
      @tarojs/plugin-platform-alipay: 3.6.34 => 3.6.34
      @tarojs/plugin-platform-h5: 3.6.34 => 3.6.34
      @tarojs/plugin-platform-jd: 3.6.34 => 3.6.34
      @tarojs/plugin-platform-qq: 3.6.34 => 3.6.34
      @tarojs/plugin-platform-swan: 3.6.34 => 3.6.34
      @tarojs/plugin-platform-tt: 3.6.34 => 3.6.34
      @tarojs/plugin-platform-weapp: 3.6.34 => 3.6.34
      @tarojs/runtime: 3.6.34 => 3.6.34
      @tarojs/shared: 3.6.34 => 3.6.34
      @tarojs/taro: 3.6.34 => 3.6.34
      @tarojs/taro-loader: 3.6.34 => 3.6.34
      @tarojs/webpack5-runner: 3.6.34 => 3.6.34
      babel-preset-taro: 3.6.34 => 3.6.34
      eslint-config-taro: 3.6.34 => 3.6.34

@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Aug 22, 2024
This was referenced Aug 24, 2024
@CaixyPromise
Copy link

这是缺少依赖了。原地在需要转换的文件夹的cmd输入npm install eslint-plugin-taro可解决。

@Doomtinger
Copy link
Author

Doomtinger commented Sep 2, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
Status: Todo
Development

No branches or pull requests

2 participants