title: How to solve npm ERR! missing script: dev
body: <p>I have installed node.js.
  Next, I installed cnmp with command</p>
  
  <pre><code>npm install -g cnpm --registry=https://registry.npm.taobao.org
  cnpm install
  </code></pre>
  
  <p>when I tried command <code>cnpm run dev</code>
  there is a error:</p>
  
  <pre><code>npm ERR! path C:\Users\Harry\package.json
  npm ERR! code ENOENT
  npm ERR! errno -4058
  npm ERR! syscall open
  npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\Harry\package.json'
  npm ERR! enoent This is related to npm not being able to find a file.
  npm ERR! enoent
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     C:\Users\Harry\AppData\Roaming\npm-cache\_logs\2018-08-03T02_48_22_663Z-debug.log
  </code></pre>
  
  <p>so I moved the package.json from <code>C:\Users\Harry\AppData\Roaming\npm\node_modules\cnpm</code> to <code>'C:\Users\Harry\package.json'</code>
  but I still got an error:</p>
  
  <pre><code>npm ERR! missing script: dev
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     C:\Users\Harry\AppData\Roaming\npm-cache\_logs\2018-08-03T02_51_46_194Z-debug.log
  </code></pre>
  
  <p>and I also tried methods of similar problems, such as edit the script in package.json, it still doesn't work.</p>