我无法通过 Visual Studio for Mac 安装教程的远程构建部分



我正在尝试使用Mac和Cordova -ionic的Visual Studio设置开发环境。因此,此时:https://learn.microsoft.com/en-us/visalstudio/cross-platform/tools-for-cordova/first-steps/ios-guide?view=toolsforcordova-2017教程我应该运行

remotebuild

我会收到以下错误:

| => remotebuild
Warning: No server modules selected. Defaulting to configuration "modules": {"taco-remote": { "mountPath": "cordova"} }
Error: Unable to load module taco-remote. Try running 'npm install taco-remote' or specifying the full path to the package
****** Failed to start server: ReferenceError: primordials is not defined
ReferenceError: primordials is not defined
    at fs.js:27:35
    at req_ (/usr/local/lib/node_modules/remotebuild/node_modules/natives/index.js:143:24)
    at Object.req [as require] (/usr/local/lib/node_modules/remotebuild/node_modules/natives/index.js:55:10)
    at Object.<anonymous> (/usr/local/lib/node_modules/remotebuild/node_modules/graceful-fs/fs.js:1:37)
    at Module._compile (internal/modules/cjs/loader.js:759:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)
    at Module.load (internal/modules/cjs/loader.js:628:32)
    at Function.Module._load (internal/modules/cjs/loader.js:555:12)
    at Module.require (internal/modules/cjs/loader.js:666:19)
    at require (internal/modules/cjs/helpers.js:16:16)
/usr/local/lib/node_modules/remotebuild/node_modules/applicationinsights/AutoCollection/Exceptions.js:25
                    throw error;
                    ^
ReferenceError: primordials is not defined
    at fs.js:27:35
    at req_ (/usr/local/lib/node_modules/remotebuild/node_modules/natives/index.js:143:24)
    at Object.req [as require] (/usr/local/lib/node_modules/remotebuild/node_modules/natives/index.js:55:10)
    at Object.<anonymous> (/usr/local/lib/node_modules/remotebuild/node_modules/graceful-fs/fs.js:1:37)
    at Module._compile (internal/modules/cjs/loader.js:759:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)
    at Module.load (internal/modules/cjs/loader.js:628:32)
    at Function.Module._load (internal/modules/cjs/loader.js:555:12)
    at Module.require (internal/modules/cjs/loader.js:666:19)
    at require (internal/modules/cjs/helpers.js:16:16)

我被困...有帮助吗?

这是您可以尝试

的命令
$ npm install -g n
$ sudo n 11.15.0

希望它能帮助您

最新更新