草庐IT

npm-request

全部标签

node.js - 每个命令上的 npm 错误 : EEXIST: file already exists, mkdir 'c:\users\user\appdata\Roaming\npm'

我刚接触node和npm,这很令人沮丧。嗯,这几乎都在标题中说了。在使用非提升提示的Windows10x64上,所有npm命令都显示:EEXIST:filealreadyexists,mkdir'c:\Users\Josep\AppData\Roaming\npm'atError(native)甚至npm-v在版本号前显示两次。没有在提升的提示中出现。版本号在提升和用户提示中不同。仔细检查PATH变量。在两个cmd窗口上相同。Node版本6.10.0NPM版本:提升提示时为4.3.0,用户提示时为3.10.10。 最佳答案 对我来说

node.js - npm install 尝试从随机 fork 安装

我有一个Node项目在mac上工作正常,但在家里的windows上,当我尝试执行npminstall时,它给我一个访问权限错误。在我的package.json我有这个"dependencies":{"async":"2.1.4"}它给我这个错误npmERR!Commandfailed:git-ccore.longpaths=truecloneC:\Users\username\AppData\Roaming\npm-cache\_git-remotes\git-github-com-jstewmon-async-git-e757f9b4C:\Users\username\.babun\

windows - 错误 1053 : The service did not respond to the start or control request in a timely fashion

我有一个可执行文件,我想将其设置为作为服务运行。使用windows提供的sc.exe工具(见知识库文章:http://support.microsoft.com/kb/251192),我成功“注册”了服务。但是,当我转到服务管理控制台(开始->运行->services.msc)并启动服务时,出现以下错误:错误1053:服务没有及时响应启动或控制请求。阅读之后,我的初步印象是服务可执行文件必须符合API,并且服务必须响应的必需功能/方法包括启动/停止/重新启动命令。然而,这似乎违背了sc.exe工具的全部意义,该工具被宣传能够将任何可执行文件转换为服务。任何人都可以为我阐明这一点吗?

windows - NPM Install (Windows) 抛出 .SLN 错误...?

我正在使用Node.js(和其他几个Node模块),现在我在多个不同的项目中遇到过这个问题......有很多(不是全部,而是很多)Node模块,当我尝试安装一个模块时,我会遇到类似的错误:C:\...\.node-gyp\0.8.16\deps\uv\include\uv.h(55):fatalerrorC1083:Cannotopenincludefile:'stdint.h':Nosuchfileordirectory[C:\...\AppData\Roaming\npm\node_modules\soap\node_modules\node-expat\build\binding

windows - "cannot find module"在 Windows 上安装 npm 模块时

我是NodeJS的新手。我正在尝试在Windows8上使用npm。我已经使用chocolatey安装了,cinstnodejs.install(版本0.10.17)。我以管理员身份安装(并且更愿意以普通用户身份运行npm)。Node本身似乎可以工作,我可以使用REPL来运行简单的程序。如果我尝试使用npm安装某些东西,我会得到cannotfindmodule:>nodenpminstallexpressmodule.js:340throwerr;^Error:Cannotfindmodule'C:\Users\Klas\Documents\MyDropbox\minaegna\tech

node.js - npm 命令返回消息 -g' 未被识别为内部或外部命令

我使用的是Windows8.164位,并使用来自nodejs.org的WindowsInstaller安装npm。每次我输入npm命令时,它总是显示此消息:'CALL"C:\ProgramFiles\nodejs\node.exe""C:\ProgramFiles\nodejs\node_modules\npm\bin\npm-cli.js"prefix-g'不被识别为内部或外部命令,可运行的程序或批处理文件。Errorwhilerunningnpm“prefix-gisnotrecognizedasaninternalorexternalcommand”没有解决我的问题Node-vv

node.js - Maven 未能执行目标 - 无法运行程序 npm

我使用的是Windows7计算机,我已获得必须运行“mvninstall”才能构建应用程序的代码。当我这样做时,出现以下错误:Failedtoexecutegoalorg.codehaus.mojo:exec-maven-plugin:1.2.1:exec(npm-install)onproject[project]:Commandexecutionfailed.:Cannotrunprogram"npm"(indirectory"C:\Users\path\to\a\folder"):CreateProcesserror=2,Thesystemcannotfindthefilespe

node.js - 在 Windows 中通过 pm2 执行 npm 脚本的问题

我正在尝试使用ecosystem.json通过pm2运行npm自定义脚本,{"apps":[{"name":"Service","script":"npm","args":"runcommand"}]}很遗憾,我做不到。谁能帮我度过难关?我得到如下所示,C:\PROGRAMFILES\NODEJS\NPM.CMD:10|Service|(function(exports,require,module,__filename,__dirname){::Createdbynpm,pleasedon'teditmanually.0|Service|^0|Service|SyntaxError:

angularjs - 如何使用 npm install 解决隧道套接字错误?

我试图在我的Angular项目中运行npminstall但导致错误:errornetworktunnelingsocketcouldnotbeestablished,cause=readECONNRESETerrornetworkThisismostlikelynotaproblemwithnpmitselferrornetworkandisrelatedtonetworkconnectivity.errornetworkInmostcasesyouarebehindaproxyorhavebadnetworksettings.我试过这样设置npm代理:npmconfigsetprox

node.js - 将全局包的 npm 安装路径更改为自定义目录

我想配置我的Node设置,以便它存储全局模块(使用npminstall-g安装到(并从中读取)自定义目录D:\node_modules。默认路径是C:\Users\User\AppData\Roaming\npm。任何指针将不胜感激。操作系统是Windows。 最佳答案 在npm帮助中找到答案。必须设置prefix配置:D:>npm配置设置前缀“D:\node_modules” 关于node.js-将全局包的npm安装路径更改为自定义目录,我们在StackOverflow上找到一个类似的