cancel
Showing results for 
Search instead for 
Did you mean: 

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

vikrant_dev1
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

vikrant_dev1
Participant
0 Kudos

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

Answers (0)