私はNode.jsのライブラリをしようとしているが(https://www.npmjs.com/package/pkg)pkg
と呼ばれ、次のエラー受信:package.jsonでnpmのscripts configを使って.jsファイルを 'require'するには?
Warning Cannot resolve 'path.join(__dirname, './some/file.js')' /path/to/index.js Dynamic require may fail at run time, because the requested file is unknown at compilation time and not included into executable. Use a string literal as an argument for 'require', or leave it as is and specify the resolved file name in 'scripts' option.
をどのように正確に、あなたはpackage.jsonファイルで「を解決ファイル名」を指定していますか?さらに一般的には、package.jsonファイル内のファイルへのパスを指定し、そのファイルを使用するのにを使用する方法がありますか?