Questions tagged [nodejs]

Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices

21 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
2answers
542 views

REST API: How to get error details of Field Validation errors, SPListDataValidationException

I am using pnpjs to add items to a list like so: this.spClient.web.lists.getByTitle(this.spList).items.add(requestList); If requestList has items that do not pass column validation of the Sharepoint ...
2
votes
0answers
1k views

How to connect to SharePoint ( with Node.js) using OAuth with user context?

I created a Node.js App that connects to SharePoint(OnPremise and O365) and does all sorts of things. The app uses sp-request and node-sp-auth APIs for Basic Authentication (username, password), and ...
1
vote
1answer
40 views

SPFx node version keeps updating

I've built several SPFx web parts but now I'm getting errors because I'm "somehow" on node v12 which I don't believe works with SPFX. I certainly didn't update it so how has it switched to ...
1
vote
1answer
151 views

How to set thumbnail image and page description for sharepoint modern pages using pnpjs?

I'm trying to set thumbnail image and page description programmatically using pnpjs. By default it is picking banner image as thumbnail image and first paragraph in page as page description. How can i ...
1
vote
0answers
88 views

Web Config for node js REST API inorder to host in windows server IIS

I'm first time creating REST API in node js. Can someone guide me what webconfig file should contain. I need to deploy this on windows server & I need to call this restapi from front end.
1
vote
2answers
395 views

Error after installing the SPFx environment for the first time

Got a following error after installing the SPFx environment for the first time any help would be helpful. Thanks in Advance.
1
vote
1answer
625 views

Steps to setup SP2016 onprem with React using SPFX

I am trying to setup SP2016 onprem with React, using Yoeman generator @microsoft/sharepoint. I am getting errors when I run gulp serve. Need Help on setting up this project using SPFX. I have ...
1
vote
0answers
486 views

Gulp Serve Error: Error: EISDIR: illegal operation on a directory, symlink

I am following the instructions in this guide. https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/build-a-hello-world-web-part The only difference is that I installed yo ...
1
vote
0answers
136 views

Node JS - Upload base 64 image to a picture library

I have been trying for a while to get this working; I have base64 in this format: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA... and i am trying to use REST to add it to the library, I am fully ...
0
votes
0answers
81 views

Primordials is not defined while running gulp serve

I know this is a common error but I'm stuck with all my SPFX solutions having this issue. Also, I cannot degrade my solution's node version or upgrade gulp version to 4 so found the common 3rd ...
0
votes
0answers
173 views

NodeRed POST request to Sharepoint REST API

I want to upload files on Sharepoint and I'm using Node Red for communicate with REST Sharepoint API. As far as I know, first of all I need to request a diggest token for the POST communication: so, ...
0
votes
1answer
95 views

Unable to run “yo @microsoft/sharepoint”

I am trying to run my first SPFX as mentioned on this link @ https://docs.microsoft.com/en-us/sharepoint/dev/spfx/extensions/get-started/build-a-hello-world-extension .. but when i run yo @microsoft/...
0
votes
0answers
43 views

CI Fails with : SyntaxError: Use of const in strict mode

I follow the steps here to create a build definition: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/toolchain/implement-ci-cd-with-azure-devops locally I have Node 10.23.3 and npm 6.14.11 ...
0
votes
0answers
7 views

How can I create a nodejs provider hosted SharePoint add in

AS-IS: I'm programming NodeJS apps that connect to sharepoint using ADFS - no problem, works like a charm TO-BE: Register the NodeJS app as an add-in. I'm having trouble finding a way of doing this. ...
0
votes
2answers
83 views

how to get a pre-authenticated URL to a Sharepoint document?

I'm using the Sharepoint REST API server-side to browse through documents, that works. For authentication (having login credentials known server-side) I use node-sp-auth which provides me a FedAuth ...
0
votes
1answer
59 views

How to fetch data from _vti_bin/listdata.svc using node js

I'm having some trouble figuring out how to get data from the _vti_bin/listdata.svc on my sharepoint online site. Essentially I am trying to fetch the data in this listdata.svc file to then insert it ...
0
votes
1answer
82 views

I find some problem during during the configuration of my development environment sharepoint online

here is the command I executed: yo @microsoft/sharepoint At the end of the execution of this command I reach the expected result despite having encountered these errors or I wonder if these errors ...
0
votes
1answer
216 views

Installing Yeoman generator fails with Node 10.18.1

This evening I thought I would update my SPFx Dev Toolchain: install latest Node 10.xx LTS (using NVM as recommended by AC or David Warner MVPs) Better Node.js Install Management with Node Version ...
0
votes
1answer
174 views

SharePoint Framework v1.1.0 requirement

I want to build my first spfx page on our SP2016 on-premise environment. Could you advice what is the requirement? I mentioned v1.1.0 because later version are not supported by SP2016 according to ...
0
votes
1answer
1k views

All of sudden gulp command not recognizing

I made windows update on this Sunday. From that point, I am not able to execute gulp commands. I am not sure if there is any relation between windows update and gulp command. I am getting below error. ...
0
votes
1answer
525 views

How to get logged-in User Token on Sharepoint using Node JS/C#

I have a requirement that i want to retrieve SharePoint logged-in user Token or computer login credentials token so that i will be ensure that user is logged-in then i will not allow user to enter ...