Skip to content

Issue running a new project locally #13231

In review

Description

@ElenaGallo

Description

Quando faccio il npm install di un nuovo progetto appena creato in locale appare questo errore:

npm error code EALLOWREMOTE
npm error Fetching packages of type "remote" have been disabled
npm error Refusing to fetch "@mapstore/patcher@https://github.com/geosolutions-it/Patcher/tarball/master"
npm error A complete log of this run can be found in: C:\Users\User\AppData\Local\npm-cache_logs\2026-11-26T16_36_05_214Z-debug-0.log

How to reproduce

  • Create a new local project using node ./createProject.js

  • Run npm install

  • Not browser related

Browser info (use this site: https://www.whatsmybrowser.org/ for non expert users)
Browser Affected Version
Internet Explorer
Edge
Chrome
Firefox
Safari

Other useful information

Please note that npm install works on the 2026.03.xx branch.

Related cucumber test: https://studio.cucumberstudio.com/projects/292756/test-runs/1128264/folder-snapshots/13546954/scenario-snapshots/42534214/test-snapshots/57100006

Security vulnerabilities

Do not report security vulnerabilities in public issues.

If you believe you have found a vulnerability in MapStore, please use GitHub private vulnerability reporting or contact the security address listed in SECURITY.md.

Activity

  1. added this to the 2026.03.01 milestone on Nov 26, 2026
  2. offtherailz commented on Nov 27, 2026

    @offtherailz
    Member

    The error is caused by npm 12 (you have 12.2.2), not by the project: since 12.0 npm refuses dependencies referenced by URL by default, and @mapstore/patcher is one of them. Node 26 ships npm 11.20, which works.

    Workaround: npm install -g npm@11

    The requirements page does not set a maximum npm version, so it has to be updated anyway. npm 12 support will be evaluated separately.

  3. ElenaGallo commented on Nov 27, 2026

    @ElenaGallo
    ContributorAuthor

    @offtherailz With npm 11.20, I was able to run the project successfully. However, I noticed an issue with the Print tool: the request through the proxy fails with a 403 (Forbidden) error, preventing the map from being printed.

    Error on printing: <!doctype html><title>HTTP Status 403 – Forbidden</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style>

    HTTP Status 403 – Forbidden


    Type Status Report

    Message Host Name localhost is not among the ones allowed for this proxy

    Description The server understood the request but refuses to authorize it.


    Apache Tomcat/11.0.27

    print.mp4
  4. added a commit that references this issue on Nov 27, 2026
  5. added a commit that references this issue on Nov 27, 2026
  6. tdipisa commented on Nov 27, 2026

    @tdipisa
    Member

    @ElenaGallo PR merged, should be ready for retest soon. Check the PR before retesting this.

  7. offtherailz commented on Nov 27, 2026

    @offtherailz
    Member

    The problem in the video is the typical troubleshooting that happens here because of different servers.
    No problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions