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

After downloading older version of Python, Node.js, and npm, the Errors still exist. How to solve it? #626

Open
Marwan7035 opened this issue Feb 1, 2022 · 0 comments

Comments

@Marwan7035
Copy link

npm install ffi

ref@1.3.5 install C:\Users\marwan.alamoudi\node_modules\ref
node-gyp rebuild

C:\Users\marwan.alamoudi\node_modules\ref>if not defined npm_config_node_gyp (node "C:\Users\marwan.alamoudi\Documents\nodejsV6\node-v6.17.1-win-x64\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild )
Traceback (most recent call last):
File "C:\Users\marwan.alamoudi\Documents\nodejsV6\node-v6.17.1-win-x64\node_modules\npm\node_modules\node-gyp\gyp\gyp_main.py", line 16, in
sys.exit(gyp.script_main())
File "C:\Users\marwan.alamoudi\Documents\nodejsV6\node-v6.17.1-win-x64\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp_init_.py", line 545, in script_main
return main(sys.argv[1:])
File "C:\Users\marwan.alamoudi\Documents\nodejsV6\node-v6.17.1-win-x64\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp_init_.py", line 538, in main
return gyp_main(args)
File "C:\Users\marwan.alamoudi\Documents\nodejsV6\node-v6.17.1-win-x64\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp_init_.py", line 514, in gyp_main
options.duplicate_basename_check)
File "C:\Users\marwan.alamoudi\Documents\nodejsV6\node-v6.17.1-win-x64\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp_init_.py", line 98, in Load
generator.CalculateVariables(default_variables, params)
File "C:\Users\marwan.alamoudi\Documents\nodejsV6\node-v6.17.1-win-x64\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py", line 1900, in CalculateVariables
generator_flags.get('msvs_version', 'auto'))
File "C:\Users\marwan.alamoudi\Documents\nodejsV6\node-v6.17.1-win-x64\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\MSVSVersion.py", line 434, in SelectVisualStudioVersion
versions = _DetectVisualStudioVersions(version_map[version], 'e' in version)
KeyError: '2017'
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Users\marwan.alamoudi\Documents\nodejsV6\node-v6.17.1-win-x64\node_modules\npm\node_modules\node-gyp\lib\configure.js:305:16)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:219:12)
gyp ERR! System Windows_NT 10.0.19043
gyp ERR! command "C:\Users\marwan.alamoudi\Documents\nodejsV6\node-v6.17.1-win-x64\node.exe" "C:\Users\marwan.alamoudi\Documents\nodejsV6\node-v6.17.1-win-x64\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\marwan.alamoudi\node_modules\ref
gyp ERR! node -v v6.17.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\marwan.alamoudi\package.json'
npm WARN marwan.alamoudi No description
npm WARN marwan.alamoudi No repository field.
npm WARN marwan.alamoudi No README data
npm WARN marwan.alamoudi No license field.
npm ERR! Windows_NT 10.0.19043
npm ERR! argv "C:\Users\marwan.alamoudi\Documents\nodejsV6\node-v6.17.1-win-x64\node.exe" "C:\Users\marwan.alamoudi\Documents\nodejsV6\node-v6.17.1-win-x64\node_modules\npm\bin\npm-cli.js" "install" "ffi"
npm ERR! node v6.17.1
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! ref@1.3.5 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ref@1.3.5 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 ref 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 ref
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls ref
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\marwan.alamoudi\npm-debug.log

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

1 participant