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

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

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

)

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

(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.

taro报错 正常安装完,利用脚手架建立一个新的项目,运行直接报错 UnhandledPromiseRejectionWarning:_第1张图片
报错,原因未知,正在准备把node 卸载重置环境

尝试1

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

尝试2

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

你可能感兴趣的:(taro-多端开发)