GithubHelp home page GithubHelp logo

Comments (8)

TheoTomalty avatar TheoTomalty commented on July 21, 2024 1

@azizullah2017 This looks like a permissions problem similar to npm/npm#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

from rasa-webchat.

znat avatar znat commented on July 21, 2024

@azizullah2017
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), but it is going to be in a few days.
In the meantime, you can only use it as a JS snippet in a <script> tag (see readme)

from rasa-webchat.

TheoTomalty avatar TheoTomalty commented on July 21, 2024

You should be able to install rasa-webchat now, the command is

npm install mrbot-ai/rasa-webchat

Note that it will appear to be hanging but it just takes a really long time to install.

from rasa-webchat.

azizullah2017 avatar azizullah2017 commented on July 21, 2024

@TheoTomalty I am facing issue from this command
npm install mrbot-ai/rasa-webchat

Refusing to install rasa-webchat as a dependency of itself

$ npm install mrbot-ai/rasa-webchat
(node:4687) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
npm ERR! Linux 4.13.0-46-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "mrbot-ai/rasa-webchat"
npm ERR! node v6.11.5
npm ERR! npm  v3.5.2
npm ERR! code ENOSELF

npm ERR! Refusing to install rasa-webchat as a dependency of itself
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     

from rasa-webchat.

TheoTomalty avatar TheoTomalty commented on July 21, 2024

@azizullah2017 it looks like this is because you are using an old version of node, and it is interacting badly with one of the dependencies. It will likely work if you update and try again. The same issue here sequelize/cli#291

from rasa-webchat.

azizullah2017 avatar azizullah2017 commented on July 21, 2024

@TheoTomalty I am still facing the error.
node version : v10.12.0
npm version: 6.4.1

sudo npm install mrbot-ai/rasa-webchat
npm ERR! prepareGitDep 1> 
npm ERR! prepareGitDep > [email protected] install /home/user/.npm/_cacache/tmp/git-clone-97fa0a42/node_modules/husky
npm ERR! prepareGitDep > node ./bin/install.js
npm ERR! prepareGitDep 
npm ERR! prepareGitDep husky
npm ERR! prepareGitDep setting up hooks
npm ERR! prepareGitDep 
npm ERR! prepareGitDep > [email protected] install /home/user/.npm/_cacache/tmp/git-clone-97fa0a42/node_modules/node-sass
npm ERR! prepareGitDep > node scripts/install.js
npm ERR! prepareGitDep 
npm ERR! prepareGitDep 
npm ERR! prepareGitDep > [email protected] postinstall /home/user/.npm/_cacache/tmp/git-clone-97fa0a42/node_modules/node-sass
npm ERR! prepareGitDep > node scripts/build.js
npm ERR! prepareGitDep 
npm ERR! prepareGitDep Building: /usr/local/bin/node /home/user/.npm/_cacache/tmp/git-clone-97fa0a42/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
npm ERR! prepareGitDep 
npm ERR! prepareGitDep 2> npm WARN install Usage of the `--dev` option is deprecated. Use `--only=dev` instead.
npm ERR! prepareGitDep { Error: EACCES: permission denied, mkdir '/home/user/.npm/_cacache/tmp/git-clone-97fa0a42/.git/hooks'
npm ERR! prepareGitDep     at Object.mkdirSync (fs.js:750:3)
npm ERR! prepareGitDep     at createHook (/home/user/.npm/_cacache/tmp/git-clone-97fa0a42/node_modules/husky/src/index.js:175:36)
npm ERR! prepareGitDep     at /home/user/.npm/_cacache/tmp/git-clone-97fa0a42/node_modules/husky/src/index.js:221:21
npm ERR! prepareGitDep     at Array.map (<anonymous>)
npm ERR! prepareGitDep     at Object.installFrom (/home/user/.npm/_cacache/tmp/git-clone-97fa0a42/node_modules/husky/src/index.js:217:10)
npm ERR! prepareGitDep     at Object.<anonymous> (/home/user/.npm/_cacache/tmp/git-clone-97fa0a42/node_modules/husky/bin/install.js:17:7)
npm ERR! prepareGitDep     at Module._compile (internal/modules/cjs/loader.js:688:30)
npm ERR! prepareGitDep     at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
npm ERR! prepareGitDep     at Module.load (internal/modules/cjs/loader.js:598:32)
npm ERR! prepareGitDep     at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
npm ERR! prepareGitDep   errno: -13,
npm ERR! prepareGitDep   syscall: 'mkdir',
npm ERR! prepareGitDep   code: 'EACCES',
npm ERR! prepareGitDep   path: '/home/user/.npm/_cacache/tmp/git-clone-97fa0a42/.git/hooks' }
npm ERR! prepareGitDep Unable to save binary /home/user/.npm/_cacache/tmp/git-clone-97fa0a42/node_modules/node-sass/vendor/linux-x64-64 : { Error: EACCES: permission denied, mkdir '/home/user/.npm/_cacache/tmp/git-clone-97fa0a42/node_modules/node-sass/vendor'
npm ERR! prepareGitDep     at Object.mkdirSync (fs.js:750:3)
npm ERR! prepareGitDep     at sync (/home/user/.npm/_cacache/tmp/git-clone-97fa0a42/node_modules/mkdirp/index.js:71:13)
npm ERR! prepareGitDep     at Function.sync (/home/user/.npm/_cacache/tmp/git-clone-97fa0a42/node_modules/mkdirp/index.js:77:24)
npm ERR! prepareGitDep     at checkAndDownloadBinary (/home/user/.npm/_cacache/tmp/git-clone-97fa0a42/node_modules/node-sass/scripts/install.js:114:11)
npm ERR! prepareGitDep     at Object.<anonymous> (/home/user/.npm/_cacache/tmp/git-clone-97fa0a42/node_modules/node-sass/scripts/install.js:157:1)
npm ERR! prepareGitDep     at Module._compile (internal/modules/cjs/loader.js:688:30)
npm ERR! prepareGitDep     at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
npm ERR! prepareGitDep     at Module.load (internal/modules/cjs/loader.js:598:32)
npm ERR! prepareGitDep     at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
npm ERR! prepareGitDep     at Function.Module._load (internal/modules/cjs/loader.js:529:3)
npm ERR! prepareGitDep   errno: -13,
npm ERR! prepareGitDep   syscall: 'mkdir',
npm ERR! prepareGitDep   code: 'EACCES',
npm ERR! prepareGitDep   path:
npm ERR! prepareGitDep    '/home/user/.npm/_cacache/tmp/git-clone-97fa0a42/node_modules/node-sass/vendor' }
npm ERR! prepareGitDep gyp info it worked if it ends with ok
npm ERR! prepareGitDep gyp verb cli [ '/usr/local/bin/node',
npm ERR! prepareGitDep gyp verb cli   '/home/user/.npm/_cacache/tmp/git-clone-97fa0a42/node_modules/node-gyp/bin/node-gyp.js',
npm ERR! prepareGitDep gyp verb cli   'rebuild',
npm ERR! prepareGitDep gyp verb cli   '--verbose',
npm ERR! prepareGitDep gyp verb cli   '--libsass_ext=',
npm ERR! prepareGitDep gyp verb cli   '--libsass_cflags=',
npm ERR! prepareGitDep gyp verb cli   '--libsass_ldflags=',
npm ERR! prepareGitDep gyp verb cli   '--libsass_library=' ]
npm ERR! prepareGitDep gyp info using [email protected]
npm ERR! prepareGitDep gyp info using [email protected] | linux | x64
npm ERR! prepareGitDep gyp verb command rebuild []
npm ERR! prepareGitDep gyp verb command clean []
npm ERR! prepareGitDep gyp verb clean removing "build" directory
npm ERR! prepareGitDep gyp verb command configure []
npm ERR! prepareGitDep gyp verb check python checking for Python executable "python2" in the PATH
npm ERR! prepareGitDep gyp verb `which` succeeded python2 /usr/bin/python2
npm ERR! prepareGitDep gyp verb check python version `/usr/bin/python2 -c "import platform; print(platform.python_version());"` returned: "2.7.14\n"
npm ERR! prepareGitDep gyp verb get node dir no --target version specified, falling back to host node version: 10.12.0
npm ERR! prepareGitDep gyp verb command install [ '10.12.0' ]
npm ERR! prepareGitDep gyp verb install input version string "10.12.0"
npm ERR! prepareGitDep gyp verb install installing version: 10.12.0
npm ERR! prepareGitDep gyp verb install --ensure was passed, so won't reinstall if already installed
npm ERR! prepareGitDep gyp verb install version is already installed, need to check "installVersion"
npm ERR! prepareGitDep gyp verb got "installVersion" 9
npm ERR! prepareGitDep gyp verb needs "installVersion" 9
npm ERR! prepareGitDep gyp verb install version is good
npm ERR! prepareGitDep gyp verb get node dir target node version installed: 10.12.0
npm ERR! prepareGitDep gyp verb build dir attempting to create "build" dir: /home/user/.npm/_cacache/tmp/git-clone-97fa0a42/node_modules/node-sass/build
npm ERR! prepareGitDep gyp ERR! configure error 
npm ERR! prepareGitDep gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/user/.npm/_cacache/tmp/git-clone-97fa0a42/node_modules/node-sass/build'
npm ERR! prepareGitDep gyp ERR! System Linux 4.13.0-46-generic
npm ERR! prepareGitDep gyp ERR! command "/usr/local/bin/node" "/home/user/.npm/_cacache/tmp/git-clone-97fa0a42/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
npm ERR! prepareGitDep gyp ERR! cwd /home/user/.npm/_cacache/tmp/git-clone-97fa0a42/node_modules/node-sass
npm ERR! prepareGitDep gyp ERR! node -v v10.12.0
npm ERR! prepareGitDep gyp ERR! node-gyp -v v3.6.2
npm ERR! prepareGitDep gyp ERR! not ok 
npm ERR! prepareGitDep Build failed with error code: 1
npm ERR! prepareGitDep npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm ERR! prepareGitDep npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! prepareGitDep 
npm ERR! prepareGitDep npm ERR! code ELIFECYCLE
npm ERR! prepareGitDep npm ERR! errno 1
npm ERR! prepareGitDep npm ERR! [email protected] postinstall: `node scripts/build.js`
npm ERR! prepareGitDep npm ERR! Exit status 1
npm ERR! prepareGitDep npm ERR! 
npm ERR! prepareGitDep npm ERR! Failed at the [email protected] postinstall script.
npm ERR! prepareGitDep npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! prepareGitDep 
npm ERR! prepareGitDep npm ERR! A complete log of this run can be found in:
npm ERR! prepareGitDep npm ERR!     /home/user/.npm/_logs/2018-10-19T05_05_40_736Z-debug.log
npm ERR! prepareGitDep 
npm ERR! premature close

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/user/.npm/_logs/2018-10-19T05_05_41_979Z-debug.log

from rasa-webchat.

azizullah2017 avatar azizullah2017 commented on July 21, 2024

@TheoTomalty
Node version: v10.12.0
npm version : 6.4.1

 $ sudo npm install mrbot-ai/rasa-webchat
[sudo] password for user: 
npm ERR! prepareGitDep 1> 
npm ERR! prepareGitDep > [email protected] install /home/user/.npm/_cacache/tmp/git-clone-e2642740/node_modules/node-sass
npm ERR! prepareGitDep > node scripts/install.js
npm ERR! prepareGitDep 
npm ERR! prepareGitDep 
npm ERR! prepareGitDep > [email protected] postinstall /home/user/.npm/_cacache/tmp/git-clone-e2642740/node_modules/node-sass
npm ERR! prepareGitDep > node scripts/build.js
npm ERR! prepareGitDep 
npm ERR! prepareGitDep Building: /usr/local/bin/node /home/user/.npm/_cacache/tmp/git-clone-e2642740/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
npm ERR! prepareGitDep 
npm ERR! prepareGitDep 2> npm WARN install Usage of the `--dev` option is deprecated. Use `--only=dev` instead.
npm ERR! prepareGitDep Unable to save binary /home/user/.npm/_cacache/tmp/git-clone-e2642740/node_modules/node-sass/vendor/linux-x64-64 : { Error: EACCES: permission denied, mkdir '/home/user/.npm/_cacache/tmp/git-clone-e2642740/node_modules/node-sass/vendor'
npm ERR! prepareGitDep     at Object.mkdirSync (fs.js:750:3)
npm ERR! prepareGitDep     at sync (/home/user/.npm/_cacache/tmp/git-clone-e2642740/node_modules/mkdirp/index.js:71:13)
npm ERR! prepareGitDep     at Function.sync (/home/user/.npm/_cacache/tmp/git-clone-e2642740/node_modules/mkdirp/index.js:77:24)
npm ERR! prepareGitDep     at checkAndDownloadBinary (/home/user/.npm/_cacache/tmp/git-clone-e2642740/node_modules/node-sass/scripts/install.js:114:11)
npm ERR! prepareGitDep     at Object.<anonymous> (/home/user/.npm/_cacache/tmp/git-clone-e2642740/node_modules/node-sass/scripts/install.js:157:1)
npm ERR! prepareGitDep     at Module._compile (internal/modules/cjs/loader.js:688:30)
npm ERR! prepareGitDep     at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
npm ERR! prepareGitDep     at Module.load (internal/modules/cjs/loader.js:598:32)
npm ERR! prepareGitDep     at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
npm ERR! prepareGitDep     at Function.Module._load (internal/modules/cjs/loader.js:529:3)
npm ERR! prepareGitDep   errno: -13,
npm ERR! prepareGitDep   syscall: 'mkdir',
npm ERR! prepareGitDep   code: 'EACCES',
npm ERR! prepareGitDep   path:
npm ERR! prepareGitDep    '/home/user/.npm/_cacache/tmp/git-clone-e2642740/node_modules/node-sass/vendor' }
npm ERR! prepareGitDep gyp info it worked if it ends with ok
npm ERR! prepareGitDep gyp verb cli [ '/usr/local/bin/node',
npm ERR! prepareGitDep gyp verb cli   '/home/user/.npm/_cacache/tmp/git-clone-e2642740/node_modules/node-gyp/bin/node-gyp.js',
npm ERR! prepareGitDep gyp verb cli   'rebuild',
npm ERR! prepareGitDep gyp verb cli   '--verbose',
npm ERR! prepareGitDep gyp verb cli   '--libsass_ext=',
npm ERR! prepareGitDep gyp verb cli   '--libsass_cflags=',
npm ERR! prepareGitDep gyp verb cli   '--libsass_ldflags=',
npm ERR! prepareGitDep gyp verb cli   '--libsass_library=' ]
npm ERR! prepareGitDep gyp info using [email protected]
npm ERR! prepareGitDep gyp info using [email protected] | linux | x64
npm ERR! prepareGitDep gyp verb command rebuild []
npm ERR! prepareGitDep gyp verb command clean []
npm ERR! prepareGitDep gyp verb clean removing "build" directory
npm ERR! prepareGitDep gyp verb command configure []
npm ERR! prepareGitDep gyp verb check python checking for Python executable "python2" in the PATH
npm ERR! prepareGitDep gyp verb `which` succeeded python2 /usr/bin/python2
npm ERR! prepareGitDep gyp verb check python version `/usr/bin/python2 -c "import sys; print "2.7.14
npm ERR! prepareGitDep gyp verb check python version .%s.%s" % sys.version_info[:3];"` returned: %j
npm ERR! prepareGitDep gyp verb get node dir no --target version specified, falling back to host node version: 10.12.0
npm ERR! prepareGitDep gyp verb command install [ '10.12.0' ]
npm ERR! prepareGitDep gyp verb install input version string "10.12.0"
npm ERR! prepareGitDep gyp verb install installing version: 10.12.0
npm ERR! prepareGitDep gyp verb install --ensure was passed, so won't reinstall if already installed
npm ERR! prepareGitDep gyp verb install version is already installed, need to check "installVersion"
npm ERR! prepareGitDep gyp verb got "installVersion" 9
npm ERR! prepareGitDep gyp verb needs "installVersion" 9
npm ERR! prepareGitDep gyp verb install version is good
npm ERR! prepareGitDep gyp verb get node dir target node version installed: 10.12.0
npm ERR! prepareGitDep gyp verb build dir attempting to create "build" dir: /home/user/.npm/_cacache/tmp/git-clone-e2642740/node_modules/node-sass/build
npm ERR! prepareGitDep gyp ERR! configure error 
npm ERR! prepareGitDep gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/user/.npm/_cacache/tmp/git-clone-e2642740/node_modules/node-sass/build'
npm ERR! prepareGitDep gyp ERR! System Linux 4.13.0-46-generic
npm ERR! prepareGitDep gyp ERR! command "/usr/local/bin/node" "/home/user/.npm/_cacache/tmp/git-clone-e2642740/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
npm ERR! prepareGitDep gyp ERR! cwd /home/user/.npm/_cacache/tmp/git-clone-e2642740/node_modules/node-sass
npm ERR! prepareGitDep gyp ERR! node -v v10.12.0
npm ERR! prepareGitDep gyp ERR! node-gyp -v v3.8.0
npm ERR! prepareGitDep gyp ERR! not ok 
npm ERR! prepareGitDep Build failed with error code: 1
npm ERR! prepareGitDep npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm ERR! prepareGitDep npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! prepareGitDep 
npm ERR! prepareGitDep npm ERR! code ELIFECYCLE
npm ERR! prepareGitDep npm ERR! errno 1
npm ERR! prepareGitDep npm ERR! [email protected] postinstall: `node scripts/build.js`
npm ERR! prepareGitDep npm ERR! Exit status 1
npm ERR! prepareGitDep npm ERR! 
npm ERR! prepareGitDep npm ERR! Failed at the [email protected] postinstall script.
npm ERR! prepareGitDep npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! prepareGitDep 
npm ERR! prepareGitDep npm ERR! A complete log of this run can be found in:
npm ERR! prepareGitDep npm ERR!     /home/user/.npm/_logs/2018-10-22T05_16_52_116Z-debug.log
npm ERR! prepareGitDep 
npm ERR! premature close

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/user/.npm/_logs/2018-10-22T05_16_52_306Z-debug.log

from rasa-webchat.

TheoTomalty avatar TheoTomalty commented on July 21, 2024

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

from rasa-webchat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.