[.NET]npm ERR! gentlyRm containing path ...node_modules\esprima isn't under npm's control

[.NET]npm ERR! gentlyRm containing path ...node_modules\esprima isn't under npm's control

今天在裝 YEOMAN 的 ASPNET 範本時,居然發生以下的錯誤

npm ERR! gentlyRm containing path C:\Users\rm\AppData\Roaming\npm\node_modules\generator-aspnet\node_modules\yeoman-generator\node_modules\gruntfile-editor\node_modules\ast-query\node_modules\escodegen\node_modules\esprima isn't under npm's control

npm ERR! code 1

 

要產生 ASPNET 的範本時,就發生 module 的錯誤,如下,

image

 

後來再詳細看一下「Installing yo and some generators」這部份,

npm install -g yo bower grunt-cli gulp

 

才發現原來沒有裝到 gulp ,裝了 gulp 再重裝 ASPNET 範本就可以了。

image

 

參考資料

GETTING STARTED WITH YEOMAN

Hi, 

亂馬客Blog已移到了 「亂馬客​ : Re:從零開始的軟體開發生活

請大家繼續支持 ^_^