PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, November 13, 2022

[FIXED] How to install npm packages on plesk?

 November 13, 2022     node.js, npm, plesk     No comments   

Issue

I wanted to install node-apk-parser:https://www.npmjs.com/package/node-apk-parser into my node js project.It works locally if I run npm install on my VS package manager console. But when I update the package.json on Plesk and hit the button Npm Install and I run my website domain it says "Module not found error for node apk parser"?Node apk parser is at the last. This is my package.json file.

{
  "name": "nodejs-express-mysql",
  "version": "1.0.0",
  "description": "Node.js Restful CRUD API with Node.js, Express and MySQL",
  "main": "server.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [
    "nodejs",
    "express",
    "express-fileupload",
    "mysql",
    "restapi"
  ],
  "author": "bezkoder",
  "license": "ISC",
  "dependencies": {
    "body-parser": "^1.19.0",
    "express": "^4.17.1",
    "express-fileupload": "^1.2.0",
    "mysql": "^2.17.1",
    "cors": "^2.8.5"
  },
  "node-apk-parser": {
    "version": "0.2.3",
    "resolved": "https://registry.npmjs.org/node-apk-parser/-/node-apk-parser-0.2.3.tgz",
    "integrity": "sha1-OFoUGm2jjeVi5dnwiWG/lyTTX8Q=",
    "requires": {
      "adm-zip": "~0.4.4",
      "debug": "~0.7.4"
    }
  }
}

Solution

I had to write my own script in package.json and run script instead. Referred to this question:Install node-sass on plesk



Answered By - Sook Lim
Answer Checked By - Marilyn (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing