tree-sitter-typescript icon indicating copy to clipboard operation
tree-sitter-typescript copied to clipboard

cannot succussfully npm install

Open SmartMapple opened this issue 2 years ago • 0 comments

i'm install the tree-sitter-typescript with npm install but i get:

[email protected] install D:\git\git_repository\tree-sitter-typescript node-gyp rebuild D:\git\git_repository\tree-sitter-typescript>if not defined npm_config_node_gyp (node "D:\Nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "D:\Nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild ) 在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。 parser.c scanner.c parser.c scanner.c D:\git\git_repository\tree-sitter-typescript\tsx\src\scanner.c : fatal error C1083: 无法打开编译器生成的文件: “D:\git\git_repositor y\tree-sitter-typescript\build\Release\obj\tree_sitter_typescript_binding\scanner.obj”: Permission denied [D:\git\git_r epository\tree-sitter-typescript\build\tree_sitter_typescript_binding.vcxproj] cl : 命令行 error D8040: 创建子进程或与子进程通讯时出错 [D:\git\git_repository\tree-sitter-typescript\build\tree_sitter_typescript_bindin g.vcxproj] gyp ERR! build error gyp ERR! stack Error: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (D:\Nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:191:23) gyp ERR! stack at ChildProcess.emit (events.js:198:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12) gyp ERR! System Windows_NT 10.0.19044 gyp ERR! command "D:\Nodejs\node.exe" "D:\Nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd D:\git\git_repository\tree-sitter-typescript gyp ERR! node -v v10.18.1 gyp ERR! node-gyp -v v5.0.5 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\xx\AppData\Roaming\npm-cache_logs\2022-09-20T14_08_01_776Z-debug.log`

i cannot fix it, appreciate for your help

SmartMapple avatar Sep 20 '22 14:09 SmartMapple