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

"ionic build ios" failed #2

Closed
kcampion opened this issue Nov 13, 2015 · 3 comments
Closed

"ionic build ios" failed #2

kcampion opened this issue Nov 13, 2015 · 3 comments
Labels
Milestone

Comments

@kcampion
Copy link

When I use ionic build ios this mistake appears:

Error: Cannot find module 'colors/safe'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at /Users/me/Documents/my_app/plugins/cordova-hot-code-push-local-dev-addon/scripts/lib/logger.js:7:16
    at Object.<anonymous> (/Users/me/Documents/my_app/plugins/cordova-hot-code-push-local-dev-addon/scripts/lib/logger.js:93:3)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
@kcampion
Copy link
Author

To solve this problem, edit .../plugins/cordova-hot-code-push-local-dev-addon/scripts/lib/logger.js at line 7 and replace this line:

var colors = require('colors/safe'),

by

var colors = require('colors'),

@nikDemyankov
Copy link
Member

Can't reproduce that issue, but will do the change in require. The only idea is that colors module was already installed on your computer, and it is an older version than the one that is used in the plugin.

@nikDemyankov nikDemyankov added this to the v0.1.1 milestone Nov 14, 2015
@nikDemyankov
Copy link
Member

Fixed as you suggested. Released v0.1.1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants