如何更改index.js的位置

时间:2018-04-12 11:31:34

标签: npm

我正在尝试重新安排项目回购:

wsimport -J-Djavax.xml.accessExternalDTD=all 
         -J-D-Djavax.xml.accessExternalSchema=all 
         -b http://www.w3.org/2001/XMLSchema.xsd 
         -b customization.xjb 
         -s genSrc https://example.com/XYZ.asmx?wsdl

对此:

public/
src/
|
|---- index.js
package.json

当我重新安排时,public/ frontend/ | |---- src/ | |---- index.js package.json 会因此消息而失败:

npm start

所以我进入了package.json文件并添加了这个:

Could not find a required file.
  Name: index.js
  Searched in: /Users/sahandzarrinkoub/Documents/Programming/DH2642/Sentify/repo/Sentify/Sentify/src
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! Sentify@0.1.0 start: `react-scripts start`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the Sentify@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

奇怪的是,没有任何改变。 npm告诉我,它仍在查找"main": "frontend/src/index.js", 的同一目录。

index.js

如何成功将我的项目重新安排到此组织中?我怎么能告诉npm在哪里寻找index.js?

我也尝试过:

Could not find a required file.
  Name: index.js
  Searched in: /Users/sahandzarrinkoub/Documents/Programming/DH2642/Sentify/repo/Sentify/Sentify/src
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sentify@0.1.0 start: `react-scripts start`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the sentify@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

0 个答案:

没有答案