taro报错 正常安装完,利用脚手架建立一个新的项目,运行直接报错 UnhandledPromiseRejectionWarning:

正常安装完,利用脚手架建立一个新的项目,运行直接报错


)

简述:正常安装完,利用脚手架建立一个新的项目,运行直接报错

(node:7972) UnhandledPromiseRejectionWarning: E:\HaiTao\node_modules\@tarojs\webpack-runner\node_modules\webpack-dev-middleware\node_modules\mime\Mime.js:1



SyntaxError: Invalid or unexpected token
    at wrapSafe (internal/modules/cjs/loader.js:1071:16)
    at Module._compile (internal/modules/cjs/loader.js:1121:27)
    at Module._compile (E:\HaiTao\node_modules\pirates\lib\index.js:99:24)
    at Module._extensions..js (internal/modules/cjs/loader.js:1177:10)
    at Object.newLoader [as .js] (E:\HaiTao\node_modules\pirates\lib\index.js:104:7)
    at Module.load (internal/modules/cjs/loader.js:1001:32)
    at Function.Module._load (internal/modules/cjs/loader.js:900:14)
    at Module.require (internal/modules/cjs/loader.js:1043:19)
    at require (internal/modules/cjs/helpers.js:77:18)
    at Object.<anonymous> (E:\HaiTao\node_modules\@tarojs\webpack-runner\node_modules\webpack-dev-middleware\node_modules\mime\index.js:3:12)
(node:7972) 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: 2)
(node:7972) [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.

在这里插入图片描述
报错,原因未知,正在准备把node 卸载重置环境

尝试1

卸载nodejs以及相关的文件环境配置,再次尝试,失败

尝试2

系统问题,准备重新安装系统

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值