Open DoctorKhan opened 7 years ago
@DoctorKhan thanks for reporting this issue.
I have reproduced it. The issue is with our wrapper of the cli which is deployed with the framework.
transmute test is simply a wrapper around truffle test. The intention was to provide this wrapper in case we needed to augment truffle test. While this works on the main transmute-framework repo, there is some issue preventing it from working here.
since transmute test
is simply a wrapper for truffle test
you should run truffle test
, and possibly truffle migrate
first.
let me know if you have any issues.
There may be an issue with the package-lock.json
I just rm -rf node_modules package.json
and npm install && npm run transmute test
and it worked on master.
I don't think you want to remove package.json (see last comment).
did:
npm install
and it seemed to work.Here is the error: `npm run transmute test
module.js:471 throw err; ^
Error: Cannot find module '~/web-app-starter-kit/node_modules/transmute-framework/build/cli/index.js' at Function.Module._resolveFilename (module.js:469:15) at Function.Module._load (module.js:417:25) at Module.runMain (module.js:604:10) at run (bootstrap_node.js:389:7) at startup (bootstrap_node.js:149:9) at bootstrap_node.js:504:3
npm ERR! Linux 4.4.0-21-generic npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "transmute" "test" npm ERR! node v6.11.0 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! web-app-starter-kit@0.0.0 transmute:
node ./node_modules/transmute-framework/build/cli/index.js "test"
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the web-app-starter-kit@0.0.0 transmute script 'node ./node_modules/transmute-framework/build/cli/index.js "test"'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the web-app-starter-kit package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node ./node_modules/transmute-framework/build/cli/index.js "test" npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs web-app-starter-kit npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls web-app-starter-kit npm ERR! There is likely additional logging output above.npm ERR! Please include the following file with any support request: npm ERR! ~/web-app-starter-kit/npm-debug.log (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:255:16)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at EventEmitter.emit (events.js:191:7)
14 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at ChildProcess.emit (events.js:191:7)
14 verbose stack at maybeClose (internal/child_process.js:891:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid web-app-starter-kit@0.0.0
16 verbose cwd /home/khan/web-app-starter-kit
17 error Linux 4.4.0-21-generic
18 error argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "transmute" "test"
19 error node v6.11.0
20 error npm v3.10.10
21 error code ELIFECYCLE
22 error web-app-starter-kit@0.0.0 transmute:
Here is the log file:
0 info it worked if it ends with ok 1 verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', 'run', 'transmute', 'test' ] 2 info using npm@3.10.10 3 info using node@v6.11.0 4 verbose run-script [ 'pretransmute', 'transmute', 'posttransmute' ] 5 info lifecycle web-app-starter-kit@0.0.0~pretransmute: web-app-starter-kit@0.0.0 6 silly lifecycle web-app-starter-kit@0.0.0~pretransmute: no script for pretransmute, continuing 7 info lifecycle web-app-starter-kit@0.0.0~transmute: web-app-starter-kit@0.0.0 8 verbose lifecycle web-app-starter-kit@0.0.0~transmute: unsafe-perm in lifecycle true 9 verbose lifecycle web-app-starter-kit@0.0.0~transmute: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/home/khan/web-app-starter-kit/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/cuda/bin 10 verbose lifecycle web-app-starter-kit@0.0.0~transmute: CWD: /home/khan/web-app-starter-kit 11 silly lifecycle web-app-starter-kit@0.0.0~transmute: Args: [ '-c', 11 silly lifecycle 'node ./node_modules/transmute-framework/build/cli/index.js "test"' ] 12 silly lifecycle web-app-starter-kit@0.0.0~transmute: Returned: code: 1 signal: null 13 info lifecycle web-app-starter-kit@0.0.0~transmute: Failed to exec transmute script 14 verbose stack Error: web-app-starter-kit@0.0.0 transmute:node ./node_modules/transmute-framework/build/cli/index.js "test"
14 verbose stack Exit status 1 14 verbose stack at EventEmitter.node ./node_modules/transmute-framework/build/cli/index.js "test"
22 error Exit status 1 23 error Failed at the web-app-starter-kit@0.0.0 transmute script 'node ./node_modules/transmute-framework/build/cli/index.js "test"'. 23 error Make sure you have the latest version of node.js and npm installed. 23 error If you do, this is most likely a problem with the web-app-starter-kit package, 23 error not with npm itself. 23 error Tell the author that this fails on your system: 23 error node ./node_modules/transmute-framework/build/cli/index.js "test" 23 error You can get information on how to open an issue for this project with: 23 error npm bugs web-app-starter-kit 23 error Or if that isn't available, you can get their info via: 23 error npm owner ls web-app-starter-kit 23 error There is likely additional logging output above. 24 verbose exit [ 1, true ]`