我的项目结构如下:
我的package.json看起来像这样:
//in backup.java
BufferedInputStream stream=new BufferedInputStream(inputStream);
byte[] result=new byte[stream.count];
int tmp=stream.read(result,0,stream.count);
if(tmp!=-1)
{
String finalr=new String(result);
if(str1.equals(finalr))
{
//etc
但是当我运行{
"name": "personal_site",
"version": "1.0.0",
"description": "My personal website.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "node-sass --output-style compressed ./dist/css/bundle.min.css ./src/scss/styles.scss",
"serve": ""
},
"author": "Dean Gibson",
"license": "ISC",
"dependencies": {
"bourbon": "^4.2.6",
"bourbon-neat": "^1.7.4"
},
"devDependencies": {
"node-sass": "^3.4.2"
}
}
时,看起来终端正在“思考”并停止而不会抛出任何错误。但npm build
中没有任何东西产生......显然我在这里做错了什么?
更新
这很有趣,如果我直接从终端运行那个确切的脚本,那么它工作得很好......有什么想法为什么?