【问题标题】:Installing NativeScript CLi安装 NativeScript CLi
【发布时间】:2016-10-27 07:42:22
【问题描述】:

我正在尝试开始使用 NativeScript,但在安装它时遇到了各种问题。我已经尝试了网络上的各种解决方法,但我不断遇到更多问题,所以我想我会在这里发布。

我在笔记本电脑上运行 Windows 10。我目前得到的错误是:

..\src\fibers.cc(727): warning C4244: 'argument' : conversion from 'size_t' to 'double', possible loss of data [C:\Users\Aazir\AppData\Roaming\npm\node_modules\nativescript\node_modu
les\fibers\build\fibers.vcxproj]
..\src\fibers.cc(731): warning C4244: '=' : conversion from 'double' to 'size_t', possible loss of data [C:\Users\Aazir\AppData\Roaming\npm\node_modules\nativescript\node_modules\fib
ers\build\fibers.vcxproj]
..\src\fibers.cc(738): warning C4244: 'argument' : conversion from 'size_t' to 'double', possible loss of data [C:\Users\Aazir\AppData\Roaming\npm\node_modules\nativescript\node_modu
les\fibers\build\fibers.vcxproj]
..\src\coroutine.cc(110): warning C4552: '!' : operator has no effect; expected operator with side-effect [C:\Users\Aazir\AppData\Roaming\npm\node_modules\nativescript\node_modules\f
ibers\build\fibers.vcxproj]
..\src\coroutine.cc(186): warning C4267: 'argument' : conversion from 'size_t' to 'unsigned int', possible loss of data [C:\Users\Aazir\AppData\Roaming\npm\node_modules\nativescript\
node_modules\fibers\build\fibers.vcxproj]
  coro.c
  win_delay_load_hook.c
LINK : fatal error LNK1104: cannot open file 'libcpmt.lib' [C:\Users\Aazir\AppData\Roaming\npm\node_modules\nativescript\node_modules\fibers\build\fibers.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:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:276:23)
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:204:12)
gyp ERR! System Windows_NT 10.0.10586
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" "--release"
gyp ERR! cwd C:\Users\Aazir\AppData\Roaming\npm\node_modules\nativescript\node_modules\fibers
gyp ERR! node -v v6.2.1
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
Build failed
'nodejs' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\Aazir\AppData\Roaming\npm
`-- (empty)

npm ERR! Windows_NT 10.0.10586

【问题讨论】:

    标签: angularjs nativescript


    【解决方案1】:

    我修好了,问题是我安装了最新版本的 Node 6.2.2,NativeScript 还不支持,我只是卸载它并安装了以前的版本,它工作正常

    【讨论】:

      【解决方案2】:

      它说; nodejs' 不被识别为内部或外部命令

      也许你想重新安装你的 nodejs;

      见:https://stackoverflow.com/a/27344046/816658

      【讨论】:

      • 您好,感谢您的回答。我实际上已经完成了该链接中的事情并正确设置了路径
      猜你喜欢
      • 2018-10-26
      • 1970-01-01
      • 1970-01-01
      • 2017-03-08
      • 2019-09-04
      • 1970-01-01
      • 1970-01-01
      • 2020-04-20
      相关资源
      最近更新 更多