简体   繁体   English

NodeJS-无法安装nodemon

[英]NodeJS- Cannot install nodemon

I am trying to install nodemon but everytime I got stuck at the same part. 我正在尝试安装nodemon,但每次遇到相同问题时,都会遇到这种情况。 It get a response, but didn't end the job. 它得到了回应,但并未终止工作。 I have to stop it after some minutes with the state bellow. 几分钟后,我必须在波纹管状态下停止它。 I already try another modules and all of them install correctaly. 我已经尝试了另一个模块,并且所有模块都正确安装。

Could someone say what could be wrong or any other similar module? 有人可以说出什么问题或任何其他类似的模块吗? Thanks. 谢谢。

Your environment has been set up for using Node.js 0.10.28 (x64) and npm.

C:\Users\>npm instal -g nodemon
npm http GET https://registry.npmjs.org/nodemon
npm http 304 https://registry.npmjs.org/nodemon

This has happened to me with other modules after canceling the install mid-way once, then when I do it again, it will get stuck. 在中途取消一次安装后,其他模块发生了这种情况,然后再次执行安装时,它会卡住。

I had to clear the cache before trying again. 我必须先清除缓存,然后再尝试。

npm cache clean
npm install -g nodemon

I've made it but I installed from the source and I did a git clone from the master branch, so try this out: 我已经做到了,但是我是从源代码安装的,并且是从master分支进行的git clone,所以尝试一下:

Create a folder: 创建一个文件夹:

mkdir nodemon
cd nodemon

clone the repo: 克隆仓库:

git clone https://github.com/remy/nodemon.git

then do an install in the folder you have created 然后在您创建的文件夹中进行安装

npm install

Type nodemon just to make sure you have installed it. 键入nodemon仅用于确保已安装它。

in the case you got an erorr like this 如果你有这样的错误

Error: EACCES, permission denied '/home/[username]/.config/configstore/update-notifier-nodemon.yml' You don't have access to this file. 错误:EACCES,权限被拒绝'/ home / [用户名] /。config / configstore / update-notifier-nodemon.yml'您无权访问此文件。

try this 尝试这个

sudo chown [username]:[username] /home/[username]/.config/configstore/ -R

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM