新项目运行出现这个错误,mac ,node10.13 npm 6.4.1
-
node:1232) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received type undefined
at Module.require (internal/modules/cjs/loader.js:630:11)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (/usr/local/lib/node_modules/@tarojs/cli/node_modules/@tarojs/helper/dist/npm.js:166:23)
at Generator.next (<anonymous>)
at /usr/local/lib/node_modules/@tarojs/cli/node_modules/@tarojs/helper/dist/npm.js:8:71
at new Promise (<anonymous>)
at __awaiter (/usr/local/lib/node_modules/@tarojs/cli/node_modules/@tarojs/helper/dist/npm.js:4:12)
at Object.getNpmPkg (/usr/local/lib/node_modules/@tarojs/cli/node_modules/@tarojs/helper/dist/npm.js:148:12)
at Object.<anonymous> (/usr/local/lib/node_modules/@tarojs/cli/dist/presets/platforms/weapp.js:57:46)
at Generator.next (<anonymous>)
(node:1232) 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: 2)
(node:1232) [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.