pnp / PnP-Sites-Core

Microsoft 365 Dev PnP Core component (.NET) targeted for increasing developer productivity with CSOM based solutions.
Other
416 stars 643 forks source link

npm install issue from the latest version of Node 12.13.2 #2700

Open ntinykumar opened 4 years ago

ntinykumar commented 4 years ago

We are planning to create SPFX webparts for sharepoint online modern site. We have setup SPFX environment in the windows 10 new machine and infact tried many machine but we are facing issue in npm install command everytime we run.

We install latest version of Node 12.13.2 , We did below all commands which are required.

DEVELOPMENT SPFX PLATFORM

1) Install Node.js package from the internet 
2) npm install gulp yo @microsoft/generator-sharepoint --global
3) npm install gulp --global
4) npm install yo --global
5) npm install @microsoft/generator-sharepoint --global
6) gulp trust-dev-cert

Below issues we face when using npm install command to any spfx webpart Created SPFX apps using below commands or for existing SPFX samples from Github

PS C:\SPFX\hello-3> npm install npm WARN ajv-keywords@3.5.0 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself. npm WARN uglifyjs-webpack-plugin@0.4.6 requires a peer of webpack@^1.9 || ^2 || ^2.1.0-beta || ^2.2.0-rc || ^3.0.0 but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules\watchpack\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

up to date in 21.57s

23 packages are looking for funding run npm fund for details

Problem We can able to use npm install in older version of node like 10 but not able to run npm install to node version 12.13.2 or any recent node version.

Your help or positive respose will be appreciated in advance

ghost commented 4 years ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

NicolajHedeager commented 4 years ago

If you doing SPFX development you should use Node.js 10.x.

Node.js v9.x, v11.x, and v12.x are not currently supported with SharePoint Framework development. https://docs.microsoft.com/en-us/sharepoint/dev/spfx/set-up-your-development-environment