Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Error in Build the Companion App in Hybrid Application Toolkit in Mac

Hi All,

For the HAT setup for WebIDE to deploy a mobile app for Android/iOS but am getting an error at the Step:

"Build the Companion app"

Failed to install 'kapsel-plugin-logon':CordovaError: Failed to fetch plugin cordova-plugin-device via registry.

Probably this is either a connection problem, or plugin spec is incorrect.

Check your connection and plugin name/version/URL.

Error: EACCES: permission denied, mkdir '/Users/vikrantdev/.npm/cordova-plugin-device/1.1.1'

    at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/fetch.js:146:33

    at _rejected (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:797:24)

    at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:823:30

    at Promise.when (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:1035:31)

    at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:741:41)

    at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:557:44

    at flush (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:108:17)

    at nextTickCallbackWith0Args (node.js:452:9)

    at process._tickCallback (node.js:381:13)

Error: Failed to fetch plugin cordova-plugin-device via registry.

Probably this is either a connection problem, or plugin spec is incorrect.

Check your connection and plugin name/version/URL.

Error: EACCES: permission denied, mkdir '/Users/vikrantdev/.npm/cordova-plugin-device/1.1.1'

cmd error

The node process of the build script exited with code 1.


Can anyone please help with any resolution steps here. I have Apache Cordova 5.4.1 and node.js  version v5.4.1. Also npm 3.3.12 and and git version 2.6.4 (from apple)


Thanks,

Vikrant

Tags:
Former Member
Former Member replied

This is fixed now after re-installing Cordova and providing access to some of the file folders.

1 View this answer in context
Not what you were looking for? View more on this topic or Ask a question