Path too long error when installing package

I’m getting the following error when I try to install the “javascript-regex” package that I created recently. I didn’t have a problem installing it on my other computer, so I don’t think it’s a problem with the package, but correct me if I’m wrong. The error says that node-gyp can’t write to a file because the path is too long. As far as I can tell, the path is only 245 characters.

Installing “javascript-regex@1.0.0” failed.Hide output…

tree-sitter-regex-js@0.0.0 install C:\Users\HARRIS~1\AppData\Local\Temp\apm-install-dir-1191025-18748-dsdvo9.jgj8s\node_modules\javascript-regex\node_modules\tree-sitter-regex-js
node-gyp rebuild

C:\Users\HARRIS~1\AppData\Local\Temp\apm-install-dir-1191025-18748-dsdvo9.jgj8s\node_modules\javascript-regex\node_modules\tree-sitter-regex-js>if not defined npm_config_node_gyp (node “C:\Users\harrisona\AppData\Local\atom\app-1.41.0\resources\app\apm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\…\node_modules\node-gyp\bin\node-gyp.js” rebuild ) else (node “C:\Users\harrisona\AppData\Local\atom\app-1.41.0\resources\app\apm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the “/m” switch.
parser.c
scanner.c
binding.cc
win_delay_load_hook.cc
Creating library C:\Users\harrisona\AppData\Local\Temp\apm-install-dir-1191025-18748-dsdvo9.jgj8s\node_modules\javascript-regex\node_modules\tree-sitter-regex-js\build\Release\tree_sitter_regex_binding.lib and object C:\Users\harrisona\AppData\Local\Temp\apm-install-dir-1191025-18748-dsdvo9.jgj8s\node_modules\javascript-regex\node_modules\tree-sitter-regex-js\build\Release\tree_sitter_regex_binding.exp
tree_sitter_regex_binding.vcxproj -> C:\Users\harrisona\AppData\Local\Temp\apm-install-dir-1191025-18748-dsdvo9.jgj8s\node_modules\javascript-regex\node_modules\tree-sitter-regex-js\build\Release\tree_sitter_regex_binding.node
tree_sitter_regex_binding.vcxproj -> C:\Users\harrisona\AppData\Local\Temp\apm-install-dir-1191025-18748-dsdvo9.jgj8s\node_modules\javascript-regex\node_modules\tree-sitter-regex-js\build\Release\tree_sitter_regex_binding.pdb (Full PDB)

tree-sitter-regex-unicode-js@0.0.0 install C:\Users\HARRIS~1\AppData\Local\Temp\apm-install-dir-1191025-18748-dsdvo9.jgj8s\node_modules\javascript-regex\node_modules\tree-sitter-regex-unicode-js
node-gyp rebuild

C:\Users\HARRIS~1\AppData\Local\Temp\apm-install-dir-1191025-18748-dsdvo9.jgj8s\node_modules\javascript-regex\node_modules\tree-sitter-regex-unicode-js>if not defined npm_config_node_gyp (node “C:\Users\harrisona\AppData\Local\atom\app-1.41.0\resources\app\apm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\…\node_modules\node-gyp\bin\node-gyp.js” rebuild ) else (node “C:\Users\harrisona\AppData\Local\atom\app-1.41.0\resources\app\apm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the “/m” switch.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(312,5): error MSB3491: Could not write lines to file “Release\obj\tree_sitter_regex_binding\tree_sit.FFE5D771.tlog\tree_sitter_regex_binding.lastbuildstate”. The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. [C:\Users\harrisona\AppData\Local\Temp\apm-install-dir-1191025-18748-dsdvo9.jgj8s\node_modules\javascript-regex\node_modules\tree-sitter-regex-unicode-js\build\tree_sitter_regex_binding.vcxproj]

gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\harrisona\AppData\Local\atom\app-1.41.0\resources\app\apm\node_modules\npm\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command “C:\Users\harrisona\AppData\Local\atom\app-1.41.0\resources\app\apm\bin\node.exe” “C:\Users\harrisona\AppData\Local\atom\app-1.41.0\resources\app\apm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” “rebuild”
gyp ERR! cwd C:\Users\HARRIS~1\AppData\Local\Temp\apm-install-dir-1191025-18748-dsdvo9.jgj8s\node_modules\javascript-regex\node_modules\tree-sitter-regex-unicode-js
gyp ERR! node -v v10.2.1
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open ‘C:\Users\HARRIS~1\AppData\Local\Temp\apm-install-dir-1191025-18748-dsdvo9.jgj8s\package.json’
npm WARN apm-install-dir-1191025-18748-dsdvo9.jgj8s No description
npm WARN apm-install-dir-1191025-18748-dsdvo9.jgj8s No repository field.
npm WARN apm-install-dir-1191025-18748-dsdvo9.jgj8s No README data
npm WARN apm-install-dir-1191025-18748-dsdvo9.jgj8s No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! tree-sitter-regex-unicode-js@0.0.0 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the tree-sitter-regex-unicode-js@0.0.0 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\harrisona.atom.apm_logs\2019-11-25T14_56_40_751Z-debug.log