简体   繁体   English

无论我做什么我都无法安装npm

[英]I can't install npm not matter what I do

So I'm trying to get myself a good Discord Selfbot and one of them requires nodejs, then it said to do npm install. 因此,我试图为自己提供一个出色的Discord Selfbot,其中之一需要nodejs,然后说要进行npm安装。 But it gave me an error. 但这给了我一个错误。 I tried again again again and again but nothing worked. 我一次又一次地尝试,但是没有任何效果。 The latest thing I did was installing nodejs via scoop but I get this error trying to install npm. 我做的最新一件事是通过瓢安装nodejs,但尝试安装npm时出现此错误。 Is there a way to do this manually or something? 有没有办法手动执行此操作? I've tried installing different versions but nothing. 我试过安装其他版本,但是什么也没有。 I believe scoop installed the latest version. 我相信独家新闻安装了最新版本。 Here's the image. 这是图片。 (the red squares cover up just names) (红色方块掩盖了名字)

You already have npm installed! 您已经安装了npm! npm is a package manager for installing nodejs packages. npm是用于安装nodejs软件包的软件包管理器。 Try running some nonsense command (like "lkajshdflhsf") and you'll see what it looks like if you actually didn't have npm installed. 尝试运行一些废话命令(例如“ lkajshdflhsf”),如果您实际上未安装npm,则会看到它的外观。 What npm install does is install some package. npm install要做的是安装一些软件包。 So, for example, if you want to install a node package called Blah, you would run npm intall blah . 因此,例如,如果要安装名为Blah的节点程序包,则可以运行npm intall blah

You have npm already installed, seems that the problem is you don't have a package.json in that location. 您已经安装了npm,看来问题是您在该位置没有package.json。 It says ENOENT: No such file or directory 它说ENOENT: No such file or directory

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

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