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

模板中的.npmrc文件导致nrm切换源失败 #10444

Closed
kapeter opened this issue Oct 18, 2021 · 3 comments
Closed

模板中的.npmrc文件导致nrm切换源失败 #10444

kapeter opened this issue Oct 18, 2021 · 3 comments
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x

Comments

@kapeter
Copy link

kapeter commented Oct 18, 2021

相关平台

H5

浏览器版本: Chrome
使用框架: React

复现步骤

nrm use nj
nrm current

期望结果

nrm可以自由切换源

实际结果

nrm use失效,一直是淘宝源

环境信息

👽 Taro v3.2.10


  Taro CLI 3.2.10 environment info:
    System:
      OS: macOS 10.14.6
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 14.15.4 - /usr/local/bin/node
      Yarn: 1.22.11 - /usr/local/bin/yarn
      npm: 7.20.5 - /usr/local/bin/npm
    npmPackages:
      @tarojs/components: 3.2.10 => 3.2.10 
      @tarojs/mini-runner: 3.2.10 => 3.2.10 
      @tarojs/react: 3.2.10 => 3.2.10 
      @tarojs/runtime: 3.2.10 => 3.2.10 
      @tarojs/taro: 3.2.10 => 3.2.10 
      @tarojs/webpack-runner: 3.2.10 => 3.2.10 
      babel-preset-taro: 3.2.10 => 3.2.10 
      eslint-config-taro: 3.2.10 => 3.2.10 
      react: ^17.0.0 => 17.0.2 
    npmGlobalPackages:
      typescript: 3.1.6

补充信息

相关issue:Pana/nrm#39

@taro-bot2 taro-bot2 bot added F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x labels Oct 18, 2021
@jiaozitang jiaozitang assigned jiaozitang and unassigned jiaozitang Oct 19, 2021
@Chen-jj
Copy link
Contributor

Chen-jj commented Oct 28, 2021

@kapeter 是使用的哪个模板?模板的 .npmrc 之前应该都删除了。

@kapeter
Copy link
Author

kapeter commented Nov 1, 2021

"templateInfo": { "name": "default", "typescript": false, "css": "sass" }

@ZakaryCode
Copy link
Contributor

fixed in NervJS/taro-project-templates@7f4a44d

@ZakaryCode ZakaryCode moved this to Done in H5 Apr 10, 2023
@ZakaryCode ZakaryCode added this to H5 Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x
Projects
Archived in project
Development

No branches or pull requests

4 participants