更改React项目位置将无法运行该应用程序

时间:2018-12-14 07:11:59

标签: reactjs react-native

我在Mac中将React应用程序的位置更改为另一个文件夹。现在npm start将无法打开应用程序并留下错误:

Itays-MacBook-Pro:kollabmusic itayzvi$ npm start
path.js:1084
      cwd = process.cwd();
                    ^

Error: ENOENT: no such file or directory, uv_cwd
at Object.resolve (path.js:1084:25)
at Function.Module._resolveLookupPaths (internal/modules/cjs/loader.js:478:17)
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:573:20)
at Function.Module._load (internal/modules/cjs/loader.js:506:25)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
at /usr/local/lib/node_modules/npm/bin/npm-cli.js:19:21
at Object.<anonymous> (/usr/local/lib/node_modules/npm/bin/npm-cli.js:153:3)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)

0 个答案:

没有答案