weidian-inc / hera

A framework for running WeChat applet. (小程序 SDK,小程序转 H5,小程序转安卓、iOS 原生应用、小程序渲染引擎)
https://weidian-inc.github.io/hera
Other
1.48k stars 315 forks source link

Error: ENAMETOOLONG: name too long #10

Closed supperdsj closed 6 years ago

supperdsj commented 6 years ago

文件将生成到: /Users/dongsj/WebstormProjects/demo/heraDemo/heraDemo/heraTmp/web 发生了未知错误

Error: ENAMETOOLONG: name too long, mkdir '/Users/dongsj/WebstormProjects/demo/heraDemo/heraDemo/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web/heraTmp/web' at Object.fs.mkdirSync (fs.js:885:18) at Object.exports.mkdirsSync (/Users/dongsj/.nvm/versions/node/v8.9.1/lib/node_modules/hera-cli/node_modules/weweb-cli/lib/util.js:290:10) at Object.exports.copyDir (/Users/dongsj/.nvm/versions/node/v8.9.1/lib/node_modules/hera-cli/node_modules/weweb-cli/lib/util.js:338:10) at /Users/dongsj/.nvm/versions/node/v8.9.1/lib/node_modules/hera-cli/node_modules/weweb-cli/lib/util.js:358:16 at Array.forEach () at Object.exports.copyDir (/Users/dongsj/.nvm/versions/node/v8.9.1/lib/node_modules/hera-cli/node_modules/weweb-cli/lib/util.js:339:11) at /Users/dongsj/.nvm/versions/node/v8.9.1/lib/node_modules/hera-cli/node_modules/weweb-cli/lib/util.js:358:16 at Array.forEach () at Object.exports.copyDir (/Users/dongsj/.nvm/versions/node/v8.9.1/lib/node_modules/hera-cli/node_modules/weweb-cli/lib/util.js:339:11) at /Users/dongsj/.nvm/versions/node/v8.9.1/lib/node_modules/hera-cli/node_modules/weweb-cli/lib/util.js:358:16%

IOriens commented 6 years ago

您好,请尝试删除/Users/dongsj/WebstormProjects/demo/heraDemo//Users/dongsj/WebstormProjects/demo/heraDemo/heraDemo/目录下的heraTmp文件夹

然后在/Users/dongsj/WebstormProjects/demo/heraDemo/目录下执行 hera run web

supperdsj commented 6 years ago

这很诡异。。。在上一级目录下执行就不会出错了

IOriens commented 6 years ago

目前是不可以在小程序代码所在的目录执行 hera run 命令的。

因为最终需要将小程序代码打成 zip 包发布出去,我们不能把客户端代码和 tmp 文件夹放置小程序代码所在的目录,采取两层目录的形式实属无奈 ┑( ̄Д  ̄)┍