1. 程式人生 > >taro初始化構建報錯

taro初始化構建報錯

使用taro init myApp後想要打包,報錯,錯誤如下:

npm ERR! enoent ENOENT: no such file or directory, open '/Users/zhengyi/Desktop/projects/taro/package.json'npm ERR! enoent ENOENT: no such file or directory, open '/Users/zhengyi/Desktop/projects/taro/package.json'

解決方法:原因為沒有在myApp專案下,會顯示找不到打包檔案,切到myApp專案下打包即可