首页 > IBM Bluemix 上传应用如何解决“The filename or extension is too long”错误?

IBM Bluemix 上传应用如何解决“The filename or extension is too long”错误?

上传应用程序gzcailanzi...
失败
上传应用程序:
mkdir C:\Users\ADMINI~1\AppData\Local\Temp\apps896017162\node_modules\mongoose\node_modules\bson\node_modules\bson-ext\node_modules\node-pre-gyp\node_modules\npmlog\node_modules\gauge\node_modules\lodash.pad\node_modules\lodash._createpadding\node_modules: The filename or extension is too long.错误


你为什么要上传node_modules 呢,你应该是上传项目,而不是项目依赖,bluemix应该会根据你的package.json,自动帮你下载依赖。


补充 添加 .cfignore 文件,在里面添加你不想提交的文件
请参考这个 https://github.com/pmuellr/bluemix-private-packages


Use Long Path Tool, Long Path Tool can simplify and probably end your problems in unlocking, managing and renaming files that appear to have a long filename.

【热门文章】
【热门文章】