当我运行 npm run comile:js 时,我遇到了这个问题。那么该怎么办?
PS C:\Users\Marko\Desktop\storefrontdata-master\storefrontdata-master> npm run compile:js
npm ERR! missing script: compile:js
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Marko\AppData\Roaming\npm-cache\_logs\2021-01-04T11_00_45_777Z-debug.log
PS C:\Users\Marko\Desktop\storefrontdata-master\storefrontdata-master>
如果可以的话,这就是我的 package.json 的外观:
{
"name": "refarchdata",
"version": "4.4.1",
"description": "This is a repository for the data that goes with the ref arch storefront.",
"main": "",
"dependencies": {},
"devDependencies": {},
"scripts": {
"zipData": "if [ -f demo_data_sfra.zip ] ; then rm -r demo_data_sfra.zip && zip -r demo_data_sfra.zip demo_data_sfra ; else zip -r demo_data_sfra.zip demo_data_sfra ; fi"
},
"repository": {
"type": "git",
"url": "git+https://github.com/SalesforceCommerceCloud/storefrontdata.git"
},
"author": "",
"license": "ISC",
"homepage": "https://github.com/SalesforceCommerceCloud/storefrontdata"
}