question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to install rasa-webchat

See original GitHub issue

Node version : v6.11.5 React version : 16.5.2 npm version : 3.5.2 yarn version : 1.10.1

npm: sudo npm install --save react-chat-widget yarn sudo yarn add react-chat-widget

can anyone tell. what is the dependencies ?

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'build' ]
2 info using npm@3.5.2
3 info using node@v6.11.4
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle rasa-webchat@0.3.3~prebuild: rasa-webchat@0.3.3
6 silly lifecycle rasa-webchat@0.3.3~prebuild: no script for prebuild, continuing
7 info lifecycle rasa-webchat@0.3.3~build: rasa-webchat@0.3.3
8 verbose lifecycle rasa-webchat@0.3.3~build: unsafe-perm in lifecycle true
9 verbose lifecycle rasa-webchat@0.3.3~build: PATH: /usr/share/npm/bin/node-gyp-bin:/home/user/Videos/rasa-webchat-master/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/usr/local/java/jdk-10/bin:/usr/local/java/jdk-10/jre/bin
10 verbose lifecycle rasa-webchat@0.3.3~build: CWD: /home/user/Videos/rasa-webchat-master
11 silly lifecycle rasa-webchat@0.3.3~build: Args: [ '-c', 'webpack-cli --config webpack.prod.js' ]
12 silly lifecycle rasa-webchat@0.3.3~build: Returned: code: 2  signal: null
13 info lifecycle rasa-webchat@0.3.3~build: Failed to exec build script
14 verbose stack Error: rasa-webchat@0.3.3 build: `webpack-cli --config webpack.prod.js`
14 verbose stack Exit status 2
14 verbose stack     at EventEmitter.<anonymous> (/usr/share/npm/lib/utils/lifecycle.js:232:16)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at EventEmitter.emit (events.js:191:7)
14 verbose stack     at ChildProcess.<anonymous> (/usr/share/npm/lib/utils/spawn.js:24:14)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at ChildProcess.emit (events.js:191:7)
14 verbose stack     at maybeClose (internal/child_process.js:920:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5)
15 verbose pkgid rasa-webchat@0.3.3
16 verbose cwd /home/user/Videos/rasa-webchat-master
17 error Linux 4.13.0-46-generic
18 error argv "/usr/bin/node" "/usr/bin/npm" "run" "build"
19 error node v6.11.4
20 error npm  v3.5.2
21 error code ELIFECYCLE
22 error rasa-webchat@0.3.3 build: `webpack-cli --config webpack.prod.js`
22 error Exit status 2
23 error Failed at the rasa-webchat@0.3.3 build script 'webpack-cli --config webpack.prod.js'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the rasa-webchat package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error     webpack-cli --config webpack.prod.js
23 error You can get information on how to open an issue for this project with:
23 error     npm bugs rasa-webchat
23 error Or if that isn't available, you can get their info via:
23 error     npm owner ls rasa-webchat
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
TheoTomaltycommented, Oct 19, 2018

@azizullah2017 This looks like a permissions problem similar to https://github.com/npm/npm/issues/7407. It was recommended in that issue to take ownership of your .npm directory with

$ sudo chown -R $(whoami) $HOME/.npm

and try installing again with

$ sudo npm install mrbot-ai/rasa-webchat
0reactions
TheoTomaltycommented, Oct 24, 2018

Hi @azizullah2017, the permissions error is still coming from your .npm directory. This is a common issue with npm, with the solution here.

It looks like even though you are installing locally, the git repo is being cloned to the tmp directory in your global .npm directory (/home/user/.npm/_cacache/tmp) which has restricted permissions. If you follow the steps in the link it should fix the issue. I hope this helps.

Edit: If you follow the steps it should no longer be necessary to run the command with sudo

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to install rasa-webchat · Issue #8 - GitHub
We're working on it. At this time, rasa-webchat is not npm installable (the command you ran installs the project it is forked from),...
Read more >
I am unable to install "rasa-webchat" using "npm" in my React ...
I am unable to install "rasa-webchat" using "npm" in my React Project ... There is a blog summarizing the status of rasa chat...
Read more >
@anthonygigerich/rasa-webchat - npm
Chat web widget for React apps and Rasa Core chatbots. Latest version: 1.2.0, last published: a year ago.
Read more >
webchat-rasa - gitlab user
As a React component. Install the npm package: npm install rasa-webchat.
Read more >
I'm trying to install rasa and came up with this error, can ...
Please specify the Operating system and version of rasa and python you are using for Installation? Prebuilt wheels for Windows and Mac OS...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found