Skip to Content
avatar image
Former Member

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Apr 19, 2016 at 07:52 AM

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

    Add comment
    10|10000 characters needed characters exceeded