Open ntinykumar opened 4 years ago
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
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
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
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 detailsProblem 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