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

Windows 升级 1.2.2 报错 #1730

Closed
hyacinthus opened this issue Dec 27, 2018 · 5 comments
Closed

Windows 升级 1.2.2 报错 #1730

hyacinthus opened this issue Dec 27, 2018 · 5 comments

Comments

@hyacinthus
Copy link

问题描述
windows 里, taro update self 报错,之后taro直接没了
用npm可以装上
然后再 taro update self 又没了……

λ taro update self                                                                                                    
👽 Taro v1.2.2                                                                                                        
                                                                                                                      
- 即将将 Taro 开发工具 taro-cli 更新到最新版本...npm                                                                                
 WARN deprecated babel-plugin-remove-dead-code@1.3.2: use babel-plugin-minify-dead-code-elimination and babel-plugin-m
ify-guarded-expressions                                                                                               
                                                                                                                      
npm                                                                                                                   
 WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.                  
                                                                                                                      
npm                                                                                                                   
WARN eslint-plugin-taro@1.2.2 requires a peer of babel-eslint@^8.2.3 but none is installed. You must install peer depe
encies yourself.                                                                                                      
npm WARN eslint-plugin-taro@1.2.2 requires a peer of eslint@^4.15.0 but none is installed. You must install peer depen
ncies yourself.                                                                                                       
npm                                                                                                                   
 WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\@tarojs\cli\node_modules\fsevents):         
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"a
"} (current: {"os":"win32","arch":"x64"})                                                                             
                                                                                                                      
                                                                                                                      
                                                                                                                      
npm                                                                                                                   
 ERR! path C:\Users\hyaci\AppData\Roaming\npm\taro                                                                    
npm ERR! code EPERM                                                                                                   
                                                                                                                      
npm ERR! errno -4048                                                                                                  
npm ERR! syscall open                                                                                                 
npm ERR! Error: EPERM: operation not permitted, open 'C:\Users\hyaci\AppData\Roaming\npm\taro'                        
npm                                                                                                                   
 ERR!  { [Error: EPERM: operation not permitted, open 'C:\Users\hyaci\AppData\Roaming\npm\taro']                      
npm ERR!   cause:                                                                                                     
npm ERR!    { Error: EPERM: operation not permitted, open 'C:\Users\hyaci\AppData\Roaming\npm\taro'                   
npm ERR!      errno: -4048,                                                                                           
npm ERR!      code: 'EPERM',                                                                                          
npm ERR!      syscall: 'open',                                                                                        
npm ERR!      path: 'C:\\Users\\hyaci\\AppData\\Roaming\\npm\\taro' },                                                
npm ERR!   stack:                                                                                                     
npm ERR!    'Error: EPERM: operation not permitted, open \'C:\\Users\\hyaci\\AppData\\Roaming\\npm\\taro\'',          
npm ERR!   errno: -4048,                                                                                              
npm ERR!   code: 'EPERM',                                                                                             
npm ERR!   syscall: 'open',                                                                                           
npm ERR!   path: 'C:\\Users\\hyaci\\AppData\\Roaming\\npm\\taro' }                                                    
npm ERR!                                                                                                              
npm                                                                                                                   
 ERR! The operation was rejected by your operating system.                                                            
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),                              
npm ERR! or that you lack permissions to access it.                                                                   
npm ERR!                                                                                                              
npm ERR! If you believe this might be a permissions issue, please double-check the                                    
npm ERR! permissions of the file and its containing directories, or try running                                       
npm ERR! the command again as root/Administrator (though this is not recommended).                                    
                                                                                                                      
                                                                                                                      
                                                                                                                      
npm ERR! A complete log of this run can be found in:                                                                  
npm ERR!     C:\Users\hyaci\AppData\Roaming\npm-cache\_logs\2018-12-27T16_50_27_072Z-debug.log                        

系统信息

Taro v1.2 及以上版本已添加 taro info 命令,方便大家查看系统及依赖信息,运行该命令后将结果贴下面即可。

  • 操作系统: [Windows 10]
  • Taro 版本 [1.2.2]
  • Node.js 版本 [v10.13.0]
@taro-bot
Copy link

taro-bot bot commented Dec 27, 2018

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

@hyacinthus
Copy link
Author

昨天失败了两次 今天又好了……
我再观察观察

@hyacinthus
Copy link
Author

现在应该没问题了

@1Crazy
Copy link

1Crazy commented Jun 10, 2019

@hyacinthus 朋友我也出现你的问题了,你怎么解决的呢

@1Crazy
Copy link

1Crazy commented Jun 10, 2019

正常了,开关机一次,重新编译正常了。。。。

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

2 participants