Установите Аутентификацию Гипсокартона

339
Zach Konon
C:\Users\zach\drywall>npm install  > bcrypt@0.8.5 install C:\Users\zach\drywall\node_modules\bcrypt > node-gyp rebuild  C:\Users\zach\drywall\node_modules\bcrypt>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node 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(366,5): warning MSB8003: Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. [C:\Users\zach\drywall\node_modules\bcrypt\build\bcrypt_lib.vcxproj] TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. [C:\Users\zach\drywall\node_modules\bcrypt\build\bcrypt_lib.vcxproj]   gyp ERR! build error gyp ERR! stack Error: `msbuild` failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:270:23) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) gyp ERR! System Windows_NT 10.0.10240 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\zach\drywall\node_modules\bcrypt gyp ERR! node -v v4.1.1 gyp ERR! node-gyp -v v3.0.3 gyp ERR! not ok npm ERR! Windows_NT 10.0.10240 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" npm ERR! node v4.1.1 npm ERR! npm v2.14.4 npm ERR! code ELIFECYCLE  npm ERR! bcrypt@0.8.5 install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the bcrypt@0.8.5 install script 'node-gyp rebuild'. npm ERR! This is most likely a problem with the bcrypt 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 their info via: npm ERR! npm owner ls bcrypt npm ERR! There is likely additional logging output above.  npm ERR! Please include the following file with any support request: npm ERR! C:\Users\zach\drywall\npm-debug.log 

Я пытаюсь установить Drywall, и я получаю сообщение об ошибке, требующее Visual Studio 2005, поэтому я переустановил его, но он все еще не работал. Итак, я оглянулся, и многие решили проблему с помощью командной строки Visual Studio, поэтому я попробовал это, и теперь я получаю эту ошибку. Я понятия не имею, что это значит. Мне было интересно, если бы кто-нибудь знал, что это значит, или как это решить. И что такое CL.exe?

Спасибо.

0

1 ответ на вопрос

0
TimA

Some details on cl.exe from MSDN:

cl.exe is a tool that controls the Microsoft C and C++ compilers and linker. cl.exe can be run only on operating systems that support Microsoft Visual Studio.

Likely it cannot find cl.exe because it doesn't know which SDK directory to find it in. This is related to the previous error you receive.

Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number.

The WindowsSDKDir variable defines where to find different compilation tools (including cl.exe). Either you don't have the SDK installed or your environment isn't configured properly.

Try to run the setenv first before your rebuild. (Related Link)

call "C:\Program Files\Microsoft SDKs\Windows\v7.1\bin\Setenv.cmd" /Release /x86 

OR

call "C:\Program Files\Microsoft SDKs\Windows\v7.1\bin\Setenv.cmd" /Release /x64 

If you're still running into problems provide some more information in your question about which SDK version you have installed.

Извините за поздний ответ, я скачал Visual Studio 2013 и также скачал Microsoft Visual Studio 2013 SDK отсюда: https://www.microsoft.com/en-us/download/details.aspx?id=40758. Я все еще получаю ошибку. Я запускал обе команды, но они ничего не нашли. Есть ли способ, которым я могу вручную сказать моему компьютеру, где находится Cl.exe? Zach Konon 8 лет назад 0
Вы пробовали запустить setenv.cmd? Это должно настроить необходимые пути. TimA 8 лет назад 0
Я не уверен, что я делаю это правильно, но то, что я сделал, я запустил свою командную строку, я попробовал это с помощью узла, git, Visual Studio CMD и по умолчанию, который пришел на мой компьютер, затем я запустил вызов команды "C: \ Program Files \ Microsoft SDKs \ Windows \ v7.1 \ bin \ Setenv.cmd" / Release / x64 и после этого он скажет мне: "Системе не удалось найти указанный путь". Я искал каталог, и мой Microsoft SDK не находится в программных файлах, он также находится в программных файлах (x86), у меня нет v7.1, у меня есть много других, таких как 7.0A и 7.1A. Наконец, я искал setenv.exe на моем компьютере, и он не нашел его. Zach Konon 8 лет назад 0