Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问需要安装python? #2

Open
xiegqooo opened this issue Oct 14, 2015 · 1 comment
Open

请问需要安装python? #2

xiegqooo opened this issue Oct 14, 2015 · 1 comment

Comments

@xiegqooo
Copy link

E:\t>npm install fis-parser-node-sass -g
npm WARN engine [email protected]: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.33","npm":"1.4.28"
})
npm WARN engine [email protected]: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.33","npm":"1.4
.28"})
npm WARN engine [email protected]: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.33","npm":"1.4.28"}

)

[email protected] install C:\Users\xiegqooo_f0s0r9\AppData\Roaming\npm\node_modules\fis-parser-no
de-sass\node_modules\node-sass\node_modules\cross-spawn\node_modules\spawn-sync\node_modules\try-thr
ead-sleep\node_modules\thread-sleep
node-pre-gyp install --fallback-to-build

[thread-sleep] Success: "C:\Users\xiegqooo_f0s0r9\AppData\Roaming\npm\node_modules\fis-parser-node-s
ass\node_modules\node-sass\node_modules\cross-spawn\node_modules\spawn-sync\node_modules\try-thread-
sleep\node_modules\thread-sleep\lib\binding\Release\node-v11-win32-x64\thread_sleep.node" is install
ed via remote

[email protected] postinstall C:\Users\xiegqooo_f0s0r9\AppData\Roaming\npm\node_modules\fis-parser
-node-sass\node_modules\node-sass\node_modules\cross-spawn\node_modules\spawn-sync
node postinstall

[email protected] install C:\Users\xiegqooo_f0s0r9\AppData\Roaming\npm\node_modules\fis-parser-node-
sass\node_modules\node-sass
node scripts/install.js

Cannot download "https://github.com/sass/node-sass/releases/download/v3.3.3/win32-x64-11_binding.nod
e": connect ETIMEDOUT

[email protected] postinstall C:\Users\xiegqooo_f0s0r9\AppData\Roaming\npm\node_modules\fis-parser-n
ode-sass\node_modules\node-sass
node scripts/build.js

Building: C:\Program Files (x86)\nodejs\node.exe C:\Users\xiegqooo_f0s0r9\AppData\Roaming\npm\node_m
odules\fis-parser-node-sass\node_modules\node-sass\node_modules\node-gyp\bin\node-gyp.js rebuild --v
erbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ 'C:\Program Files (x86)\nodejs\node.exe',
gyp verb cli 'C:\Users\xiegqooo_f0s0r9\AppData\Roaming\npm\node_modules\fis-parser-node-sas
s\node_modules\node-sass\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 F (C:\Users\xiegqooo_f0s0r9\AppData\Roaming\npm\node_modules\fis-pars
er-node-sass\node_modules\node-sass\node_modules\node-gyp\node_modules\which\which.js:78:19)
gyp verb which failed at E (C:\Users\xiegqooo_f0s0r9\AppData\Roaming\npm\node_modules\fis-pars
er-node-sass\node_modules\node-sass\node_modules\node-gyp\node_modules\which\which.js:82:29)
gyp verb which failed at C:\Users\xiegqooo_f0s0r9\AppData\Roaming\npm\node_modules\fis-parser-
node-sass\node_modules\node-sass\node_modules\node-gyp\node_modules\which\which.js:93:16
gyp verb which failed at Object.oncomplete (fs.js:107:15)
gyp verb which failed python2 [Error: not found: python2]
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 F (C:\Users\xiegqooo_f0s0r9\AppData\Roaming\npm\node_modules\fis-pars
er-node-sass\node_modules\node-sass\node_modules\node-gyp\node_modules\which\which.js:78:19)
gyp verb which failed at E (C:\Users\xiegqooo_f0s0r9\AppData\Roaming\npm\node_modules\fis-pars
er-node-sass\node_modules\node-sass\node_modules\node-gyp\node_modules\which\which.js:82:29)
gyp verb which failed at C:\Users\xiegqooo_f0s0r9\AppData\Roaming\npm\node_modules\fis-parser-
node-sass\node_modules\node-sass\node_modules\node-gyp\node_modules\which\which.js:93:16
gyp verb which failed at Object.oncomplete (fs.js:107:15)
gyp verb which failed python [Error: not found: python]
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\xiegqooo_f0s0r9\AppData\Roaming\npm\node_modules\fis-pa
rser-node-sass\node_modules\node-sass\node_modules\node-gyp\lib\configure.js:116:14)
gyp ERR! stack at C:\Users\xiegqooo_f0s0r9\AppData\Roaming\npm\node_modules\fis-parser-node-sass
\node_modules\node-sass\node_modules\node-gyp\lib\configure.js:71:11
gyp ERR! stack at Object.oncomplete (fs.js:107:15)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "C:\Program Files (x86)\nodejs\node.exe" "C:\Users\xiegqooo_f0s0r9\AppData\R
oaming\npm\node_modules\fis-parser-node-sass\node_modules\node-sass\node_modules\node-gyp\bi
n\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--l
ibsass_library="
gyp ERR! cwd C:\Users\xiegqooo_f0s0r9\AppData\Roaming\npm\node_modules\fis-parser-node-sass\node_mod
ules\node-sass
gyp ERR! node -v v0.10.33
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
Build failed

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.
npm ERR! 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 their info via:
npm ERR! npm owner ls node-sass
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\Program Files (x86)\nodejs\node.exe" "C:\Program Files (x86)\nodejs\nod
e_modules\npm\bin\npm-cli.js" "install" "fis-parser-node-sass" "-g"
npm ERR! cwd E:\t
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0

@zhangtao07
Copy link
Member

默认安装容易被墙,建议用 cnpm 安装

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants