2022 Developer Survey is open! Take survey.

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
31 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 ...
user avatar
  • 1,342
0 votes
1 answer
534 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-...
user avatar
  • 2,224
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(); ...
user avatar
  • 1
0 votes
0 answers
38 views

you may need an appropriate loader to handle this file type

I am using the following code from pnp js library with modifications but it wont build. import { MsalFetchClient } from "@pnp/nodejs"; import { sp } from "@pnp/sp"; import &...
user avatar
  • 199
0 votes
0 answers
15 views

trying to validate that a file was uploaded to sharepoint - fails with ECONNREFUSED 127.0.0.1:443

I have the following code that successfully uploads test.sspkg to my sharepoint app catalog. Now I'm trying to use sp-request to prove that it's actually there. But I'm getting an ECONNREFUSED error. ...
user avatar
  • 101
4 votes
2 answers
2k 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/...
user avatar
  • 3,630
0 votes
0 answers
430 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, ...
user avatar
0 votes
1 answer
597 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/...
user avatar
0 votes
2 answers
128 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 ...
user avatar
  • 101
0 votes
1 answer
101 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 ...
user avatar
0 votes
1 answer
1k 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/generator-sharepoint@1.10.0). There is no error in Visual Studio code. When I run "gulp serve", ...
user avatar
  • 4,016
1 vote
1 answer
55 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 ...
user avatar
  • 559
1 vote
1 answer
290 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 ...
user avatar
0 votes
1 answer
293 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 ...
user avatar
1 vote
1 answer
282 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 ...
user avatar
  • 13
2 votes
0 answers
304 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 ...
user avatar
0 votes
1 answer
395 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 ...
user avatar
2 votes
2 answers
749 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 ...
user avatar
  • 152
1 vote
1 answer
133 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' ...
user avatar
1 vote
1 answer
496 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 ...
user avatar
  • 135
0 votes
1 answer
163 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, ...
user avatar
  • 1,519
1 vote
1 answer
102 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: ...
user avatar
0 votes
1 answer
217 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 ...
user avatar
  • 4,016
0 votes
2 answers
294 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 ...
user avatar
  • 12.1k
1 vote
0 answers
106 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.
user avatar
  • 33
0 votes
1 answer
2k 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. ...
user avatar
  • 1,526
3 votes
2 answers
995 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 ...
user avatar
  • 1,982
1 vote
2 answers
648 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.
user avatar
1 vote
1 answer
679 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 ...
user avatar
2 votes
1 answer
95 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 ...
user avatar
1 vote
0 answers
583 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 ...
user avatar
1 vote
2 answers
4k 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 ...
user avatar
  • 111
1 vote
3 answers
692 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 ...
user avatar
  • 1,519
0 votes
1 answer
577 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 ...
user avatar
  • 1
0 votes
2 answers
549 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 ...
user avatar
1 vote
1 answer
517 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 ...
user avatar
0 votes
1 answer
859 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 ...
user avatar
  • 159
18 votes
2 answers
3k 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 ...
user avatar
  • 7,395
0 votes
1 answer
234 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 ...
user avatar
  • 1,519
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 ...
user avatar
4 votes
1 answer
5k 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 ...
user avatar
  • 343
2 votes
1 answer
604 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 ...
user avatar
  • 143
1 vote
0 answers
139 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 ...
user avatar
2 votes
0 answers
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 ...
user avatar
  • 325
5 votes
3 answers
13k 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 ...
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 ...
user avatar
2 votes
2 answers
882 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. ...
user avatar
4 votes
2 answers
5k views

How to make a rest call to SharePoint 2013 from node.js?

In my node.js app, I want to make a rest call to sharepoint 2013. This is the node.js code function downloadData(res, key, success, fail) { var opts = url.parse(key); opts.method = 'GET';...
user avatar
  • 2,140
2 votes
1 answer
703 views

How to use Node.js in SharePoint 2013 web front end architecture?

I want to use node.js and sockets.io in my share point 2013 environment, which has 2 web front ends and 1 app front end. The problem I am wondering, is that I know I need to install node.js on both ...
user avatar
  • 2,140
2 votes
2 answers
3k views

Sharepoint 2013 and Node.js upload functionality for Sharepoint

As the question suggests we are looking for creating functionality of Upload/Download using Node.js. We have our destination in SharePoint 2013 document library where we want to upload files. First ...
user avatar