E
E
evcalist2017-12-14 18:59:16
Node.js
evcalist, 2017-12-14 18:59:16

Why is there an error on any bower request?

The error itself:

PS C:\OpenServer\OSPanel\domains\applestore.loc\catalog> bower i equalHeights
C:\Users\Evcalist\AppData\Roaming\npm\node_modules\bower\lib\node_modules\bower-config\lib\util\rc.js:71
        throw error;
        ^

Error: Unable to parse C:\OpenServer\OSPanel\domains\applestore.loc\.bowerrc: Unexpected token c in JSON at position 20
    at parse (C:\Users\Evcalist\AppData\Roaming\npm\node_modules\bower\lib\node_modules\bower-config\lib\util\rc.js:64:21)
    at C:\Users\Evcalist\AppData\Roaming\npm\node_modules\bower\lib\node_modules\bower-config\lib\util\rc.js:95:20
    at Array.forEach (<anonymous>)
    at json (C:\Users\Evcalist\AppData\Roaming\npm\node_modules\bower\lib\node_modules\bower-config\lib\util\rc.js:87:14)
    at rc (C:\Users\Evcalist\AppData\Roaming\npm\node_modules\bower\lib\node_modules\bower-config\lib\util\rc.js:34:13)
    at Config.load (C:\Users\Evcalist\AppData\Roaming\npm\node_modules\bower\lib\node_modules\bower-config\lib\Config.js:16:20)
    at readCachedConfig (C:\Users\Evcalist\AppData\Roaming\npm\node_modules\bower\lib\config.js:15:39)
    at defaultConfig (C:\Users\Evcalist\AppData\Roaming\npm\node_modules\bower\lib\config.js:11:12)
    at Object.<anonymous> (C:\Users\Evcalist\AppData\Roaming\npm\node_modules\bower\lib\index.js:16:32)
    at Module._compile (module.js:641:30)

My .bowerrc:
{
  "directory" : "catalog\view\theme\apple\libs\"
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Decadal, 2017-12-14
@Decadal

"catalog\view\theme\apple\libs\"
here the quote is escaped. Remove the trailing slash or put a second slash before
"catalog\view\theme\apple\libs\\"
or
"catalog\view\theme\apple\libs"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question