如何在 plesk 上安装 npm 包?
How to install npm packages on plesk?
我想将 node-apk-parser:https://www.npmjs.com/package/node-apk-parser 安装到我的节点 js project.It 如果我 运行 npm install 在我的 VS 包管理器控制台上,则在本地工作。但是当我在 Plesk 上更新 package.json 并点击按钮 Npm Install 并且我 运行 我的网站域时它说“ 节点 apk 解析器 找不到模块错误” ?Node apk 解析器在最后。
这是我的 package.json 文件。
{
"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"
}
}
}
我不得不在 package.json 和 运行 脚本中编写自己的脚本。提到这个问题:Install node-sass on plesk
我想将 node-apk-parser:https://www.npmjs.com/package/node-apk-parser 安装到我的节点 js project.It 如果我 运行 npm install 在我的 VS 包管理器控制台上,则在本地工作。但是当我在 Plesk 上更新 package.json 并点击按钮 Npm Install 并且我 运行 我的网站域时它说“ 节点 apk 解析器 找不到模块错误” ?Node apk 解析器在最后。 这是我的 package.json 文件。
{
"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"
}
}
}
我不得不在 package.json 和 运行 脚本中编写自己的脚本。提到这个问题:Install node-sass on plesk