最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - 'rollup' is not recognized as an internal or external command - Stack Overflow

programmeradmin2浏览0评论

I would like to ask if how should I fix this issue because I am already stuck and confused about this part. I already installed rollup globally using this command

npm install --global rollup

However when I tried to run the 'rollup' command then I should expect the rollup information or something will show in my CLI? but my CLI shows

'rollup' is not recognized as an internal or external command, operable program or batch file.

What I have done so far is.

  1. Updated the NPM
  2. Reinstall the rollup globally.

I already read some documentation but the issue is still showing.

Please enlighten me. Thank you

I would like to ask if how should I fix this issue because I am already stuck and confused about this part. I already installed rollup globally using this command

npm install --global rollup

However when I tried to run the 'rollup' command then I should expect the rollup information or something will show in my CLI? but my CLI shows

'rollup' is not recognized as an internal or external command, operable program or batch file.

What I have done so far is.

  1. Updated the NPM
  2. Reinstall the rollup globally.

I already read some documentation but the issue is still showing.https://github.com/Esri/ago-assistant/issues/176

Please enlighten me. Thank you

Share Improve this question edited Oct 4, 2021 at 7:26 cdt asked Oct 1, 2021 at 0:17 cdtcdt 1851 gold badge2 silver badges12 bronze badges 3
  • interesting, perhaps this might be of interest github.com/Esri/ago-assistant/issues/176 – jspcal Commented Oct 1, 2021 at 0:18
  • Thanks, @jsocaI, already tried it but the issue is still there on my end. I don't know how they fixed the issue? because they already close the issue. – cdt Commented Oct 1, 2021 at 0:22
  • I just got this error because I forgot the npm install command in my corresponding folder. – Sezgin İbiş Commented Jun 25, 2022 at 14:39
Add a comment  | 

3 Answers 3

Reset to default 7
npm install

fixed this issue for me

What I just have done just to run the script globally.

I just added these scripts in my package.json to run the rollup using NPM.

 "scripts": {
"rollup": "rollup" 

is this okay?

  1. Try restarting your terminal

  2. Try locating where the Rollup binary is installed %AppData%\npm\node_modules or %AppData%\roaming\npm\node_modules and run it manually like

    %AppData%\npm\node_modules\rollup\bin\rollup.exe

发布评论

评论列表(0)

  1. 暂无评论