我正在尝试创建一个共享点工作台,但是遵循了从Microsoft文档和视频到指导的所有指示。我也用过 npm config set proxy http://proxyaddress.com:8080 npm config设置https-proxy http://proxyaddress.com:8080 以防万一网络陷入困境。 有人偶然知道我应该朝这个错误的方向走吗?
[完全错误]
错误:EPERM:不允许操作,符号链接'H:\ helloworld-webpart \ node_modules @ microsoft \ sp-webpart-workbench'->'H:\ helloworld-webpart \ temp \ workbench-packages @ microsoft_sp-webpart-工作台' 在Object.symlinkSync(fs.js:909:3)
at WorkbenchPage._getUrlForWorkbenchPackagePath (H:\helloworld-webpart\node_modules\@microsoft\sp-webpart-workbench\lib\api\WorkbenchPage.js:206:17)
at WorkbenchPage._generateWorkbenchPageContent (H:\helloworld-webpart\node_modules\@microsoft\sp-webpart-workbench\lib\api\WorkbenchPage.js:72:39)
at WorkbenchPage.handleWorkbenchRequest (H:\helloworld-webpart\node_modules\@microsoft\sp-webpart-workbench\lib\api\WorkbenchPage.js:26:51)
at Layer.handle [as handle_request] (H:\helloworld-webpart\node_modules\express\lib\router\layer.js:95:5)
at next (H:\helloworld-webpart\node_modules\express\lib\router\route.js:137:13)
at Route.dispatch (H:\helloworld-webpart\node_modules\express\lib\router\route.js:112:3)
at Layer.handle [as handle_request] (H:\helloworld-webpart\node_modules\express\lib\router\layer.js:95:5)
at H:\helloworld-webpart\node_modules\express\lib\router\index.js:281:22
at Function.process_params (H:\helloworld-webpart\node_modules\express\lib\router\index.js:335:12)
at next (H:\helloworld-webpart\node_modules\express\lib\router\index.js:275:10)
at _setJSONResponseContentTypeMiddleware (H:\helloworld-webpart\node_modules\@microsoft\gulp-core-build-serve\lib\ServeTask.js:119:9)
at Layer.handle [as handle_request] (H:\helloworld-webpart\node_modules\express\lib\router\layer.js:95:5)
at trim_prefix (H:\helloworld-webpart\node_modules\express\lib\router\index.js:317:13)
at H:\helloworld-webpart\node_modules\express\lib\router\index.js:284:7
at Function.process_params (H:\helloworld-webpart\node_modules\express\lib\router\index.js:335:12)
引用:https://docs.microsoft.com/en-us/sharepoint/dev/spfx/set-up-your-development-environment
答案 0 :(得分:0)
潜在的问题是我安装到错误的目录。我安装在共享驱动器而不是本地驱动器上。