Yes, use sudo only to globally install commands:

sudo npm -g install bower
sudo npm -g install gulp

That makes sure you have those as command-line commands available. Other
stuff installed by npm is mostly libraries used by gulp and such. And
bower for the javascript dependencies, like angularjs and related. That
doesn't need sudo..

Cheers,
Geert


On 4/24/15, 9:13 AM, "Lee Pollington" <[email protected]> wrote:

>Yes. 
>
>I have fixed it. It seemed to be a series of permission errors in related
>~/.config and ~/.cache directories. I think the moral of the story is to
>not sudo install...
>
>Thanks,
>Lee
>
>
>> On 24 Apr 2015, at 05:55, Geert Josten <[email protected]>
>>wrote:
>> 
>> Did you look at these instructions?
>> 
>> 
>>https://github.com/marklogic/marklogic-samplestack/blob/master/browser/RE
>>AD
>> ME.md
>> 
>> 
>> Cheers,
>> Geert
>> 
>> On 4/24/15, 1:03 AM, "Lee Pollington" <[email protected]> wrote:
>> 
>>> Thank Geert. I had run that command in that directory and have run it
>>> again and it runs seemingly without error but no components directory
>>> results 
>>> 
>>> Thanks,
>>> Lee
>>> 
>>> 
>>> 
>>>> On 23 Apr 2015, at 18:06, Geert Josten <[email protected]>
>>>> wrote:
>>>> 
>>>> Hi Lee,
>>>> 
>>>> Run bower install in the directory where bower.json is located. In
>>>>this
>>>> case that means from the browser/ directory..
>>>> 
>>>> Cheers 
>>>> 
>>>>> On 4/23/15, 5:54 PM, "Lee Pollington" <[email protected]>
>>>>>wrote:
>>>>> 
>>>>> Hi guys, 
>>>>> 
>>>>> I am trying to install the latest version of samplestack and am
>>>>>hitting
>>>>> an error when trying to do gulp run in the browser project:
>>>>> 
>>>>> MacPro:browser me$ gulp run
>>>>> [16:51:45] Warning: gulp version mismatch:
>>>>> [16:51:45] Global gulp is 3.8.11
>>>>> [16:51:45] Local gulp is 3.8.10
>>>>> [16:51:46] Starting 'clean'...
>>>>> [16:51:46] Finished 'clean' after 5.11 ms
>>>>> [16:51:46] Starting 'bower-files'...
>>>>> [16:51:46] 'bower-files' errored after 1 ms
>>>>> [16:51:46] Error: Bower components directory does not exist at
>>>>> /Users/me/dev/marklogic-samplestack/browser/bower_components
>>>>>  at module.exports
>>>>> 
>>>>> 
>>>>>(/Users/me/dev/marklogic-samplestack/browser/node_modules/main-bower-f
>>>>>il
>>>>> es
>>>>> /lib/index.js:54:15)
>>>>>  at bowerBuildStream
>>>>> 
>>>>> 
>>>>>(/Users/me/dev/marklogic-samplestack/browser/dev-tasks/tasks/bower-fil
>>>>>es
>>>>> .j
>>>>> s:10:24)
>>>>>  at Gulp.module.exports.func
>>>>> 
>>>>> 
>>>>>(/Users/me/dev/marklogic-samplestack/browser/dev-tasks/tasks/bower-fil
>>>>>es
>>>>> .j
>>>>> s:35:19)
>>>>>  at module.exports
>>>>> 
>>>>> 
>>>>>(/Users/me/dev/marklogic-samplestack/browser/node_modules/gulp/node_mo
>>>>>du
>>>>> le
>>>>> s/orchestrator/lib/runTask.js:34:7)
>>>>>  at Gulp.Orchestrator._runTask
>>>>> 
>>>>> 
>>>>>(/Users/me/dev/marklogic-samplestack/browser/node_modules/gulp/node_mo
>>>>>du
>>>>> le
>>>>> s/orchestrator/index.js:273:3)
>>>>>  at Gulp.Orchestrator._runStep
>>>>> 
>>>>> 
>>>>>(/Users/me/dev/marklogic-samplestack/browser/node_modules/gulp/node_mo
>>>>>du
>>>>> le
>>>>> s/orchestrator/index.js:214:10)
>>>>>  at 
>>>>> 
>>>>> 
>>>>>/Users/me/dev/marklogic-samplestack/browser/node_modules/gulp/node_mod
>>>>>ul
>>>>> es
>>>>> /orchestrator/index.js:279:18
>>>>>  at finish 
>>>>> 
>>>>> 
>>>>>(/Users/me/dev/marklogic-samplestack/browser/node_modules/gulp/node_mo
>>>>>du
>>>>> le
>>>>> s/orchestrator/lib/runTask.js:21:8)
>>>>>  at cb 
>>>>> 
>>>>> 
>>>>>(/Users/me/dev/marklogic-samplestack/browser/node_modules/gulp/node_mo
>>>>>du
>>>>> le
>>>>> s/orchestrator/lib/runTask.js:29:3)
>>>>>  at 
>>>>> 
>>>>> 
>>>>>/Users/me/dev/marklogic-samplestack/browser/node_modules/del/index.js:
>>>>>54
>>>>> :4
>>>>> 
>>>>> 
>>>>> I had got an error on bower install telling me to use sudo. I did
>>>>>sudo
>>>>> and it ran. I do not have a bower_components directory.
>>>>> 
>>>>> Probably a config issue, just not sure where to start lookingÅ 
>>>>> 
>>>>> Thanks,
>>>>> Lee
>>>>> _______________________________________________
>>>>> General mailing list
>>>>> [email protected]
>>>>> Manage your subscription at:
>>>>> http://developer.marklogic.com/mailman/listinfo/general
>>>> 
>>>> _______________________________________________
>>>> General mailing list
>>>> [email protected]
>>>> Manage your subscription at:
>>>> http://developer.marklogic.com/mailman/listinfo/general
>>> _______________________________________________
>>> General mailing list
>>> [email protected]
>>> Manage your subscription at:
>>> http://developer.marklogic.com/mailman/listinfo/general
>> 
>> _______________________________________________
>> General mailing list
>> [email protected]
>> Manage your subscription at:
>> http://developer.marklogic.com/mailman/listinfo/general
>
>_______________________________________________
>General mailing list
>[email protected]
>Manage your subscription at:
>http://developer.marklogic.com/mailman/listinfo/general

_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to