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

Filter by
Sorted by
Tagged with
0 votes
0 answers
14 views

Download File Using URL using NodeJS

So I implemented google drive url download feature recently and It starts downloading the publicly shared file directly without any authentication. When I tried the same with SharePoint, I got 403 ...
Maaz's user avatar
  • 1
0 votes
0 answers
27 views

Creating a SharePoint signed URL

The below is the SharePoint URL to access the required document: https://companyName.sharepoint.com/_api/web/GetFileByRelativeUrl(%27/companyName%20ABC/contact/fileName.jpg%27)/$value But pasting the ...
Vettel Hamilton's user avatar
0 votes
0 answers
39 views

SPFx gulp trust-dev-cert Error

I am getting following error after running 'gulp trust-dev' in SPFx: PS C:\Users\s.framework\Code\ZEN> gulp trust-dev-cert Build target: DEBUG [15:11:11] Using gulpfile ~\Code\ZEN\gulpfile.js [15:...
Nemanja Sovic's user avatar
0 votes
1 answer
176 views

How to upload Large files using node.js and spsave module

I have implemented multiple file uploads using spsave. But whenever i try to upload larger file(5mb+) files are not getting uploaded. const apiRequest = spsave(coreOptions, creds, fileOptions); ...
Akhil Mekkatt's user avatar
0 votes
1 answer
379 views

Is there any problem if my SPFx requires "node": ">=16.13.0 <17.0.0" while my node.js version is "14.18.1"

I want to deploy this SPFx sample inside my tenant @ https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-chatgpt-app. Now inside the package.json file below is mentioned regarding the ...
John John's user avatar
0 votes
0 answers
989 views

NPM version is not known to run on Node.js v10.15.1

I want to set-up the SPFx environment with the Node.js v10.15.1 and npm v6.4.1 so, I installed Node.js v10.15.1. But when I tried to check the npm version, it is showing the below error. How can I ...
Divya Sharma's user avatar
  • 1,463
0 votes
1 answer
3k views

gulp build is raising this Error - [tslint] Error: Cannot find module '@microsoft/rush-stack-compiler-3.2'

I want to install this web part from hhttps://github.com/AsishP/SPFxWebParts , but when i run this command gulp build i got this error Error - [tslint] Error: Cannot find module '@microsoft/rush-stack-...
John John's user avatar
0 votes
0 answers
16 views

Setting document details when uploading to SharePoint Online

I need to be able to set certain column details when uploading documents to Sharepoint (mandatory fileds to be able to edit the files). async uploadFile(file) { let data = new FormData(); ...
Alex M's user avatar
  • 1
5 votes
2 answers
3k views

Unable to setup SharePoint Framework Dev Environment: TypeError: lookup.flatMap is not a function

I am unable to setup SPFx Development Environment for my SharePoint Online. I installed 10.24 and 10.20 version of Nodejs then also installed gulp and yeoman. But when I execute yo @microsoft/...
Zakir HC's user avatar
  • 3,650
0 votes
0 answers
928 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, ...
David B.'s user avatar
0 votes
1 answer
2k 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/...
John John's user avatar
0 votes
2 answers
340 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 ...
Udo G's user avatar
  • 101
0 votes
1 answer
185 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 ...
Omi in a hellcat's user avatar
0 votes
1 answer
2k views

Failed to load component dependency "react" with failover path "node_modules/react/dist/react.js" in workbench

I am building a SPFX webpart based on SP2016 onward, including SP2019 and online (@microsoft/[email protected]). There is no error in Visual Studio code. When I run "gulp serve", ...
Mark L's user avatar
  • 4,070
1 vote
1 answer
77 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 ...
matt's user avatar
  • 589
1 vote
1 answer
749 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 ...
Prathyush P's user avatar
0 votes
1 answer
384 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 ...
chiraz azzabi's user avatar
1 vote
1 answer
457 views

SPFx development - npm audit vulnerabilities

The company I work for needs custom web parts in modern SharePoint. I was humming along following the excellent (Microsoft's sponsored) tutorials on SPFx development. I got my web part working on my ...
Miryam's user avatar
  • 13
2 votes
0 answers
305 views

How do I change the TypeScript version used by gulp? [duplicate]

In SharePoint Online, how do I update my typescript version? I think I narrowed down my problem to typescript versioning. My helloworld web part works. The one thing that it has that many of my other ...
Lance Bitner's user avatar
0 votes
1 answer
670 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 ...
westerdaled's user avatar
2 votes
2 answers
1k 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 ...
mplwork's user avatar
  • 152
1 vote
1 answer
171 views

Using proxy with pnp-auth in Node.js [closed]

Question : Using pnp-aut and node-sp-auth-config, how can I specify the use of a proxy Context : Connect from within a Node.js app running on a server 'A' connecting to SharePoint on premise 'S' ...
user901926's user avatar
1 vote
1 answer
903 views

Sharepoint 2013 authentication node js

is there any way authenticate by node js ? i want to use node web api using sharepoint 2013 auth by username and password.after user login i will reach sharepoint lists for crud operations. i used ...
Mert's user avatar
  • 135
0 votes
1 answer
210 views

gulp serve error

When run gulp serve I am getting below error I am using below packages I found on internet that if you are using node 12 and gulp 3 then it will have above issue but I am having node 12 and gulp 4, ...
Milind's user avatar
  • 1,538
1 vote
1 answer
200 views

node js -> Sharepoint behind proxy

The situation: Node Express.js app connects to SharePoint via pnp.js (REST) this app MUST route through a proxy Question: How can I force the node express.js app to use the proxy ? In powershell: ...
user901926's user avatar
0 votes
1 answer
250 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 ...
Mark L's user avatar
  • 4,070
0 votes
2 answers
364 views

What version of Node.js can I use if I'm stuck on SPFx v.1.1.0 (SP 2016)?

I'm stuck on SharePoint 2016 for the time being, and I know that means I'm stuck using SPFx v.1.1.0. However, I'm not sure what that means in terms of what version of Node.js to use. I have some ...
Dylan Cristy's user avatar
  • 12.6k
1 vote
0 answers
153 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.
Shivaay's user avatar
  • 133
0 votes
1 answer
3k 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. ...
Mihir's user avatar
  • 1,546
3 votes
2 answers
1k views

Integrating Azure custom BOT on SharePoint home page

I am planning to create a custom UI Bot using ReactJS and have it on the Home page(NOT modern) of our SharePoint site. After some research, i found out we can use it with SPFX webpart and possibly ...
SandeshR's user avatar
  • 2,002
1 vote
2 answers
788 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.
user2915027's user avatar
1 vote
1 answer
723 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 ...
JEEVAN GEORGE ANTONY's user avatar
2 votes
1 answer
138 views

What are the alternatives to authenticate in SharePoint beyond AD to use the Rest API?

I am trying to consume via Rest the Ms Project API from a Node client, I was searching and found that it's possible to get an access token from the ACS (Azure Access Control) and use this in the rest ...
Josiel Faleiros's user avatar
1 vote
0 answers
779 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 ...
shreyas.ganta's user avatar
1 vote
2 answers
7k views

Sharepoint REST API Download File Using NodeJs

i'm trying to save file to my drive using NodeJS as backend. So far, i managed to access https://${sites}/_api/web/GetFolderByServerRelativeUrl('Shared%20Documents')/Files('test.xlsx')/$value and ...
procatmer's user avatar
  • 111
1 vote
3 answers
855 views

ts Cannot find the module

I am very new to the SPFx I just started. I was making my first web part in Visual Studio Code but I was having some difficulty in my code. May be somebody can help. I have scss module in the same ...
Milind's user avatar
  • 1,538
0 votes
1 answer
639 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 ...
Rajesh's user avatar
  • 1
0 votes
2 answers
566 views

SharePoint 2016 On Premise Dev using SharePoint Framework

This is my first question in this forum ;) I need to develop SharePoint 2016 On Premises solution in Visual Studio using the SharePoint Framework. i did some RnD over it and found a nice articles on ...
Happy Coding's user avatar
1 vote
1 answer
650 views

SPFx -DO I need all of the node_modules for every new webpart I build?

I have noticed that every time I create a new SPFx web part, using Yeoman for generating a project, the folder size is 300+ mb. I noticed the majority of the size comes from the node_modules where all ...
Sotabound's user avatar
0 votes
1 answer
1k views

Sharepoint REST A node of type 'EndOfInput' error when using NodeJS

I'm using a NodeJS express server as middleware for an iOS app in order to store data in a Sharepoint list. The iOS app makes a post request with the payload to a NodeJS server, which then ...
TietjeDK's user avatar
  • 159
18 votes
2 answers
4k views

How to actually use webhooks, GetChanges and GetListItemChangesSinceToken?

My main goal is a very simple duplicate of alerts, to play around with webhooks, just a simple "User X changed field Title from 'Hello' to 'World'". So far so good After some struggle I finally ...
eirikb's user avatar
  • 7,405
0 votes
1 answer
238 views

SharePoint Online Workbench Question

I am very new to the SharePoint Online and I was following below tutorial on Youtube from Microsoft https://www.youtube.com/watch?v=QbDtsMg88Js&list=PLR9nK3mnD-OXvSWvS2zglCzz4iplhVrKq&index=2 ...
Milind's user avatar
  • 1,538
4 votes
2 answers
5k views

SharePoint Framework (SPFx) information questions

I have to present the SharePoint Framework(SPFx) to colleagues but I don't find answer to all my questions. I red main interests of SPFx are : improve the user experience open the door to open ...
Pierre-Louis Ollivier's user avatar
4 votes
1 answer
7k views

Download sharepoint document with REST as binary file not working for me

First of all, i am using node.js with provider hosted app with elevated rights to do this, no front-end at all. I just want to download a file using the API and then save it. I can't save if the API ...
Mikel's user avatar
  • 343
2 votes
1 answer
653 views

Error while using gulp-spsync with SharePoint Framework

Reference article that I followed to upload files to SharePoint Library: Automate publishing of your SharePoint Framework scripts to Office 365 public CDN. I updated write-manifests.json with correct ...
111's user avatar
  • 143
1 vote
0 answers
169 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 ...
Curtis Hennessy's user avatar
2 votes
0 answers
2k 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 ...
Ali's user avatar
  • 325
5 votes
3 answers
14k views

How to use SharePoint RESTful web services with Node.js?

I'm working on a Node.js app and I'd like to use some basic SharePoint services inside the app. I've already done this using java and SOAP web services (copy, list, search) And now I'd like to do the ...
Ali's user avatar
  • 325
3 votes
1 answer
2k views

REST to create a Sharepoint List in Node.js hosted offsite

I am trying to use request to create a SharePoint list with node. I am 90% sure all my headers are okay, but I am not too sure. I know all the auth headers are populated with values too; any help ...
Curtis Hennessy's user avatar
2 votes
2 answers
991 views

Cannot import a Web Part Using REST getlimitedwebpartmanager(1)/ImportWebPart

I'm trying to import a CEWP on the page via REST api I've found an example here but it does not seem to work for me. After posting the data I get a successful 200 Status call with no errors. ...
Denis Molodtsov's user avatar