Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-5431

Node Package Installer: application npm install location is incorrect

    Details

    • Story Points:
      8

      Description

      1. Delete Global Appcelerator NPM Packages.
      2. Install Titanium/Appcelerator Studio.
      4. Run Studio and accept npm package updates.

      Result:

      The updates are locally installed to a folder other than the one studio was run from.

      See screenshot.

      Expected Result:

      The updates are globally installed.

      Note:

      If you try to run studio commands that require the npm packages, they will fail.

      Launching simulator process failed
      Unable to locate the CLI executable. Please restart Studio or use Help > Check for Appcelerator Updates to install Titanium CLI.
      

      Studio looks here no matter what (and the commands fail):

      /Applications/Appcelerator/Appcelerator_Studio_3.1.3/AppceleratorStudio.app/Contents/MacOS/Password:/usr/local/lib
      ├── acs@1.0.6
      ├── alloy@1.2.2
      ├── titanium@3.1.2
      └── titanium-code-processor@1.0.3
      

      Workaround:

      npm set prefix /usr/local
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pinnamuri Praveen Innamuri (Inactive)
                Reporter:
                dhyde Dustin Hyde
              • Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: