node-scrypt icon indicating copy to clipboard operation
node-scrypt copied to clipboard

Issues when installing on Windows 10

Open deepyug opened this issue 9 years ago • 1 comments

Windows PowerShell Copyright (C) 2016 Microsoft Corporation. Tous droits réservés.

PS C:\Users***> npm install -g truffle npm WARN deprecated [email protected]: to-iso-string has been deprecated, use @segment/to-iso-string instead. npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the latest version of pug instead of jade npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

[email protected] preinstall C:\Users***\AppData\Roaming\npm\node_modules.staging\scrypt-cd0fb0f4 node node-scrypt-preinstall.js

C:\Users***\AppData\Roaming\npm\truffle -> C:\Users**_\AppData\Roaming\npm\node_modules\truffle\cli.js C:\Users_\AppData\Roaming\npm\truffle-exec -> C:\Users*\AppData\Roaming\npm\node_modules\truffle\exec.js

[email protected] install C:\Users***\AppData\Roaming\npm\node_modules\truffle\node_modules\scrypt node-gyp rebuild

C:\Users***\AppData\Roaming\npm\node_modules\truffle\node_modules\scrypt>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin....\no odules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild ) 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:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:401:14) gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:356:11 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:123:15) gyp ERR! System Windows_NT 10.0.14393 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd C:\Users**_\AppData\Roaming\npm\node_modules\truffle\node_modules\scrypt gyp ERR! node -v v6.5.0 gyp ERR! node-gyp -v v3.3.1 gyp ERR! not ok C:\Users_**\AppData\Roaming\npm `-- (empty)

npm WARN optional Skipping failed optional dependency /truffle/chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: [email protected] npm ERR! Windows_NT 10.0.14393 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "truffle" npm ERR! node v6.5.0 npm ERR! npm v3.10.3 npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'. 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 scrypt package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs scrypt npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls scrypt npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! C:\Users***\npm-debug.log npm ERR! code 1 PS C:\Users***> npm bug scrypts npm ERR! Windows_NT 10.0.14393 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "bug" "scrypts" npm ERR! node v6.5.0 npm ERR! npm v3.10.3 npm ERR! code E404

npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/scrypts npm ERR! 404 npm ERR! 404 'scrypts' is not in the npm registry. npm ERR! 404 You should bug the author to publish it (or use the name yourself!) npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! Please include the following file with any support request: npm ERR! C:\Users***\npm-debug.log PS C:\Users**_> npm bug scrypt PS C:\Users_**>

deepyug avatar Sep 11 '16 10:09 deepyug

The missing python error stands out:

gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.

Make sure you have python (v2.7 I think) installed

laggingreflex avatar Sep 17 '16 15:09 laggingreflex