node:3559) UnhandledPromiseRejectionWarning: Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/@tarojs/cli/templates/taro-temp'
(node:3559) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:3559) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
欢迎提交 Issue~
如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏
如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。
Good luck and happy coding~
用 sudo 吧,或者 nvm 来管理你的 node
我觉得这是个很严重的bug,居然总是见到让用sudo运行的建议,sudo运行的结果就是创建的项目当前用户又没有权限。
mac 同样出现问题,最新并没有解决该问题。希望技术解决一下,并不是多么难的bug。
sudo taro init myApp
Most helpful comment
我觉得这是个很严重的bug,居然总是见到让用sudo运行的建议,sudo运行的结果就是创建的项目当前用户又没有权限。