LoopringSecondary / LRC

Loopring Token (LRC) ERC20 Smart-Contract

Home Page:https://loopring.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: path must be a string

moneypi opened this issue · comments

我按照 README.md 进行操作的,操作系统版本为xubuntu 17.04,
所有操作步骤如下:
xubuntu@xubuntu-VirtualBox:~/Downloads/tmp$ sudo truffle init webpack
Using truffle init with a specific template is deprecated. Please use truffle unbox instead.
Downloading project...
Installing dependencies...
Project initialized.

Documentation: https://github.com/trufflesuite/truffle-init-webpack

Commands:

Compile: truffle compile
Migrate: truffle migrate
Test: truffle test
Build Frontend: npm run build
Run Linter: npm run lint
Run Dev Server: npm run dev

Hint: Run the dev server via npm run dev to have your changes rebuilt automatically.

Make sure you have an Ethereum client like the ethereumjs-testrpc running on http://localhost:8545.

xubuntu@xubuntu-VirtualBox:/Downloads/tmp$ ls
app contracts migrations node_modules package.json README.md test truffle.js webpack.config.js
xubuntu@xubuntu-VirtualBox:
/Downloads/tmp$ ls -la
total 76
drwxrwxr-x 7 xubuntu xubuntu 4096 7月 30 19:07 .
drwxr-xr-x 5 xubuntu xubuntu 4096 7月 30 19:05 ..
drwxr-xr-x 4 root root 4096 7月 30 19:05 app
-rw-r--r-- 1 root root 25 7月 30 19:05 .babelrc
drwxr-xr-x 2 root root 4096 7月 30 19:05 contracts
-rw-r--r-- 1 root root 129 7月 30 19:05 .eslintignore
-rw-r--r-- 1 root root 308 7月 30 19:05 .eslintrc
-rw-r--r-- 1 root root 34 7月 30 19:05 .gitignore
drwxr-xr-x 2 root root 4096 7月 30 19:05 migrations
drwxr-xr-x 633 root root 20480 7月 30 19:07 node_modules
-rw-r--r-- 1 root root 1068 7月 30 19:05 package.json
-rw-r--r-- 1 root root 1059 7月 30 19:05 README.md
drwxr-xr-x 2 root root 4096 7月 30 19:05 test
-rw-r--r-- 1 root root 233 7月 30 19:05 truffle.js
-rw-r--r-- 1 root root 801 7月 30 19:05 webpack.config.js
xubuntu@xubuntu-VirtualBox:/Downloads/tmp$ ls node_modules/
accepts clean-css fresh minimist regjsgen
acorn cli-cursor fs-extra mkdirp regjsparser
acorn-dynamic-import cliui fs-readdir-recursive ms relateurl
acorn-jsx cli-width fs.realpath multicast-dns remove-trailing-separator
ajv clone function-bind multicast-dns-service-types renderkid
ajv-keywords co generate-function mute-stream repeat-element
align-text coa generate-object-property natural-compare repeating
alphanum-sort code-point-at get-caller-file ncname repeat-string
ansi-escapes color get-stdin negotiator require-directory
ansi-html color-convert glob no-case require-main-filename
ansi-regex colormin globals node-dir requires-port
ansi-styles color-name glob-base node-forge require-uncached
anymatch colors globby node-libs-browser resolve
argparse color-string glob-parent normalize-package-data resolve-from
array-find-index commander graceful-fs normalize-path restore-cursor
array-flatten commondir handle-thing normalize-range right-align
array-union compressible has normalize-url rimraf
array-uniq compression has-ansi nth-check ripemd160
array-unique concat-map has-flag num2fraction run-async
arr-diff concat-stream hash-base number-is-nan rx-lite
arr-flatten connect-history-api-fallback hash.js number-to-bn safe-buffer
arrify console-browserify he object-assign sax
asn1.js constants-browserify hmac-drbg object.omit select-hose
assert content-disposition home-or-tmp obuf selfsigned
async content-type hosted-git-info once semver
async-each convert-source-map hpack.js onetime send
autoprefixer cookie html-comment-regex on-finished serve-index
babel-cli cookie-signature html-entities on-headers serve-static
babel-code-frame copy-webpack-plugin html-minifier opn set-blocking
babel-core core-js htmlparser2 optionator setimmediate
babel-eslint core-util-is html-webpack-plugin original set-immediate-shim
babel-generator create-ecdh http-deceiver os-browserify setprototypeof
babel-helper-builder-binary-assignment-operator-visitor create-hash http-errors os-homedir sha.js
babel-helper-call-delegate create-hmac http-proxy os-locale shelljs
babel-helper-define-map crypto-browserify http-proxy-middleware os-tmpdir signal-exit
babel-helper-explode-assignable-expression crypto-js https-browserify output-file-sync slash
babel-helper-function-name css-color-names icss-replace-symbols pako slice-ansi
babel-helper-get-function-arity cssesc ieee754 param-case sockjs
babel-helper-hoist-variables css-loader ignore parse-asn1 sockjs-client
babel-helper-optimise-call-expression cssnano imurmurhash parse-glob sort-keys
babel-helper-regex csso indent-string parse-json source-list-map
babel-helper-remap-async-to-generator css-select indexes-of parseurl source-map
babel-helper-replace-supers css-selector-tokenizer indexof path-browserify source-map-support
babel-helpers css-what inflight path-exists spdx-correct
babel-loader currently-unhandled inherits path-is-absolute spdx-expression-parse
babel-messages d inquirer path-is-inside spdx-license-ids
babel-plugin-check-es2015-constants date-now internal-ip path-parse spdy
babel-plugin-syntax-async-functions debug interpret path-to-regexp spdy-transport
babel-plugin-syntax-exponentiation-operator decamelize invariant path-type sprintf-js
babel-plugin-syntax-trailing-function-commas deep-equal invert-kv pbkdf2 statuses
babel-plugin-transform-async-to-generator deep-is ip pify stream-browserify
babel-plugin-transform-es2015-arrow-functions defined ipaddr.js pinkie stream-http
babel-plugin-transform-es2015-block-scoped-functions del is-absolute-url pinkie-promise strict-uri-encode
babel-plugin-transform-es2015-block-scoping depd isarray pkg-dir string_decoder
babel-plugin-transform-es2015-classes des.js is-arrayish pluralize string-width
babel-plugin-transform-es2015-computed-properties destroy is-binary-path p-map strip-ansi
babel-plugin-transform-es2015-destructuring detect-indent is-buffer portfinder strip-bom
babel-plugin-transform-es2015-duplicate-keys detect-node is-builtin-module postcss strip-hex-prefix
babel-plugin-transform-es2015-for-of diffie-hellman is-dotfile postcss-calc strip-indent
babel-plugin-transform-es2015-function-name dns-equal is-equal-shallow postcss-colormin strip-json-comments
babel-plugin-transform-es2015-literals dns-packet is-extendable postcss-convert-values style-loader
babel-plugin-transform-es2015-modules-amd dns-txt is-extglob postcss-discard-comments supports-color
babel-plugin-transform-es2015-modules-commonjs doctrine is-finite postcss-discard-duplicates svgo
babel-plugin-transform-es2015-modules-systemjs domain-browser is-fullwidth-code-point postcss-discard-empty table
babel-plugin-transform-es2015-modules-umd dom-converter is-glob postcss-discard-overridden tapable
babel-plugin-transform-es2015-object-super domelementtype is-hex-prefixed postcss-discard-unused text-table
babel-plugin-transform-es2015-parameters domhandler is-my-json-valid postcss-filter-plugins through
babel-plugin-transform-es2015-shorthand-properties dom-serializer is-number postcss-merge-idents thunky
babel-plugin-transform-es2015-spread domutils isobject postcss-merge-longhand timers-browserify
babel-plugin-transform-es2015-sticky-regex ee-first is-path-cwd postcss-merge-rules to-arraybuffer
babel-plugin-transform-es2015-template-literals electron-to-chromium is-path-in-cwd postcss-message-helpers to-fast-properties
babel-plugin-transform-es2015-typeof-symbol elliptic is-path-inside postcss-minify-font-values toposort
babel-plugin-transform-es2015-unicode-regex emojis-list is-plain-obj postcss-minify-gradients trim-newlines
babel-plugin-transform-exponentiation-operator encodeurl is-posix-bracket postcss-minify-params trim-right
babel-plugin-transform-regenerator enhanced-resolve is-primitive postcss-minify-selectors truffle-blockchain-utils
babel-plugin-transform-runtime entities is-property postcss-modules-extract-imports truffle-contract
babel-plugin-transform-strict-mode errno is-resolvable postcss-modules-local-by-default truffle-contract-schema
babel-polyfill error-ex is-svg postcss-modules-scope tryit
babel-preset-env es5-ext is-utf8 postcss-modules-values tty-browserify
babel-preset-es2015 es6-iterator js-base64 postcss-normalize-charset type-check
babel-register es6-map jsesc postcss-normalize-url typedarray
babel-runtime es6-set json3 postcss-ordered-values type-is
babel-template es6-symbol json5 postcss-reduce-idents uglify-js
babel-traverse es6-weak-map jsonfile postcss-reduce-initial uglify-to-browserify
babel-types escape-html jsonify postcss-reduce-transforms uniq
babylon escape-string-regexp json-loader postcss-selector-parser uniqid
balanced-match escope jsonpointer postcss-svgo uniqs
base64-js eslint json-stable-stringify postcss-unique-selectors unpipe
batch eslint-config-standard js-sha3 postcss-value-parser upper-case
big.js eslint-plugin-babel js-tokens postcss-zindex url
bignumber.js eslint-plugin-mocha js-yaml prelude-ls url-parse
binary-extensions eslint-plugin-promise kind-of prepend-http user-home
bluebird eslint-plugin-standard klaw preserve utf8
bn.js espree lazy-cache pretty-error util
bonjour esprima lcid private utila
boolbase esquery levn process util-deprecate
brace-expansion esrecurse loader-runner process-nextick-args utils-merge
braces estraverse loader-utils progress uuid
brorand esutils load-json-file proxy-addr v8flags
browserify-aes etag lodash prr validate-npm-package-license
browserify-cipher ethjs-abi lodash.assign public-encrypt vary
browserify-des event-emitter lodash.camelcase punycode vendors
browserify-rsa eventemitter3 lodash.memoize q vm-browserify
browserify-sign events lodash.pickby qs watchpack
browserify-zlib eventsource lodash.uniq querystring wbuf
browserslist evp_bytestokey loglevel query-string web3
buffer exit-hook longest querystring-es3 webpack
buffer-indexof expand-brackets loose-envify querystringify webpack-dev-middleware
buffer-xor expand-range loud-rejection ramda webpack-dev-server
builtin-modules express lower-case randomatic webpack-sources
builtin-status-codes extglob macaddress randombytes websocket-driver
bytes fast-levenshtein map-obj range-parser websocket-extensions
caller-path fastparse math-expression-evaluator readable-stream whet.extend
callsites faye-websocket media-typer readdirp which-module
camelcase figures memory-fs readline2 window-size
camel-case file-entry-cache meow read-pkg wordwrap
camelcase-keys filename-regex merge-descriptors read-pkg-up wrap-ansi
caniuse-api fill-range methods rechoir wrappy
caniuse-db finalhandler micromatch redent write
caniuse-lite find-cache-dir miller-rabin reduce-css-calc xhr2
center-align find-up mime reduce-function-call xml-char-classes
chalk flat-cache mime-db regenerate xmlhttprequest
chokidar flatten mime-types regenerator-runtime xtend
cipher-base for-in minimalistic-assert regenerator-transform y18n
circular-json for-own minimalistic-crypto-utils regex-cache yargs
clap forwarded minimatch regexpu-core yargs-parser
xubuntu@xubuntu-VirtualBox:
/Downloads/tmp$ sudo npm install
[sudo] password for xubuntu:
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.1.2
npm WARN truffle-init-webpack@0.0.2 No repository field.
xubuntu@xubuntu-VirtualBox:/Downloads/tmp$ sudo truffle compile
TypeError: path must be a string
at TypeError (native)
at Object.fs.stat (fs.js:830:11)
at Object.files (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:171065:8)
at exports.fromCallback.module.exports (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:48937:7)
at getFiles (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:57215:9)
at Object.exports.fromCallback.module.exports.updated (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:57219:5)
at Function.exports.fromCallback.xfs.mkdir.Object.keys.forEach.compile.necessary (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:96862:12)
at Object.exports.fromCallback.Contracts.compile (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:49014:15)
at Object.exports.fromCallback.xfs.mkdir.Object.keys.forEach.module.exports.module.exports.module.exports.module.exports.module.exports.module.exports.fs.lstat.fs.writeFile.fs.link.fs.lstat.xfs.mkdir.fs.rename.fs.link.fs.stat.ins.on.outs.on.methods.forEach.options.lstat.options.chmod.options.rmdir.options.readdir.fs.writeFile.fs.open.fs.futimes.fs.open.command.run (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:221715:15)
at Command.exports.fromCallback.xfs.mkdir.Command.run (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:73210:20)
xubuntu@xubuntu-VirtualBox:
/Downloads/tmp$