Angular yarn安装报错

D:\cathy\appwork-v1_2_2\angular-demo>yarn
yarn install v1.13.0
info No lockfile found.
[1/4] Resolving packages...
warning node-sass > request > hawk > [email protected]: This version is no longer maintained. Please upgrade to the latest version.
warning node-sass > request > hawk > sntp > [email protected]: This version is no longer maintained. Please upgrade to the latest version.
warning node-sass > request > hawk > [email protected]: This version is no longer maintained. Please upgrade to the latest version.
warning node-sass > request > hawk > [email protected]: This version is no longer maintained. Please upgrade to the latest version.
warning node-sass > request > hawk > cryptiles > [email protected]: This version is no longer maintained. Please upgrade to the latest version.
warning node-sass > request > hawk > boom > [email protected]: This version is no longer maintained. Please upgrade to the latest version.
warning @angular-devkit/build-angular > [email protected]: This module is no longer maintained, try this instead:
npm i nyc
Visit https://istanbul.js.org/integrations for other alternatives.
[2/4] Fetching packages...
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > @agm/[email protected]" has incorrect peer dependency "@angular/common@^5.0.0 || ^6.0.0".
warning " > @agm/[email protected]" has incorrect peer dependency "@angular/core@^5.0.0 || ^6.0.0".
warning " > @ng-bootstrap/[email protected]" has incorrect peer dependency "@angular/common@^6.1.0".
warning " > @ng-bootstrap/[email protected]" has incorrect peer dependency "@angular/core@^6.1.0".
warning " > @ng-bootstrap/[email protected]" has incorrect peer dependency "@angular/forms@^6.1.0".
warning " > @ng-select/[email protected]" has incorrect peer dependency "@angular/common@>=6.0.0 <7.0.0".
warning " > @ng-select/[email protected]" has incorrect peer dependency "@angular/core@>=6.0.0 <7.0.0".
warning " > @ng-select/[email protected]" has incorrect peer dependency "@angular/forms@>=6.0.0 <7.0.0".
warning " > @swimlane/[email protected]" has incorrect peer dependency "@angular/[email protected]".
warning " > @swimlane/[email protected]" has incorrect peer dependency "@angular/[email protected]".
warning " > @swimlane/[email protected]" has incorrect peer dependency "@angular/[email protected]".
warning " > @swimlane/[email protected]" has incorrect peer dependency "@angular/[email protected]".
warning " > @swimlane/[email protected]" has incorrect peer dependency "@angular/[email protected]".
warning " > @swimlane/[email protected]" has incorrect peer dependency "@angular/common@<7.0.0".
warning " > @swimlane/[email protected]" has incorrect peer dependency "@angular/compiler@<7.0.0".
warning " > @swimlane/[email protected]" has incorrect peer dependency "@angular/core@<7.0.0".
warning " > @swimlane/[email protected]" has incorrect peer dependency "@angular/platform-browser@<7.0.0".
warning " > @swimlane/[email protected]" has incorrect peer dependency "@angular/platform-browser-dynamic@<7.0.0".
warning " > @toverux/[email protected]" has incorrect peer dependency "@angular/core@^5.0.0 || ^6.0.0".
warning " > @toverux/[email protected]" has incorrect peer dependency "@angular/common@^5.0.0 || ^6.0.0".
warning " > [email protected]" has incorrect peer dependency "@angular/common@^6.0.0".
warning " > [email protected]" has incorrect peer dependency "@angular/core@^6.0.0".
warning " > [email protected]" has incorrect peer dependency "@angular/forms@^6.0.0".
warning " > [email protected]" has unmet peer dependency "tslib@^1.6.1".
warning " > [email protected]" has unmet peer dependency "[email protected] - 3".
warning " > [email protected]" has unmet peer dependency "popper.js@^1.14.3".
warning " > [email protected]" has incorrect peer dependency "@angular/common@^4.0.0".
warning " > [email protected]" has incorrect peer dependency "@angular/compiler@^4.0.0".
warning " > [email protected]" has incorrect peer dependency "@angular/core@^4.0.0".
warning " > [email protected]" has incorrect peer dependency "@angular/common@^6.0.1".
warning " > [email protected]" has incorrect peer dependency "@angular/core@^6.0.1".
warning " > [email protected]" has incorrect peer dependency "@angular/forms@^6.0.1".
warning " > [email protected]" has incorrect peer dependency "@angular/animations@^6.0.0".
warning " > [email protected]" has incorrect peer dependency "@angular/common@^6.0.0".
warning " > [email protected]" has incorrect peer dependency "@angular/core@^6.0.0".
warning " > [email protected]" has incorrect peer dependency "@angular/forms@^6.0.0".
warning " > [email protected]" has incorrect peer dependency "@angular/cdk@^6.0.0".
warning " > [email protected]" has incorrect peer dependency "@angular/common@^6.0.0".
warning " > [email protected]" has incorrect peer dependency "@angular/core@^6.0.0".
warning " > [email protected]" has incorrect peer dependency "@angular/core@^4.0.0".
warning " > [email protected]" has incorrect peer dependency "rxjs@^5.1.0".
warning " > [email protected]" has incorrect peer dependency "@angular/common@^6.0.0".
warning " > [email protected]" has incorrect peer dependency "@angular/core@^6.0.0".
warning " > [email protected]" has incorrect peer dependency "@angular/router@^6.0.0".
warning " > [email protected]" has incorrect peer dependency "@angular/common@^6.0.0".
warning " > [email protected]" has incorrect peer dependency "@angular/core@^6.0.0".
warning " > [email protected]" has incorrect peer dependency "@ng-bootstrap/ng-bootstrap@^2.0.0".
[4/4] Building fresh packages...
[-/2] ⠠ waiting...
error D:\cathy\appwork-v1_2_2\angular-demo\node_modules\node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: D:\cathy\appwork-v1_2_2\angular-demo\node_modules\node-sass
Output:
Building: C:\Program Files\nodejs\node.exe D:\cathy\appwork-v1_2_2\angular-demo\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ 'C:\\Program Files\\nodejs\\node.exe',
gyp verb cli 'D:\\cathy\\appwork-v1_2_2\\angular-demo\\node_modules\\node-gyp\\bin\\node-gyp.js',
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 [email protected]
gyp info using [email protected] | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2
gyp verb `which` failed at getNotFoundError (D:\cathy\appwork-v1_2_2\angular-demo\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (D:\cathy\appwork-v1_2_2\angular-demo\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (D:\cathy\appwork-v1_2_2\angular-demo\node_modules\which\which.js:80:29)
gyp verb `which` failed at D:\cathy\appwork-v1_2_2\angular-demo\node_modules\which\which.js:89:16
gyp verb `which` failed at D:\cathy\appwork-v1_2_2\angular-demo\node_modules\isexe\index.js:42:5
gyp verb `which` failed at D:\cathy\appwork-v1_2_2\angular-demo\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:149:21)
gyp verb `which` failed python2 { Error: not found: python2
gyp verb `which` failed at getNotFoundError (D:\cathy\appwork-v1_2_2\angular-demo\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (D:\cathy\appwork-v1_2_2\angular-demo\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (D:\cathy\appwork-v1_2_2\angular-demo\node_modules\which\which.js:80:29)
gyp verb `which` failed at D:\cathy\appwork-v1_2_2\angular-demo\node_modules\which\which.js:89:16
gyp verb `which` failed at D:\cathy\appwork-v1_2_2\angular-demo\node_modules\isexe\index.js:42:5
gyp verb `which` failed at D:\cathy\appwork-v1_2_2\angular-demo\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:149:21)
gyp verb `which` failed stack: 'Error: not found: python2\n at getNotFoundError (D:\\cathy\\appwork-v1_2_2\\angular-demo\\node_modules\\which\\which.js:13:12)\n at F (D:\\cathy\\appwork-v1_2_2\\angular-demo\\node_modules\\which\\which.js:68:19)\n at E (D:\\cathy\\appwork-v1_2_2\\angular-demo\\node_modules\\which\\which.js:80:29)\n at D:\\cathy\\appwork-v1_2_2\\angular-demo\\node_modules\\which\\which.js:89:16\n at D:\\cathy\\appwork-v1_2_2\\angular-demo\\node_modules\\isexe\\index.js:42:5\n at D:\\cathy\\appwork-v1_2_2\\angular-demo\\node_modules\\isexe\\windows.js:36:5\n at FSReqWrap.oncomplete (fs.js:149:21)',
gyp verb `which` failed code: 'ENOENT' }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` failed Error: not found: python
gyp verb `which` failed at getNotFoundError (D:\cathy\appwork-v1_2_2\angular-demo\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (D:\cathy\appwork-v1_2_2\angular-demo\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (D:\cathy\appwork-v1_2_2\angular-demo\node_modules\which\which.js:80:29)
gyp verb `which` failed at D:\cathy\appwork-v1_2_2\angular-demo\node_modules\which\which.js:89:16
gyp verb `which` failed at D:\cathy\appwork-v1_2_2\angular-demo\node_modules\isexe\index.js:42:5
gyp verb `which` failed at D:\cathy\appwork-v1_2_2\angular-demo\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:149:21)
gyp verb `which` failed python { Error: not found: python
gyp verb `which` failed at getNotFoundError (D:\cathy\appwork-v1_2_2\angular-demo\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (D:\cathy\appwork-v1_2_2\angular-demo\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (D:\cathy\appwork-v1_2_2\angular-demo\node_modules\which\which.js:80:29)
gyp verb `which` failed at D:\cathy\appwork-v1_2_2\angular-demo\node_modules\which\which.js:89:16
gyp verb `which` failed at D:\cathy\appwork-v1_2_2\angular-demo\node_modules\isexe\index.js:42:5
gyp verb `which` failed at D:\cathy\appwork-v1_2_2\angular-demo\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:149:21)
gyp verb `which` failed stack: 'Error: not found: python\n at getNotFoundError (D:\\cathy\\appwork-v1_2_2\\angular-demo\\node_modules\\which\\which.js:13:12)\n at F (D:\\cathy\\appwork-v1_2_2\\angular-demo\\node_modules\\which\\which.js:68:19)\n at E (D:\\cathy\\appwork-v1_2_2\\angular-demo\\node_modules\\which\\which.js:80:29)\n at D:\\cathy\\appwork-v1_2_2\\angular-demo\\node_modules\\which\\which.js:89:16\n at D:\\cathy\\appwork-v1_2_2\\angular-demo\\node_modules\\isexe\\index.js:42:5\n at D:\\cathy\\appwork-v1_2_2\\angular-demo\\node_modules\\isexe\\windows.js:36:5\n at FSReqWrap.oncomplete (fs.js:149:21)',
gyp verb `which` failed code: 'ENOENT' }
gyp verb could not find "python". checking python launcher
gyp verb could not find "python". guessing location
gyp verb ensuring that file exists: C:\Python27\python.exe
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (D:\cathy\appwork-v1_2_2\angular-demo\node_modules\node-gyp\lib\configure.js:484:19)
gyp ERR! stack at PythonFinder.<anonymous> (D:\cathy\appwork-v1_2_2\angular-demo\node_modules\node-gyp\lib\configure.js:509:16)
gyp ERR! stack at D:\cathy\appwork-v1_2_2\angular-demo\node_modules\graceful-fs\polyfills.js:282:31
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:149:21)
gyp ERR! System Windows_NT 10.0.17763
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "D:\\cathy\\appwork-v1_2_2\\angular-demo\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd D:\cathy\appwork-v1_2_2\angular-demo\node_modules\node-sass
gyp ERR! node -v v10.0.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1

猜你喜欢

转载自www.cnblogs.com/cathy1024/p/10514553.html