尝试运行npm install时出现以下错误。
类型:
npm install
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
audited 17160 packages in 10.766s
found 2 moderate severity vulnerabilities
run `npm audit fix` to fix them, or `npm audit` for details
答案 0 :(得分:0)
这不是错误,仅是警告。该警告表明您正在使用Windows操作系统,其中该软件包是为MacOS设计的。
VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, "methodName' = SendConfigurationApply,'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' = root/Microsoft/Windows/DesiredStateConfiguration'.
VERBOSE: An LCM method call arrived from computer VMNAME with user sid
VERBOSE: [VMNAME]: LCM: [ Start Set ]
VERBOSE: [VMNAME]: LCM: [ Start Resource ] [[CreatePSDrive]NewDrive]
VERBOSE: [VMNAME]: LCM: [ Start Test ] [[CreatePSDrive]NewDrive]
VERBOSE: [VMNAME]: [[CreatePSDrive]NewDrive] I
VERBOSE: [VMNAME]: [[CreatePSDrive]NewDrive] \\shared_drive\Repository\Installers
VERBOSE: [VMNAME]: [[CreatePSDrive]NewDrive] PSDrive does not exist
VERBOSE: [VMNAME]: LCM: [ End Test ] [[CreatePSDrive]NewDrive] in 0.5470 seconds.
VERBOSE: [VMNAME]: LCM: [ Start Set ] [[CreatePSDrive]NewDrive]
VERBOSE: [VMNAME]: [[CreatePSDrive]NewDrive] I
VERBOSE: [VMNAME]: [[CreatePSDrive]NewDrive] \\shared_drive\Repository\Installers
VERBOSE: [VMNAME]: [[CreatePSDrive]NewDrive] DOMAIN\username
VERBOSE: [VMNAME]: [[CreatePSDrive]NewDrive] Performing the operation "New drive" on target "Name: I Provider: Microsoft.PowerShell.Core\FileSystem Root: \\shared_drive\Repository\Installers".
VERBOSE: [VMNAME]: LCM: [ End Set ] [[CreatePSDrive]NewDrive] in 0.3130 seconds.
VERBOSE: [VMNAME]: LCM: [ End Resource ] [[CreatePSDrive]NewDrive]
VERBOSE: [VMNAME]: LCM: [ End Set ]
VERBOSE: [VMNAME]: LCM: [ End Set ] in 1.5420 seconds.
VERBOSE: Operation 'Invoke CimMethod' complete.
VERBOSE: Time taken for configuration job to complete is 1.78 seconds
您可以跳过此警告并继续。它不会对您的开发产生任何影响。