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(). To terminate the node process on unhandled promise rejection, use the CLI flag `–unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:2233) [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.
When you encounter the above error when initializing a project with taro, this is due to insufficient permissions. Add sudo before the initialization command taro init, i.e.
Initialize command by:
taro init
Replace with:
sudo taro init
It can be created successfully!
Read More:
- Taro Install Error: permission denied, symlink ‘../lib/node_modules/@tarojs/cli/bin/taro‘ -> ‘/usr/local/bin/tar
- How to Solve Vue Error: EACCES: permission denied
- socket java.net.BindException: bind failed: EACCES (Permission denied)
- Nginx Container Error: nginx: [emerg] mkdir() “/var/cache/nginx/client_temp“ failed (13: Permission denied)
- [Solved] error when starting dev server:Error: listen EACCES: permission denied 0.0.0.0:80 at Server.set
- Android 10 open file exception open failed: eacces (permission denied) android:requestLegacyExternalStorage= “true“
- json-server Error: EPERM: operation not permitted, mkdir ‘C:\Progra m Files\nodejs\node_
- [Solved] Docker Error: bad interpreter: Permission denied
- [Solved] Gerrit Error: Permission denied publickey
- [Solved] Docker startup container error: permission denied””: unknown.
- Run-time error “70“:Permission denied [How to Solve]
- [Solved] failed (13: Permission denied) while reading upstream
- ./get_datasets.sh Error: permission denied [How to Solve]
- Flask Startup Error: s.bind(server_address)PermissionError: [Errno 13] Permission denied
- [Solved] Vscode Connect to the remote server error: permission denied (public key)
- How to Solve Error: cannot open .Git/fetch_HEAD: Permission denied
- [Solved] Docker Error: got permission denied while trying to connect to the docker daemon socket at…
- ERROR: Permission to .git denied to. [How to Solve]
- [Solved] Zabbix-server startup error: cannot start alert manager service: Cannot bind socket to “/var/run/zabbix/zabbix_server_alerter.sock”: [13] Permission denied.
- Node Kubelet Error: node “xxxxx“ not found [How to Solve]