2023年12月18日发(
作者:standoff2
下载)
今天通过npm安装install的时候出现的问题E:Workspace_WebStormangular2>npm install -gC:UserslyxAppDataRoamingnpm`-- angular2@0.0.0`-- UNMET PEER DEPENDENCY typescript@>=1.8.0 <2.1.0 || >=1.9.0-dev || >=2.0.0-dev || || >=2.1.0-devnpm WARN ts-helpers@1.1.2 requires a peer of typescript@>=1.8.0 <2.1.0 || >=1.9.0-dev || >=2.0.0-dev || || >=2.1.0-dev but none was installed.E:Workspace_WebStormangular2>npm installnpm WARN deprecated angular-cli@1.0.0-beta.28.3: angular-cli has been renamed to @angular/cli. Please update your dependencies.> node-sass@4.5.0 install E:Workspace_WebStormangular2node_modulesangular-clinode_modulesnode-sass> node scripts/KETTIMEDOUTHint: If is not accessible in your locationtry setting a proxy via HTTP_PROXY, configure npm proxy via> node-sass@4.5.0 postinstall E:Workspace_WebStormangular2node_modulesangular-clinode_modulesnode-sass> node scripts/ry found at E:Workspace_WebStormangular2node_modulesangular-clinode_sting binaryBinary has a problem: Error: %1 is not a valid Win32 application.?E:Workspace_WebStormangular2node_modulesangular-clinode_ ._de (:598:18)at (:488:32)at tryModuleLoad (:447:12)at ._load (:439:3)at e (:498:17)at require (internal/:20:19)at s (E:Workspace_WebStormangular2node_modulesangular-clinode_:19:10)at Object. (E:Workspace_WebStormangular2node_modulesangular-clinode_:14:35)at Module._compile (:571:32)at ._extensions..js (:580:10)Building the binary locallyBuilding: E: E:Workspace_WebStormangular2node_ rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=gyp info it worked if it ends with okgyp verb cli [ 'E:',gyp verb cli 'E:Workspace_WebStormangular2node_',gyp verb cli 'rebuild',gyp verb cli '--verbose',gyp verb cli '--libsass_ext=',gyp verb cli '--libsass_cflags=',gyp verb cli '--libsass_ldflags=',gyp verb cli '--libsass_library=' ]gyp info using node-gyp@3.5.0gyp info using node@7.5.0 | win32 | x64gyp verb command rebuild []gyp verb command clean []gyp verb clean removing "build" directorygyp verb command configure []gyp verb check python checking for Python executable "python2" in the PATHgyp verb `which` failed Error: not found: python2gyp verb `which` failed at getNotFoundError (E:Workspace_WebStormangular2node_:13:12)gyp verb `which` failed at F (E:Workspace_WebStormangular2node_:68:19)gyp verb `which` failed at E (E:Workspace_WebStormangular2node_:80:29)gyp verb `which` failed at E:Workspace_WebStormangular2node_:89:16gyp verb `which` failed at E:Workspace_WebStormangular2node_:44:5gyp verb `which` failed at E:Workspace_WebStormangular2node_:29:5gyp verb `which` failed at lete (:112:15)gyp verb `which` failed python2 { Error: not found: python2gyp verb `which` failed at getNotFoundError (E:Workspace_WebStormangular2node_:13:12)gyp verb `which` failed at F (E:Workspace_WebStormangular2node_:68:19)gyp verb `which` failed at E (E:Workspace_WebStormangular2node_:80:29)gyp verb `which` failed at E:Workspace_WebStormangular2node_:89:16gyp verb `which` failed at E:Workspace_WebStormangular2node_:44:5gyp verb `which` failed at E:Workspace_WebStormangular2node_:29:5gyp verb `which` failed at lete (:112:15) code: 'ENOENT' }gyp verb check python checking for Python executable "python" in the PATHgyp verb `which` succeeded python C: verb check python version `C: -c "import platform; print(_version());"` returned: "2.7.13rn"gyp verb get node dir no --target version specified, falling back to host node version: 7.5.0gyp verb command install [ '7.5.0' ]gyp verb install input version string "7.5.0"gyp verb install installing version: 7.5.0gyp verb install --ensure was passed, so won't reinstall if already installedgyp verb install version is already installed, need to check "installVersion"gyp verb got "installVersion" 9gyp verb needs "installVersion" 9gyp verb install version is goodgyp verb get node dir target node version installed: 7.5.0gyp verb build dir attempting to create "build" dir: E:Workspace_WebStormangular2node_modulesangular-clinode_modulesnode-sassbuildgyp verb build dir "build" dir needed to be created? E:Workspace_WebStormangular2node_modulesangular-clinode_modulesnode-sassbuildgyp verb build/ creating config filegyp verb build/ writing out config file: E:Workspace_WebStormangular2node_modulesangular-clinode_p verb checking for gypi file: E:Workspace_WebStormangular2node_modulesangular-clinode_