Hi,
I try to install npm and get the below. i use windows 10 64(powershell)
Any idea? thanks
…\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” rebuild )
Traceback (most recent call last):
File “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\gyp_main.py”, line 50, in
sys.exit(gyp.script_main())
File “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp_init_.py”, line 554, in script_main
return main(sys.argv[1:])
File “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp_init_.py”, line 547, in main
return gyp_main(args)
File “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp_init_.py”, line 532, in gyp_main
generator.GenerateOutput(flat_list, targets, data, params)
File “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py”, line 2029, in GenerateOutput
root_entries = _GatherSolutionFolders(
File “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py”, line 1787, in _GatherSolutionFolders
return _DictsToFolders(’’, root, flat)
File “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py”, line 1740, in _DictsToFolders
for folder, contents in bucket.items():
AttributeError: ‘MSVSProject’ object has no attribute ‘items’
gyp ERR! configure error
gyp ERR! stack Error: gyp
failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:351:16)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Windows_NT 10.0.19041
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\aaaa\Documents\jib\redash\viz-lib\node_modules\fsevents
gyp ERR! node -v v14.15.4
gyp ERR! node-gyp -v v5.1.0