npm-g_nosudo | shell script which will fix the problem
kandi X-RAY | npm-g_nosudo Summary
kandi X-RAY | npm-g_nosudo Summary
A shell script which will fix the problem where you want to stop using sudo for npm -g on Ubuntu.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of npm-g_nosudo
npm-g_nosudo Key Features
npm-g_nosudo Examples and Code Snippets
Community Discussions
Trending Discussions on npm-g_nosudo
QUESTION
When I try to install the plugin using the "Manage Palette" feature of node-red the installation fails with a general error: "Error: stderr maxBuffer exceeded". The work-around for me was to install the plugin from the command line inside the .node-red
user settings directory.
Note beyond, I am able to install other plugins via "Manage Palette" without problems. So, I don't think it is a general issue with my setup or the way I am using node-red.
So I am wondering, if I am missing something or this is a bug?
Here is how to reproduce the issue:
- Install hyperledger composer and fabric as described in the development guide - I am using Ubuntu LTS 16.04.3 (64-bit) and Node.js 8.9.1
- Allow unprivileged users for installing global npm packages (this one is missing in the development guide, btw!) - I used npm-g_nosudo for the setup
- Install node-red - Execute
npm install -g node-red
as unprivileged user (no need for--unsafe-perm
at this point) - Start node-red - Execute
node-red
on the command line with the user account used to run hyperledger composer and fabric - Try to install the
node-red-contrib-composer
plugin using "Manage Palette"
ANSWER
Answered 2017-Nov-29 at 09:00This is a known issue, see https://github.com/hyperledger/composer/issues/2793
and is due to this issue in node-red https://github.com/node-red/node-red/issues/1488
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install npm-g_nosudo
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page