微信小程序转taro的时候no such package.json,操作有误?



  • 我是操作有误么?
    执行 taro convert 后,出现这个错误:

    fs.js:115
    throw err;
    ^

    Error: ENOENT: no such file or directory, open '~/xx/taroConvert/package.json'
    at Object.openSync (fs.js:436:3)
    at Object.readFileSync (fs.js:341:35)
    at DestroyableTransform.creator.fs.commit (~/.nvm/versions/node/v10.11.0/lib/node_modules/@tarojs/cli/dist/convertor/index.js:652:42)
    at DestroyableTransform.emit (events.js:187:15)
    at finishMaybe (~/.nvm/versions/node/v10.11.0/lib/node_modules/@tarojs/cli/node_modules/readable-stream/lib/_stream_writable.js:630:14)
    at endWritable (~/.nvm/versions/node/v10.11.0/lib/node_modules/@tarojs/cli/node_modules/readable-stream/lib/_stream_writable.js:638:3)
    at DestroyableTransform.Writable.end (~/.nvm/versions/node/v10.11.0/lib/node_modules/@tarojs/cli/node_modules/readable-stream/lib/_stream_writable.js:594:41)
    at DestroyableTransform.onend (~/.nvm/versions/node/v10.11.0/lib/node_modules/@tarojs/cli/node_modules/readable-stream/lib/_stream_readable.js:577:10)
    at Object.onceWrapper (events.js:273:13)
    at DestroyableTransform.emit (events.js:187:15)


登录后回复