Jan 29 2021 05:42 AM - edited Jan 29 2021 08:45 AM
Following the guide https://docs.microsoft.com/en-us/sharepoint/dev/spfx/set-up-your-development-environment
made sure of all the prerequisites but as I follow the steps I get multiple warnings to do with depreciated packages. I've installed node 10.23.2 and checked the version using node -v.
When I try to run yo it crashes like below and powershell becomes unresponsive.
I'd really appreciate any pointers as to what I'm doing wrong and a route out of this.
Thanks
PS C:\WINDOWS\system32> npm install gulp yo /generator-sharepoint --global
npm : npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
At line:1 char:1
+ npm install gulp yo /generator-sharepoint --global
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (npm WARN deprec...-url#deprecated:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less
dependencies.
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries.
Upgrade to fsevents 2.
npm WARN deprecated request@2.88.2: request has been deprecated, see
https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated cross-spawn-async@2.2.5: cross-spawn no longer requires a build toolchain, use it instead
C:\Users\natha\AppData\Roaming\npm\gulp -> C:\Users\natha\AppData\Roaming\npm\node_modules\gulp\bin\gulp.js
C:\Users\natha\AppData\Roaming\npm\yo-complete -> C:\Users\natha\AppData\Roaming\npm\node_modules\yo\lib\completion
\index.js
C:\Users\natha\AppData\Roaming\npm\yo -> C:\Users\natha\AppData\Roaming\npm\node_modules\yo\lib\cli.js
> yo@3.1.1 postinstall C:\Users\natha\AppData\Roaming\npm\node_modules\yo
> yodoctor
Yeoman Doctor
Running sanity checks on your system
√ No .bowerrc file in home directory
√ Global configuration file is valid
√ NODE_PATH matches the npm root
√ No .yo-rc.json file in home directory
√ Node.js version
√ npm version
√ yo version
Everything looks all right!
npm WARN notsup Unsupported engine for got@5.7.1: wanted: {"node":">=0.10.0 <7"} (current:
{"node":"10.23.2","npm":"6.14.10"})
npm WARN notsup Not compatible with your version of node/npm: got@5.7.1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7
(node_modules\gulp\node_modules\chokidar\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"})
+ gulp@4.0.2
+ yo@3.1.1
+ /generator-sharepoint@1.11.0
updated 3 packages in 25.298s
PS C:\WINDOWS\system32> npm ls -g --depth=0 /generator-sharepoint
C:\Users\natha\AppData\Roaming\npm
`-- /generator-sharepoint@1.11.0
PS C:\WINDOWS\system32> yo /sharepoint
node.exe :
At C:\Users\natha\AppData\Roaming\npm\yo.ps1:15 char:3
+ & "node$exe" "$basedir/node_modules/yo/lib/cli.js" $args
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
_-----_
| | .--------------------------.
|--(o)--| [0m|[0m [0mWelcome to the[0m [0m|[0m
`---------´ [0m|[0m [0m[34mS[34mh[34ma[34mr[34me[34mP[34mo[34mi[34mn[34mt[34m
[34mC[34ml[34mi[34me[34mn[34mt[34m-[34ms[34mi[34md[34me[0m [0m|[0m
( _´U`_ ) [0m|[0m [0m[34mS[34mo[34ml[34mu[34mt[34mi[34mo[34mn[34m
[34mG[34me[34mn[34me[34mr[34ma[34mt[34mo[34mr[0m [0m|[0m
/___A___\ [0m'--------------------------'
| ~ |
__'.___.'__
´ ` |° ´ Y `
Let's create a new SharePoint solution.
Jan 31 2021 10:53 PM
Feb 01 2021 01:08 AM
Feb 01 2021 02:24 AM - edited Feb 01 2021 02:33 AM
Sadly it doesn't seem to make a difference. I've tried in a project folder
PS D:\sharepoint\sp-site-designs-studio-master> node -
PS D:\sharepoint\sp-site-designs-studio-master> node -v
v10.23.2
PS D:\sharepoint\sp-site-designs-studio-master> npm -v
6.14.10
PS D:\sharepoint\sp-site-designs-studio-master> npm install -g yo gulp
npm : npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
At line:1 char:1
+ npm install -g yo gulp
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (npm WARN deprec...s dependencies.:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated cross-spawn-async@2.2.5: cross-spawn no longer requires a build toolchain, use it instead
C:\Users\natha\AppData\Roaming\npm\gulp -> C:\Users\natha\AppData\Roaming\npm\node_modules\gulp\bin\gulp.js
C:\Users\natha\AppData\Roaming\npm\yo -> C:\Users\natha\AppData\Roaming\npm\node_modules\yo\lib\cli.js
C:\Users\natha\AppData\Roaming\npm\yo-complete -> C:\Users\natha\AppData\Roaming\npm\node_modules\yo\lib\completion\index.js
> yo@3.1.1 postinstall C:\Users\natha\AppData\Roaming\npm\node_modules\yo
> yodoctor
Yeoman Doctor
Running sanity checks on your system
√ No .bowerrc file in home directory
√ Global configuration file is valid
√ NODE_PATH matches the npm root
√ No .yo-rc.json file in home directory
√ Node.js version
√ npm version
√ yo version
Everything looks all right!
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules\gulp\node_modules\chokidar\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"})
+ yo@3.1.1
+ gulp@4.0.2
updated 3 packages in 18.739s
all the same warnings installing gulp and yo
When trying to create the project
PS D:\sharepoint\sp-site-designs-studio-master> yo @microsoft/sharepoint
node.exe :
At C:\Users\natha\AppData\Roaming\npm\yo.ps1:15 char:3
+ & "node$exe" "$basedir/node_modules/yo/lib/cli.js" $args
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
_-----_
| | .--------------------------.
|--(o)--| [0m|[0m [0mWelcome to the[0m [0m|[0m
`---------´ [0m|[0m [0m[34mS[34mh[34ma[34mr[34me[34mP[34mo[34mi[34mn[34mt[34m [34mC[34ml[34mi[34me[34mn[34mt[34m-[34ms[34mi[34md[34me[0m [0m|[0m
( _´U`_ ) [0m|[0m [0m[34mS[34mo[34ml[34mu[34mt[34mi[34mo[34mn[34m [34mG[34me[34mn[34me[34mr[34ma[34mt[34mo[34mr[0m [0m|[0m
/___A___\ [0m'--------------------------'
| ~ |
__'.___.'__
´ ` |° ´ Y `
Let's create a new SharePoint solution.
Feb 01 2021 03:26 AM
Feb 01 2021 03:34 AM
Feb 01 2021 03:50 AM
Feb 01 2021 05:25 AM
Thanks.
I've uninstalled and deleted all modules and node. Re-installed a 10.x version a gulp and yo with the same warnings.
Running into the exact same problems!
I had used nvm from powershell galleries to previously install node but have since removed. Maybe there's relics of that but I can't find them if there are.
Feb 01 2021 06:58 AM
Thanks @waldek
I've got it working on another machine. I'll completely refresh my main one at another time but all those warnings were fine FYI. Yo ran smoothly with a freshly install node v10 via NVM
Thanks for the help
Feb 01 2021 07:55 AM - edited Feb 01 2021 07:56 AM
I have also the same problem; i had nodejs 12.18.2 on my pc for other purposes.
So i cannot preserve my previous version? I must downgrade?
Thanks in advance.
Feb 01 2021 07:58 AM
Feb 01 2021 08:49 AM - edited Feb 01 2021 08:52 AM
Thanks a lot! I will try to use nvm-windows, but i have one last question before I act: I also installed gulp and yoman. Can I keep these tools as they are or do I have to uninstall all tools and reinstall them in order?
Thanks in advance!
Feb 01 2021 08:57 AM
I found this post: https://stackoverflow.com/questions/20711240/how-to-completely-remove-node-js-from-windows
I hope it will be useful to you.
Feb 01 2021 09:45 AM
Feb 01 2021 09:52 AM
I too just started using nodejs! thanks for everything!
Feb 01 2021 10:12 AM
Feb 13 2022 05:05 AM