質問編集履歴
2
回答を受けての追加②
    
        title	
    CHANGED
    
    | 
            File without changes
         | 
    
        body	
    CHANGED
    
    | @@ -57,4 +57,25 @@ | |
| 57 57 | 
             
            npm ERR! A complete log of this run can be found in:
         | 
| 58 58 | 
             
            npm ERR!     /home/vagrant/.npm/_logs/2018-04-04T06_01_57_849Z-debug.log
         | 
| 59 59 | 
             
            ```
         | 
| 60 | 
            -
            また```find -name "cross-env.js" -type f```で検索しても何もでてきませんでした。
         | 
| 60 | 
            +
            また```find -name "cross-env.js" -type f```で検索しても何もでてきませんでした。
         | 
| 61 | 
            +
             | 
| 62 | 
            +
            <<回答を受けて②>>
         | 
| 63 | 
            +
            単純にcross-envをinstallしてみました。
         | 
| 64 | 
            +
            が、しかし今だにnpm run dev, npm run watch実行後は```sh: 1: cross-env: not found```のままですね。。
         | 
| 65 | 
            +
            ```
         | 
| 66 | 
            +
            vagrant@homestead:~/code/school$ npm install cross-env --save --no-bin-links
         | 
| 67 | 
            +
            npm WARN ajv-keywords@3.1.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
         | 
| 68 | 
            +
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: assert-plus@1.0.0 (node_modules/fsevents/node_modules/dashdash/node_modules/assert-plus):
         | 
| 69 | 
            +
            npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/vagrant/code/school/node_modules/fsevents/node_modules/dashdash/node_modules/assert-plus/package.json.1110259093'
         | 
| 70 | 
            +
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: assert-plus@1.0.0 (node_modules/fsevents/node_modules/getpass/node_modules/assert-plus):
         | 
| 71 | 
            +
            npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/vagrant/code/school/node_modules/fsevents/node_modules/getpass/node_modules/assert-plus/package.json.1816258176'
         | 
| 72 | 
            +
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules/fsevents):
         | 
| 73 | 
            +
            npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
         | 
| 74 | 
            +
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: assert-plus@1.0.0 (node_modules/fsevents/node_modules/sshpk/node_modules/assert-plus):
         | 
| 75 | 
            +
            npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/vagrant/code/school/node_modules/fsevents/node_modules/sshpk/node_modules/assert-plus/package.json.4166844666'
         | 
| 76 | 
            +
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: minimist@1.2.0 (node_modules/fsevents/node_modules/rc/node_modules/minimist):
         | 
| 77 | 
            +
            npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/vagrant/code/school/node_modules/fsevents/node_modules/rc/node_modules/minimist/package.json.3366993945'
         | 
| 78 | 
            +
             | 
| 79 | 
            +
            + cross-env@5.1.4
         | 
| 80 | 
            +
            added 1 package in 41.555s
         | 
| 81 | 
            +
            ```
         | 
1
回答を受けての追加
    
        title	
    CHANGED
    
    | 
            File without changes
         | 
    
        body	
    CHANGED
    
    | @@ -28,4 +28,33 @@ | |
| 28 28 | 
             
                "production": "node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
         | 
| 29 29 | 
             
              },
         | 
| 30 30 | 
             
            ```
         | 
| 31 | 
            -
            しかし結果は同じ。またhttps://github.com/fullstackreact/react-gen-generator/issues/4 このサイトも参考にしてみましたが、効果は有りませんでした。npmの知識がまだ疎しくここで止まってしまっています。回答よろしくお願いいたします。
         | 
| 31 | 
            +
            しかし結果は同じ。またhttps://github.com/fullstackreact/react-gen-generator/issues/4 このサイトも参考にしてみましたが、効果は有りませんでした。npmの知識がまだ疎しくここで止まってしまっています。回答よろしくお願いいたします。
         | 
| 32 | 
            +
             | 
| 33 | 
            +
             | 
| 34 | 
            +
             | 
| 35 | 
            +
            <<回答を受けて>>
         | 
| 36 | 
            +
            npm install --save-dev cross-envを実行しました所こうエラーが出ました。
         | 
| 37 | 
            +
            ```
         | 
| 38 | 
            +
            vagrant@homestead:~/code/school$ npm install --save-dev cross-env
         | 
| 39 | 
            +
            npm WARN ajv-keywords@3.1.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
         | 
| 40 | 
            +
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: assert-plus@1.0.0 (node_modules/fsevents/node_modules/dashdash/node_modules/assert-plus):
         | 
| 41 | 
            +
            npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/vagrant/code/school/node_modules/fsevents/node_modules/dashdash/node_modules/assert-plus/package.json.4201104718'
         | 
| 42 | 
            +
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: assert-plus@1.0.0 (node_modules/fsevents/node_modules/getpass/node_modules/assert-plus):
         | 
| 43 | 
            +
            npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/vagrant/code/school/node_modules/fsevents/node_modules/getpass/node_modules/assert-plus/package.json.670411067'
         | 
| 44 | 
            +
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules/fsevents):
         | 
| 45 | 
            +
            npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
         | 
| 46 | 
            +
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: minimist@1.2.0 (node_modules/fsevents/node_modules/rc/node_modules/minimist):
         | 
| 47 | 
            +
            npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/vagrant/code/school/node_modules/fsevents/node_modules/rc/node_modules/minimist/package.json.2754480345'
         | 
| 48 | 
            +
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: assert-plus@1.0.0 (node_modules/fsevents/node_modules/sshpk/node_modules/assert-plus):
         | 
| 49 | 
            +
            npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/vagrant/code/school/node_modules/fsevents/node_modules/sshpk/node_modules/assert-plus/package.json.36804433'
         | 
| 50 | 
            +
             | 
| 51 | 
            +
            npm ERR! path ../cross-env/dist/bin/cross-env.js
         | 
| 52 | 
            +
            npm ERR! code EPROTO
         | 
| 53 | 
            +
            npm ERR! errno -71
         | 
| 54 | 
            +
            npm ERR! syscall symlink
         | 
| 55 | 
            +
            npm ERR! EPROTO: protocol error, symlink '../cross-env/dist/bin/cross-env.js' -> '/home/vagrant/code/school/node_modules/.bin/cross-env'
         | 
| 56 | 
            +
             | 
| 57 | 
            +
            npm ERR! A complete log of this run can be found in:
         | 
| 58 | 
            +
            npm ERR!     /home/vagrant/.npm/_logs/2018-04-04T06_01_57_849Z-debug.log
         | 
| 59 | 
            +
            ```
         | 
| 60 | 
            +
            また```find -name "cross-env.js" -type f```で検索しても何もでてきませんでした。
         | 
