unable to install ionic in windows
关于已经在堆栈溢出链接中发布的问题,我只是遵循了ionic的基本安装过程,但是突然之间出现了这个奇怪的错误。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | 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 failNoPython (C:\\Users\\kevin\\AppData\ oaming\ pm\ ode_modules\\ionic\ ode_modules\\ionic-app-lib\ ode_modules\ ode-sass\ ode_modules\ ode-gyp\\lib\\configure.js:401:14) gyp ERR! stack at C:\\Users\\kevin\\AppData\ oaming\ pm\ ode_modules\\ionic\ ode_modules\\ionic-app-lib\ ode_modules\ ode-sass\ ode_modules\ ode-gyp\\lib\\configure.js:356:11 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:111:15) gyp ERR! System Windows_NT 10.0.14393 gyp ERR! command"C:\\\\Program Files\\\ odejs\\\ ode.exe""C:\\\\Users\\\\kevin\\\\AppData\\\ oaming\\\ pm\\\ ode_modules\\\\ionic\\\ ode_modules\\\\ionic-app-lib\\\ ode_modules\\\ ode-sass\\\ ode_modules\\\ ode-gyp\\\\bin\\\ ode-gyp.js""rebuild""--verbose""--libsass_ext=""--libsass_cflags=""--libsass_ldflags=""--libsass_library=" gyp ERR! cwd C:\\Users\\kevin\\AppData\ oaming\ pm\ ode_modules\\ionic\ ode_modules\\ionic-app-lib\ ode_modules\ ode-sass gyp ERR! node -v v7.2.1 gyp ERR! node-gyp -v v3.3.1 gyp ERR! not ok Build failed npm WARN Error: EPERM: operation not permitted, lstat 'C:\\Users\\kevin\\AppData\ oaming\ pm\ ode_modules\\ionic\ ode_modules\\ionic-app-lib\ ode_modules\ ode-sass\ ode_modules\\meow\ ode_modules\ edent\ ode_modules\\indent-string\ ode_modules' npm WARN { Error: EPERM: operation not permitted, lstat 'C:\\Users\\kevin\\AppData\ oaming\ pm\ ode_modules\\ionic\ ode_modules\\ionic-app-lib\ ode_modules\ ode-sass\ ode_modules\\meow\ ode_modules\ edent\ ode_modules\\indent-string\ ode_modules'npm WARN errno: -4048, npm WARN code: 'EPERM', npm WARN syscall: 'lstat', npm WARN path: 'C:\\\\Users\\\\kevin\\\\AppData\\\ oaming\\\ pm\\\ ode_modules\\\\ionic\\\ ode_modules\\\\ionic-app-lib\\\ ode_modules\\\ ode-sass\\\ ode_modules\\\\meow\\\ ode_modules\\\ edent\\\ ode_modules\\\\indent-string\\\ ode_modules' } npm ERR! Windows_NT 10.0.14393 npm ERR! argv"C:\\\\Program Files\\\ odejs\\\ ode.exe""C:\\\\Users\\\\kevin\\\\AppData\\\ oaming\\\ pm\\\ ode_modules\\\ pm\\\\bin\\\ pm-cli.js""install""-g""[email protected]" npm ERR! node v7.2.1 npm ERR! npm v4.0.3 npm ERR! code ELIFECYCLE npm ERR! [email protected] postinstall: `node scripts/build.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] postinstall script 'node scripts/build.js'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the node-sass package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node scripts/build.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs node-sass npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls node-sass npm ERR! There is likely additional logging output above. |
离子安装过程中捕获的错误的屏幕截图
我尝试按照以下步骤进行安装
- 已安装node.js最新7.2.1 v-已成功安装
- npm install -g cordova-成功安装
- npm install -g [email protected]失败。
附加捕获的日志以供参考。 npm-debug.log
似乎您没有安装
如果python存在,请通过