Skip to content
This repository has been archived by the owner on Oct 1, 2018. It is now read-only.

cordova-hcp build error #67

Closed
coolara opened this issue Nov 22, 2016 · 3 comments
Closed

cordova-hcp build error #67

coolara opened this issue Nov 22, 2016 · 3 comments

Comments

@coolara
Copy link

coolara commented Nov 22, 2016

$ cordova-hcp build
Running build
C:\Users\kid\AppData\Roaming\npm\node_modules\cordova-hot-code-push-cli\node_modules\hidefile\node_modules\winattr\lib\whichLib.js:87
throw error;
^

Error: unknown erorr
at Object.getSync (C:\Users\kid\AppData\Roaming\npm\node_modules\cordova-hot-code-push-cli\node_modules\hidefile\node_modules\winattr\lib\binding\index.js:44:9)
at C:\Users\kid\AppData\Roaming\npm\node_modules\cordova-hot-code-push-cli\node_modules\hidefile\node_modules\winattr\lib\index.js:27:30
at Object.run (C:\Users\kid\AppData\Roaming\npm\node_modules\cordova-hot-code-push-cli\node_modules\hidefile\node_modules\winattr\lib\whichLib.js:74:12)
at Object.getSync (C:\Users\kid\AppData\Roaming\npm\node_modules\cordova-hot-code-push-cli\node_modules\hidefile\node_modules\winattr\lib\index.js:25:19)
at statSync (C:\Users\kid\AppData\Roaming\npm\node_modules\cordova-hot-code-push-cli\node_modules\hidefile\index.js:131:28)
at Object.isHiddenSync (C:\Users\kid\AppData\Roaming\npm\node_modules\cordova-hot-code-push-cli\node_modules\hidefile\index.js:227:13)
at prepareFilesHashQueue (C:\Users\kid\AppData\Roaming\npm\node_modules\cordova-hot-code-push-cli\dist\build.js:64:21)
at C:\Users\kid\AppData\Roaming\npm\node_modules\cordova-hot-code-push-cli\dist\build.js:28:23
at C:\Users\kid\AppData\Roaming\npm\node_modules\cordova-hot-code-push-cli\node_modules\recursive-readdir\index.js:64:22
at C:\Users\kid\AppData\Roaming\npm\node_modules\cordova-hot-code-push-cli\node_modules\recursive-readdir\index.js:64:22

@coolara
Copy link
Author

coolara commented Nov 22, 2016

other project is ok ,thank for answering

@nikDemyankov
Copy link
Member

As I understand, you are running on the Windows machine. And there is something wrong with hidefile package, since it's the one that is crashing.

If build command works in other projects - then it's something weird with the project files. Maybe weird rights on some of the files? And that's why hidefile is crashing: it can't get access to it.

You can either change the rights on all www files, or remove them one by one until you find the one that breaks everything. Or find on your computer where cordova-hcp is installed, go to dist/build.js file and add logging on line 63 on file variable.

@nordnet-deprecation-bot
Copy link
Contributor

👋 Hi! Thank you for your interest in this repo.

😢 We are not using nordnet/cordova-hot-code-push-cli anymore, and we lack the manpower and the experience needed to maintain it. We are aware of the inconveniece that this may cause you. Feel free to use it as is, or create your own fork.

🔒 This will now be closed & locked.

ℹ️ Please see #79 for more information.

@nordnet nordnet locked and limited conversation to collaborators Sep 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants