草庐IT

npm-config

全部标签

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:

c# - Powershell:在 applicationHost.config 中查找 allowedServerVariables 的脚本检查是否重复

我正在尝试添加一个新的服务器变量Add-WebConfiguration/system.webServer/rewrite/allowedServerVariables-atIndex0-value@{name="HTTP_COOKIE"}但是我得到以下错误Add-WebConfigurationProperty:Filename:Error:Cannotaddduplicatecollectionentryoftype'add'withuniquekeyattribute'name'setto'Test'Atline:1char:1+Add-WebConfigurationPrope

c# - 启动 Windows 服务时找不到 app.config

我有一个在Windows7上运行的CSharpWindows服务。它从设备管理框架实例化一个dll。此dll有一些设置存储在名为“pm.config”的app.config中。我将所有程序集和pm.config文件复制到与winsvc项目文件夹同一级别的名为“bin”的文件夹中。我添加了对dll框架的引用并编译了项目。pm.config文件存在于“bin\debug”和“bin\release”子文件夹中。我使用installutil安装了winsvc并启动了winsvc。一切正常,除了当winsvc从框架dll调用“初始化”方法时,此方法尝试打开pm.config文件并生成以下异常:

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上找到一个类似的

windows - “npm-windows-upgrade”未被识别为内部或外部命令

我跑了$npminstall--global--productionnpm-windows-upgrade它返回了这个看起来很积极的反馈├──cli-spinner@0.2.5├──commander@2.9.0(graceful-readlink@1.0.1)├──chalk@1.1.3(ansi-styles@2.2.1,escape-string-regexp@1.0.5,supports-color@2.0.0,strip-ansi@3.0.1,has-ansi@2.0.0)├──promise@7.1.1(asap@2.0.4)├──inquirer@1.0.3(ansi-e

windows - npm err! Visual C++“VCBuild.exe”

当我安装fabric.js项目时,我收到了以下错误消息。VisualC++component"VCBuild.exe"所以我安装了visualstudio2017,.netframeworksdk和python2.7,但仍然存在这个问题。我的操作系统是Windows7。请帮助 最佳答案 你不必安装visualstudio和.netframeworksdk2.0。请以管理员身份运行以下npm命令。npminstall--global--productionwindows-build-tools这就是全部。

node.js - npm install openssl 在 Windows 10 上失败

我在Win10的Node.js命令窗口中运行以下命令。它失败了。任何人有想法如何解决它?我正在运行Node.jsv7.3.0C:\Users\haozhang>npminstallopensslC:\Users\haozhang`--openssl@1.1.0+--mout@0.11.1`--nyks@2.31.3+--async@2.1.5|`--lodash@4.17.4`--mout@1.0.0npmWARNenoentENOENT:nosuchfileordirectory,open'C:\Users\haozhang\package.json'npmWARNhaozhangN

windows - Node.JS NPM 无法在 Windows 上运行

我刚刚安装了最新版本的nodejs,虽然我可以让它运行js文件,但我无法让npm做任何事情。如果我打开node.exe,它会弹出提示,然后我分别尝试了以下各项,但均无效:>nodenpminstallsocket.io>npminstallsocket.io>help>nodehelp以上所有结果只返回一行“...”,然后我输入的所有内容之后,我只会得到另一行“...”。这非常令人沮丧。我做错了什么? 最佳答案 如果您在安装最新的nodejs时打开了命令提示符,那么在您关闭命令提示符并打开一个新命令提示符之前,将无法识别Window

windows - mftraining 给出警告 : no protos/configs for F in CreateIntTemplates()

编辑:mftraining在标题中为unicharset中的所有字符发出警告(因此不仅是F,还有a、b、c、d等)我如何创建这些原型(prototype)/配置?我正在关注this教程现在解决的上一个问题:-Error:AssertfailedWarning:infile....\classify\trainingsampleset.cpp,line622noprotos/SegmentationFault这是整个命令+输出:-C:\training>mftraining-Ffont_properties-Uunicharset-Oeng.unicharseteng.impact.bo